This class is used to return the style formats for rendering the texts.
More...
#include <texttheme.h>
This class is used to return the style formats for rendering the texts.
◆ TextThemeStyler()
Constructs the theme styler.
- Parameters
-
controller | the controller to use this styler for |
◆ ~TextThemeStyler()
edbee::TextThemeStyler::~TextThemeStyler |
( |
| ) |
|
|
virtual |
◆ controller()
◆ getLineFormatRanges()
QVector< QTextLayout::FormatRange > edbee::TextThemeStyler::getLineFormatRanges |
( |
int | lineIdx | ) |
|
This method returns a reference to the given line format. WARNING this reference is ONLY valid very shortly.. Another call to this method can invalidates the previous result!!!
- Parameters
-
- Returns
- the array of ranges
◆ setTheme()
void edbee::TextThemeStyler::setTheme |
( |
TextTheme * | theme | ) |
|
Sets the active theme When supplying 0 this theme applies the fallback theme.
◆ setThemeByName()
void edbee::TextThemeStyler::setThemeByName |
( |
const QString & | themeName | ) |
|
Sets the active theme name.
- Parameters
-
◆ theme()
TextTheme * edbee::TextThemeStyler::theme |
( |
| ) |
const |
◆ themeName()
QString edbee::TextThemeStyler::themeName |
( |
| ) |
const |
returns the current active theme name This method returns "" for the fallback theme It returns a NullString if the theme is specified manually (without the thememanager)
The documentation for this class was generated from the following files: