Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
txt::TextStyle Class Reference

#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
 
FontWeight font_weight = FontWeight::w400
 
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::DlPaintbackground
 
std::optional< flutter::DlPaintforeground
 
std::vector< TextShadowtext_shadows
 
FontFeatures font_features
 
FontVariations font_variations
 

Detailed Description

Definition at line 36 of file text_style.h.

Constructor & Destructor Documentation

◆ TextStyle()

txt::TextStyle::TextStyle ( )

Member Function Documentation

◆ equals()

bool txt::TextStyle::equals ( const TextStyle other) const

Member Data Documentation

◆ background

std::optional<flutter::DlPaint> txt::TextStyle::background

Definition at line 59 of file text_style.h.

◆ color

SkColor txt::TextStyle::color = SK_ColorWHITE

Definition at line 38 of file text_style.h.

◆ decoration

int txt::TextStyle::decoration = TextDecoration::kNone

Definition at line 39 of file text_style.h.

◆ decoration_color

SkColor txt::TextStyle::decoration_color = SK_ColorTRANSPARENT

Definition at line 42 of file text_style.h.

◆ decoration_style

TextDecorationStyle txt::TextStyle::decoration_style = TextDecorationStyle::kSolid

Definition at line 43 of file text_style.h.

◆ decoration_thickness_multiplier

double txt::TextStyle::decoration_thickness_multiplier = 1.0

Definition at line 45 of file text_style.h.

◆ font_families

std::vector<std::string> txt::TextStyle::font_families

Definition at line 52 of file text_style.h.

◆ font_features

FontFeatures txt::TextStyle::font_features

Definition at line 64 of file text_style.h.

◆ font_size

double txt::TextStyle::font_size = 14.0

Definition at line 53 of file text_style.h.

◆ font_style

FontStyle txt::TextStyle::font_style = FontStyle::normal

Definition at line 47 of file text_style.h.

◆ font_variations

FontVariations txt::TextStyle::font_variations

Definition at line 65 of file text_style.h.

◆ font_weight

FontWeight txt::TextStyle::font_weight = FontWeight::w400

Definition at line 46 of file text_style.h.

◆ foreground

std::optional<flutter::DlPaint> txt::TextStyle::foreground

Definition at line 60 of file text_style.h.

◆ half_leading

bool txt::TextStyle::half_leading = false

Definition at line 49 of file text_style.h.

◆ has_height_override

bool txt::TextStyle::has_height_override = false

Definition at line 57 of file text_style.h.

◆ height

double txt::TextStyle::height = 1.0

Definition at line 56 of file text_style.h.

◆ letter_spacing

double txt::TextStyle::letter_spacing = 0.0

Definition at line 54 of file text_style.h.

◆ locale

std::string txt::TextStyle::locale

Definition at line 58 of file text_style.h.

◆ text_baseline

TextBaseline txt::TextStyle::text_baseline = TextBaseline::kAlphabetic

Definition at line 48 of file text_style.h.

◆ text_shadows

std::vector<TextShadow> txt::TextStyle::text_shadows

Definition at line 63 of file text_style.h.

◆ word_spacing

double txt::TextStyle::word_spacing = 0.0

Definition at line 55 of file text_style.h.


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