Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
skia::textlayout::FontArguments Class Reference

#include <FontArguments.h>

Public Member Functions

 FontArguments (const SkFontArguments &)
 
 FontArguments (const FontArguments &)=default
 
 FontArguments (FontArguments &&)=default
 
FontArgumentsoperator= (const FontArguments &)=default
 
FontArgumentsoperator= (FontArguments &&)=default
 
sk_sp< SkTypefaceCloneTypeface (const sk_sp< SkTypeface > &typeface) const
 

Friends

struct std::hash< FontArguments >
 
bool operator== (const FontArguments &a, const FontArguments &b)
 
bool operator!= (const FontArguments &a, const FontArguments &b)
 

Detailed Description

Definition at line 13 of file FontArguments.h.

Constructor & Destructor Documentation

◆ FontArguments() [1/3]

skia::textlayout::FontArguments::FontArguments ( const SkFontArguments args)

Definition at line 37 of file FontArguments.cpp.

38 : fCollectionIndex(args.getCollectionIndex()),
39 fCoordinates(args.getVariationDesignPosition().coordinates,
40 args.getVariationDesignPosition().coordinates +
41 args.getVariationDesignPosition().coordinateCount),
42 fPaletteIndex(args.getPalette().index),
43 fPaletteOverrides(args.getPalette().overrides,
44 args.getPalette().overrides +
45 args.getPalette().overrideCount) {}
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

◆ FontArguments() [2/3]

skia::textlayout::FontArguments::FontArguments ( const FontArguments )
default

◆ FontArguments() [3/3]

skia::textlayout::FontArguments::FontArguments ( FontArguments &&  )
default

Member Function Documentation

◆ CloneTypeface()

sk_sp< SkTypeface > skia::textlayout::FontArguments::CloneTypeface ( const sk_sp< SkTypeface > &  typeface) const

Definition at line 58 of file FontArguments.cpp.

58 {
60 fCoordinates.data(),
61 static_cast<int>(fCoordinates.size())
62 };
63
65 fPaletteIndex,
66 fPaletteOverrides.data(),
67 static_cast<int>(fPaletteOverrides.size())
68 };
69
71 args.setCollectionIndex(fCollectionIndex);
73 args.setPalette(palette);
74
75 return typeface->makeClone(args);
76}
sk_sp< SkTypeface > makeClone(const SkFontArguments &) const
SkFontArguments & setCollectionIndex(int collectionIndex)
SkFontArguments & setVariationDesignPosition(VariationPosition position)
SkFontArguments & setPalette(Palette palette)

◆ operator=() [1/2]

FontArguments & skia::textlayout::FontArguments::operator= ( const FontArguments )
default

◆ operator=() [2/2]

FontArguments & skia::textlayout::FontArguments::operator= ( FontArguments &&  )
default

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const FontArguments a,
const FontArguments b 
)
friend

Definition at line 54 of file FontArguments.cpp.

54 {
55 return !(a == b);
56}
static bool b
struct MyStruct a[10]

◆ operator==

bool operator== ( const FontArguments a,
const FontArguments b 
)
friend

Definition at line 47 of file FontArguments.cpp.

47 {
48 return a.fCollectionIndex == b.fCollectionIndex &&
49 a.fCoordinates == b.fCoordinates &&
50 a.fPaletteIndex == b.fPaletteIndex &&
51 a.fPaletteOverrides == b.fPaletteOverrides;
52}

◆ std::hash< FontArguments >

friend struct std::hash< FontArguments >
friend

Definition at line 25 of file FontArguments.h.


The documentation for this class was generated from the following files: