This is the text_style. This class gathers information about text style. More...
Public Types | |
| enum | FontStyleEnum { StyleRegular = 0, StyleBold, StyleItalic, StyleBoldItalic } |
| enum | TextAttributeEnum { AttributeNone = 0, AttributeUnderline = 1, AttributeStrikethrough = 2, AttributeOverline = 4, AttributeSuperscript = 8, AttributeSubscript = 16 } |
| enum | TextJustificationEnum { JustificationLeft = 0, JustificationCenter, JustificationRight, JustificationNone } |
Public Member Functions | |
| TextAttributeEnum & | Attributes () |
| Retrieves the text attribute - get/set -. More... | |
| const TextAttributeEnum & | Attributes () const |
| Retrieves the text attribute - read only -. More... | |
| Dtk_Double64 & | CharHeight () |
| Retrieves the char height - get/set -. More... | |
| const Dtk_Double64 & | CharHeight () const |
| Retrieves the char height - Read Only -. More... | |
| Dtk_Double64 & | CharSpacing () |
| Retrieves the char spacing - get/set -. More... | |
| const Dtk_Double64 & | CharSpacing () const |
| Retrieves the char spacing - read only -. More... | |
| Dtk_Double64 & | CharWidth () |
| Retrieves the char width - get/set -. More... | |
| const Dtk_Double64 & | CharWidth () const |
| Retrieves the char width - read only -. More... | |
| Dtk_TextStyle () | |
| Default constructor. More... | |
| Dtk_TextStyle (const Dtk_TextStyle &in) | |
| Copy constructor. More... | |
| Dtk_TextStyle (Dtk_TextStyle &&in) DTK_NOEXCEPT | |
| Move constructor. More... | |
| Dtk_Font & | Font () |
| Retrieves the font - get/set -. More... | |
| const Dtk_Font & | Font () const |
| Retrieves the font - read only -. More... | |
| FontStyleEnum & | FontStyle () |
| Retrieves the font style - get/set -. More... | |
| const FontStyleEnum & | FontStyle () const |
| Retrieves the font style - read only -. More... | |
| TextJustificationEnum & | Justification () |
| Retrieves the text justification - get/set -. More... | |
| const TextJustificationEnum & | Justification () const |
| Retrieves the text justification - read only -. More... | |
| Dtk_Double64 & | LineSpacing () |
| Retrieves the line spacing - get/set -. More... | |
| const Dtk_Double64 & | LineSpacing () const |
| Retrieves the line spacing - read only -. More... | |
| Dtk_TextStyle & | operator= (const Dtk_TextStyle &in) |
| Copy assignment operator. More... | |
| Dtk_TextStyle & | operator= (Dtk_TextStyle &&in) DTK_NOEXCEPT |
| Move assignment operator. More... | |
| Dtk_Double64 & | Pitch () |
| Retrieves the text pitch - get/set -. More... | |
| const Dtk_Double64 & | Pitch () const |
| Retrieves the text pitch - read only -. More... | |
| Dtk_Double64 & | Ratio () |
| Retrieves the text ratio - get/set -. More... | |
| const Dtk_Double64 & | Ratio () const |
| Retrieves the text ratio - Read Only -. More... | |
| Dtk_Double64 & | Slant () |
| Retrieves the text slant - get/set -. More... | |
| const Dtk_Double64 & | Slant () const |
| Retrieves the text slant - read only -. More... | |
| ~Dtk_TextStyle () | |
| Destructor. More... | |
Static Public Member Functions | |
| static Dtk_string | FontStyleEnumToString (const FontStyleEnum &inEnum) |
| static Dtk_string | TextJustificationEnumToString (const TextJustificationEnum &inEnum) |
Protected Attributes | |
| TextAttributeEnum | _attributes |
| Text Attribute (Underline, etc...) More... | |
| Dtk_Double64 | _char_height |
| Height of each char in the text. More... | |
| Dtk_Double64 | _char_spacing |
| Spacing between two chars. More... | |
| Dtk_Double64 | _char_width |
| Width of each char in the text. More... | |
| Dtk_Font | _font |
| Font informations. More... | |
| FontStyleEnum | _font_style |
| Font Style type (Regular, Italic, etc...) More... | |
| TextJustificationEnum | _justification |
| Text Justification (Left, etc...) More... | |
| Dtk_Double64 | _line_spacing |
| Spacing between two lines in the text - for multiline texts for example -. More... | |
| Dtk_Double64 | _pitch |
| Char Pitch. More... | |
| Dtk_Double64 | _ratio |
| Char Ratio. It represents the stretch of the width of the text. Default value is 1. More... | |
| Dtk_Double64 | _slant |
| Char Slant (PI/2 by default) More... | |
This is the text_style. This class gathers information about text style.
| Dtk_TextStyle::~Dtk_TextStyle | ( | ) |
Destructor.
| Dtk_TextStyle::Dtk_TextStyle | ( | ) |
Default constructor.
| Dtk_TextStyle::Dtk_TextStyle | ( | const Dtk_TextStyle & | in | ) |
Copy constructor.
| in | Object to copy from. |
| Dtk_TextStyle::Dtk_TextStyle | ( | Dtk_TextStyle && | in | ) |
Move constructor.
| in | Object to move from. |
| TextAttributeEnum& Dtk_TextStyle::Attributes | ( | ) |
| const TextAttributeEnum& Dtk_TextStyle::Attributes | ( | ) | const |
| Dtk_Double64& Dtk_TextStyle::CharHeight | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::CharHeight | ( | ) | const |
| Dtk_Double64& Dtk_TextStyle::CharSpacing | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::CharSpacing | ( | ) | const |
| Dtk_Double64& Dtk_TextStyle::CharWidth | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::CharWidth | ( | ) | const |
| Dtk_Font& Dtk_TextStyle::Font | ( | ) |
| const Dtk_Font& Dtk_TextStyle::Font | ( | ) | const |
| FontStyleEnum& Dtk_TextStyle::FontStyle | ( | ) |
| const FontStyleEnum& Dtk_TextStyle::FontStyle | ( | ) | const |
|
static |
| TextJustificationEnum& Dtk_TextStyle::Justification | ( | ) |
| const TextJustificationEnum& Dtk_TextStyle::Justification | ( | ) | const |
Retrieves the text justification - read only -.
| Dtk_Double64& Dtk_TextStyle::LineSpacing | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::LineSpacing | ( | ) | const |
| Dtk_TextStyle& Dtk_TextStyle::operator= | ( | const Dtk_TextStyle & | in | ) |
Copy assignment operator.
| in | Object to copy from. |
| Dtk_TextStyle& Dtk_TextStyle::operator= | ( | Dtk_TextStyle && | in | ) |
Move assignment operator.
| in | Object to move from. |
| Dtk_Double64& Dtk_TextStyle::Pitch | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::Pitch | ( | ) | const |
| Dtk_Double64& Dtk_TextStyle::Ratio | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::Ratio | ( | ) | const |
| Dtk_Double64& Dtk_TextStyle::Slant | ( | ) |
| const Dtk_Double64& Dtk_TextStyle::Slant | ( | ) | const |
|
static |
|
protected |
Text Attribute (Underline, etc...)
|
protected |
Height of each char in the text.
|
protected |
Spacing between two chars.
|
protected |
Width of each char in the text.
|
protected |
Font informations.
|
protected |
Font Style type (Regular, Italic, etc...)
|
protected |
Text Justification (Left, etc...)
|
protected |
Spacing between two lines in the text - for multiline texts for example -.
|
protected |
Char Pitch.
|
protected |
Char Ratio. It represents the stretch of the width of the text. Default value is 1.
|
protected |
Char Slant (PI/2 by default)