#include <paragraph_style.h>
Definition at line 15 of file paragraph_style.h.
◆ ParagraphStyle() [1/2]
impeller::interop::ParagraphStyle::ParagraphStyle |
( |
| ) |
|
|
explicitdefault |
◆ ~ParagraphStyle()
impeller::interop::ParagraphStyle::~ParagraphStyle |
( |
| ) |
|
|
overridedefault |
◆ ParagraphStyle() [2/2]
impeller::interop::ParagraphStyle::ParagraphStyle |
( |
const ParagraphStyle & |
| ) |
|
|
delete |
◆ CreateTextStyle()
txt::TextStyle impeller::interop::ParagraphStyle::CreateTextStyle |
( |
| ) |
const |
Definition at line 60 of file paragraph_style.cc.
61 auto style = style_.GetTextStyle();
64 style.foreground = foreground_->GetPaint();
67 style.background = background_->GetPaint();
69 if (decoration_.has_value()) {
70 const auto& decoration = decoration_.value();
71 style.decoration = decoration.types;
72 style.decoration_color =
ToSkiaType(decoration.color);
73 style.decoration_style =
ToTxtType(decoration.style);
74 style.decoration_thickness_multiplier = decoration.thickness_multiplier;
constexpr txt::TextDecorationStyle ToTxtType(ImpellerTextDecorationStyle style)
constexpr std::optional< SkRect > ToSkiaType(const ImpellerRect *rect)
References impeller::interop::ToSkiaType(), and impeller::interop::ToTxtType().
Referenced by impeller::interop::ParagraphBuilder::PushStyle().
◆ GetParagraphStyle()
const txt::ParagraphStyle & impeller::interop::ParagraphStyle::GetParagraphStyle |
( |
| ) |
const |
◆ operator=()
◆ SetBackground()
◆ SetEllipsis()
void impeller::interop::ParagraphStyle::SetEllipsis |
( |
const std::string & |
string | ) |
|
◆ SetFontFamily()
void impeller::interop::ParagraphStyle::SetFontFamily |
( |
std::string |
family | ) |
|
◆ SetFontSize()
void impeller::interop::ParagraphStyle::SetFontSize |
( |
double |
size | ) |
|
◆ SetFontStyle()
void impeller::interop::ParagraphStyle::SetFontStyle |
( |
txt::FontStyle |
style | ) |
|
◆ SetFontWeight()
void impeller::interop::ParagraphStyle::SetFontWeight |
( |
txt::FontWeight |
weight | ) |
|
◆ SetForeground()
◆ SetHeight()
void impeller::interop::ParagraphStyle::SetHeight |
( |
double |
height | ) |
|
Definition at line 31 of file paragraph_style.cc.
32 style_.height = height;
33 style_.has_height_override = (height != 0.0);
◆ SetLocale()
void impeller::interop::ParagraphStyle::SetLocale |
( |
std::string |
locale | ) |
|
◆ SetMaxLines()
void impeller::interop::ParagraphStyle::SetMaxLines |
( |
size_t |
max_lines | ) |
|
◆ SetTextAlignment()
void impeller::interop::ParagraphStyle::SetTextAlignment |
( |
txt::TextAlign |
alignment | ) |
|
◆ SetTextDecoration()
◆ SetTextDirection()
void impeller::interop::ParagraphStyle::SetTextDirection |
( |
txt::TextDirection |
direction | ) |
|
The documentation for this class was generated from the following files: