|
| Style (const Style &) |
|
| Style (AFontSize fontSize) |
|
Style & | operator= (const Style &) |
|
bool | operator== (const Style &o) const =delete |
|
Style & | Read (wxConfigBase *config, const wxString &where) |
|
void | Write (wxConfigBase *config, const wxString &where) const |
| Write this style to a config source.
|
|
wxFontFamily | GetFamily () const |
|
wxFontEncoding | GetEncoding () const |
|
wxFontWeight | GetWeight () const |
|
bool | IsBold () const |
|
bool | IsLight () const |
|
wxFontStyle | GetFontStyle () const |
|
bool | IsItalic () const |
|
bool | IsSlant () const |
|
bool | IsUnderlined () const |
|
bool | IsStrikethrough () const |
|
AFontName | GetFontName () const |
|
const wxString & | GetNameStr () const |
|
AFontSize | GetFontSize () const |
| The size of this style's font, asserted to be valid.
|
|
uint32_t | GetRGBColor () const |
|
wxColor | GetColor () const |
|
did_change | SetFamily (wxFontFamily family) |
|
did_change | SetEncoding (wxFontEncoding encoding) |
|
did_change | SetWeight (wxFontWeight weight) |
|
did_change | SetBold (bool bold=true) |
|
did_change | SetLight (bool light=true) |
|
did_change | SetFontStyle (wxFontStyle style) |
|
did_change | SetItalic (bool italic=true) |
|
did_change | SetSlant (bool slant=true) |
|
did_change | SetUnderlined (bool underlined=true) |
|
did_change | SetStrikethrough (bool strikethrough=true) |
|
did_change | SetFontName (AFontName fontName) |
|
did_change | SetFontSize (AFontSize fontSize) |
|
did_change | SetRGBColor (uint32_t rgb) |
|
did_change | SetColor (const wxColor &color) |
|
did_change | SetColor (wxSystemColour sysColour) |
|
did_change | ResolveToFont () |
| Resolves the style to the parameters of the font it represents.
|
|
Style & | Family (wxFontFamily family) |
|
Style & | Encoding (wxFontEncoding encoding) |
|
Style & | Weight (wxFontWeight weight) |
|
Style & | FontStyle (wxFontStyle style) |
|
Style & | Bold (bool bold=true) |
|
Style & | Light (bool light=true) |
|
Style & | Italic (bool italic=true) |
|
Style & | Slant (bool slant=true) |
|
Style & | Underlined (bool underlined=true) |
|
Style & | Strikethrough (bool strikethrough=true) |
|
Style & | FontName (class AFontName fontName) |
|
Style & | FontSize (float size) |
|
Style & | FontSize (AFontSize fontSize) |
|
Style & | RGBColor (uint32_t rgb) |
|
Style & | Color (const wxColor &color) |
|
Style & | Color (uint8_t r, uint8_t g, uint8_t b) |
|
Style & | Color (wxSystemColour sysColour) |
|
Style & | ChangeLightness (int alpha) |
|
wxFontInfo | GetAsFontInfo () const |
|
bool | IsFontLessThan (const Style &o) const |
|
bool | IsFontEqualTo (const Style &) const |
|
bool | IsStyleEqualTo (const Style &o) const |
|
bool | IsFontOk () const |
|
bool | HasFontCached () const |
|
const wxFont & | GetFont () const |
|
did_change | SetFromFont (const wxFont &) |
| Sets all font-related properties based on another font.
|
|
did_change | SetFontFrom (const Style &) |
| Sets all font-related properties based on another style, including size, font style and weight.
|
|
did_change | SetFontFaceFrom (const Style &) |
| Sets font-face-only properties based on another style.
|
|
did_change | SetFontFaceAndSizeFrom (const Style &) |
| Sets font-face and size only properties based on another style (not attributes like bold, etc.)
|
|
wxString | GetDump () const |
|
|
constexpr static wxFontFamily | Default_Family {wxFONTFAMILY_DEFAULT} |
|
constexpr static wxFontEncoding | Default_Encoding {wxFONTENCODING_DEFAULT} |
|
constexpr static wxFontWeight | Default_Weight {wxFONTWEIGHT_NORMAL} |
|
constexpr static wxFontStyle | Default_FontStyle {wxFONTSTYLE_NORMAL} |
|
constexpr static bool | Default_Underlined {false} |
|
constexpr static bool | Default_Strikethrough {false} |
|
constexpr static AFontSize | Default_FontSize {10.0f} |
|
constexpr static uint32_t | Default_ColorRGB {MAKE_RGB(0, 0, 0)} |
|
Text Style Definition
It is a well-performing replacement for wxFontInfo, with additional color attribute.
The text styles are also used as keys into the FontCache. They are designed to be small, quick to compare for equality and order (less-than), and quick to copy.