#include <paragraph_style.h>
Public Member Functions | |
| TextStyle | GetTextStyle () const |
| bool | unlimited_lines () const |
| bool | ellipsized () const |
| TextAlign | effective_align () const |
Public Attributes | |
| int | font_weight = FontWeight::normal |
| FontStyle | font_style = FontStyle::normal |
| std::string | font_family = "" |
| double | font_size = 14 |
| double | height = 1 |
| bool | has_height_override = false |
| size_t | text_height_behavior = TextHeightBehavior::kAll |
| bool | strut_enabled = false |
| int | strut_font_weight = FontWeight::normal |
| FontStyle | strut_font_style = FontStyle::normal |
| std::vector< std::string > | strut_font_families |
| double | strut_font_size = 14 |
| double | strut_height = 1 |
| bool | strut_has_height_override = false |
| bool | strut_half_leading = false |
| double | strut_leading = -1 |
| bool | force_strut_height = false |
| TextAlign | text_align = TextAlign::start |
| TextDirection | text_direction = TextDirection::ltr |
| size_t | max_lines = std::numeric_limits<size_t>::max() |
| std::u16string | ellipsis |
| std::string | locale |
Definition at line 56 of file paragraph_style.h.
| TextAlign txt::ParagraphStyle::effective_align | ( | ) | const |
Definition at line 33 of file paragraph_style.cc.
References txt::end, txt::left, txt::ltr, txt::right, txt::start, text_align, and text_direction.
| bool txt::ParagraphStyle::ellipsized | ( | ) | const |
| TextStyle txt::ParagraphStyle::GetTextStyle | ( | ) | const |
Definition at line 11 of file paragraph_style.cc.
References txt::TextStyle::font_families, font_family, font_size, txt::TextStyle::font_size, font_style, txt::TextStyle::font_style, font_weight, txt::TextStyle::font_weight, has_height_override, txt::TextStyle::has_height_override, height, txt::TextStyle::height, locale, and txt::TextStyle::locale.
Referenced by impeller::interop::ParagraphStyle::CreateTextStyle().
| bool txt::ParagraphStyle::unlimited_lines | ( | ) | const |
| std::u16string txt::ParagraphStyle::ellipsis |
Definition at line 87 of file paragraph_style.h.
Referenced by ellipsized(), and impeller::interop::ParagraphStyle::SetEllipsis().
| std::string txt::ParagraphStyle::font_family = "" |
Definition at line 62 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetFontFamily().
| double txt::ParagraphStyle::font_size = 14 |
Definition at line 63 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetFontSize().
| FontStyle txt::ParagraphStyle::font_style = FontStyle::normal |
Definition at line 61 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetFontStyle().
| int txt::ParagraphStyle::font_weight = FontWeight::normal |
Definition at line 60 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetFontWeight().
| bool txt::ParagraphStyle::force_strut_height = false |
Definition at line 81 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| bool txt::ParagraphStyle::has_height_override = false |
Definition at line 65 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetHeight().
| double txt::ParagraphStyle::height = 1 |
Definition at line 64 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetHeight().
| std::string txt::ParagraphStyle::locale |
Definition at line 88 of file paragraph_style.h.
Referenced by GetTextStyle(), and impeller::interop::ParagraphStyle::SetLocale().
| size_t txt::ParagraphStyle::max_lines = std::numeric_limits<size_t>::max() |
Definition at line 86 of file paragraph_style.h.
Referenced by impeller::interop::ParagraphStyle::SetMaxLines(), and unlimited_lines().
| bool txt::ParagraphStyle::strut_enabled = false |
Definition at line 71 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| std::vector<std::string> txt::ParagraphStyle::strut_font_families |
Definition at line 74 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| double txt::ParagraphStyle::strut_font_size = 14 |
Definition at line 75 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| FontStyle txt::ParagraphStyle::strut_font_style = FontStyle::normal |
Definition at line 73 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| int txt::ParagraphStyle::strut_font_weight = FontWeight::normal |
Definition at line 72 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| bool txt::ParagraphStyle::strut_half_leading = false |
Definition at line 78 of file paragraph_style.h.
Referenced by flutter::decodeStrut(), and txt::TEST_F().
| bool txt::ParagraphStyle::strut_has_height_override = false |
Definition at line 77 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| double txt::ParagraphStyle::strut_height = 1 |
Definition at line 76 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| double txt::ParagraphStyle::strut_leading = -1 |
Definition at line 79 of file paragraph_style.h.
Referenced by flutter::decodeStrut().
| TextAlign txt::ParagraphStyle::text_align = TextAlign::start |
Definition at line 84 of file paragraph_style.h.
Referenced by effective_align(), and impeller::interop::ParagraphStyle::SetTextAlignment().
| TextDirection txt::ParagraphStyle::text_direction = TextDirection::ltr |
Definition at line 85 of file paragraph_style.h.
Referenced by effective_align(), and impeller::interop::ParagraphStyle::SetTextDirection().
| size_t txt::ParagraphStyle::text_height_behavior = TextHeightBehavior::kAll |
Definition at line 66 of file paragraph_style.h.