#include <text_style.h>
Public Member Functions | |
| TextStyle () | |
| bool | equals (const TextStyle &other) const |
Public Attributes | |
| SkColor | color = SK_ColorWHITE |
| int | decoration = TextDecoration::kNone |
| SkColor | decoration_color = SK_ColorTRANSPARENT |
| TextDecorationStyle | decoration_style = TextDecorationStyle::kSolid |
| double | decoration_thickness_multiplier = 1.0 |
| int | font_weight = FontWeight::normal |
| FontStyle | font_style = FontStyle::normal |
| TextBaseline | text_baseline = TextBaseline::kAlphabetic |
| bool | half_leading = false |
| std::vector< std::string > | font_families |
| double | font_size = 14.0 |
| double | letter_spacing = 0.0 |
| double | word_spacing = 0.0 |
| double | height = 1.0 |
| bool | has_height_override = false |
| std::string | locale |
| std::optional< flutter::DlPaint > | background |
| std::optional< flutter::DlPaint > | foreground |
| std::vector< TextShadow > | text_shadows |
| FontFeatures | font_features |
| FontVariations | font_variations |
Definition at line 24 of file text_style.h.
| txt::TextStyle::TextStyle | ( | ) |
Definition at line 14 of file text_style.cc.
| bool txt::TextStyle::equals | ( | const TextStyle & | other | ) | const |
Definition at line 16 of file text_style.cc.
References color, decoration, decoration_color, decoration_style, decoration_thickness_multiplier, font_families, font_style, font_weight, foreground, half_leading, has_height_override, height, letter_spacing, locale, text_shadows, and word_spacing.
| std::optional<flutter::DlPaint> txt::TextStyle::background |
Definition at line 47 of file text_style.h.
Referenced by flutter::ParagraphBuilder::pushStyle().
| SkColor txt::TextStyle::color = SK_ColorWHITE |
Definition at line 26 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| int txt::TextStyle::decoration = TextDecoration::kNone |
Definition at line 27 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| SkColor txt::TextStyle::decoration_color = SK_ColorTRANSPARENT |
Definition at line 30 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| TextDecorationStyle txt::TextStyle::decoration_style = TextDecorationStyle::kSolid |
Definition at line 31 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| double txt::TextStyle::decoration_thickness_multiplier = 1.0 |
Definition at line 33 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| std::vector<std::string> txt::TextStyle::font_families |
Definition at line 40 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| FontFeatures txt::TextStyle::font_features |
Definition at line 52 of file text_style.h.
Referenced by flutter::ParagraphBuilder::pushStyle().
| double txt::TextStyle::font_size = 14.0 |
Definition at line 41 of file text_style.h.
Referenced by txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| FontStyle txt::TextStyle::font_style = FontStyle::normal |
Definition at line 35 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| FontVariations txt::TextStyle::font_variations |
Definition at line 53 of file text_style.h.
Referenced by flutter::ParagraphBuilder::pushStyle().
| int txt::TextStyle::font_weight = FontWeight::normal |
Definition at line 34 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| std::optional<flutter::DlPaint> txt::TextStyle::foreground |
Definition at line 48 of file text_style.h.
Referenced by impeller::interop::ParagraphStyle::CreateTextStyle(), equals(), and flutter::ParagraphBuilder::pushStyle().
| bool txt::TextStyle::half_leading = false |
Definition at line 37 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| bool txt::TextStyle::has_height_override = false |
Definition at line 45 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| double txt::TextStyle::height = 1.0 |
Definition at line 44 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| double txt::TextStyle::letter_spacing = 0.0 |
Definition at line 42 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| std::string txt::TextStyle::locale |
Definition at line 46 of file text_style.h.
Referenced by equals(), txt::ParagraphStyle::GetTextStyle(), and flutter::ParagraphBuilder::pushStyle().
| TextBaseline txt::TextStyle::text_baseline = TextBaseline::kAlphabetic |
Definition at line 36 of file text_style.h.
| std::vector<TextShadow> txt::TextStyle::text_shadows |
Definition at line 51 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().
| double txt::TextStyle::word_spacing = 0.0 |
Definition at line 43 of file text_style.h.
Referenced by equals(), and flutter::ParagraphBuilder::pushStyle().