Flutter Engine
The Flutter Engine
FontArguments.h
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2#ifndef FontArguments_DEFINED
3#define FontArguments_DEFINED
4
5#include <functional>
6#include <vector>
9
10namespace skia {
11namespace textlayout {
12
14public:
16 FontArguments(const FontArguments&) = default;
18
21
23
24 friend bool operator==(const FontArguments& a, const FontArguments& b);
25 friend bool operator!=(const FontArguments& a, const FontArguments& b);
26 friend struct std::hash<FontArguments>;
27
28private:
29 FontArguments() = delete;
30
31 int fCollectionIndex;
32 std::vector<SkFontArguments::VariationPosition::Coordinate> fCoordinates;
33 int fPaletteIndex;
34 std::vector<SkFontArguments::Palette::Override> fPaletteOverrides;
35};
36
37} // namespace textlayout
38} // namespace skia
39
40namespace std {
41 template<> struct hash<skia::textlayout::FontArguments> {
42 size_t operator()(const skia::textlayout::FontArguments& args) const;
43 };
44}
45
46#endif // FontArguments_DEFINED
static uint32_t hash(const SkShaderBase::GradientInfo &v)
FontArguments & operator=(FontArguments &&)=default
friend bool operator==(const FontArguments &a, const FontArguments &b)
FontArguments(const FontArguments &)=default
FontArguments(FontArguments &&)=default
FontArguments & operator=(const FontArguments &)=default
sk_sp< SkTypeface > CloneTypeface(const sk_sp< SkTypeface > &typeface) const
friend bool operator!=(const FontArguments &a, const FontArguments &b)
static bool b
struct MyStruct a[10]
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Definition: DartTypes.h:13
Definition: ref_ptr.h:256