|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Default fonts, metrics and colors. More...
#include <cc/StylePlugin>
Public Member Functions | |
| StylePlugin ()=default | |
| Create a null style plugin. | |
| String | name () const |
| Plugin name | |
| Font | defaultFont () const |
| Default font. | |
| StylePlugin & | defaultFont (const Font &font) |
| Set default font | |
| Font | defaultFixedFont () const |
| Default fixed font. | |
| StylePlugin & | defaultFixedFont (const Font &font) |
| Set default fixed font | |
| Font | defaultSmallFont () const |
| Default small font. | |
| Font | defaultMediumFont () const |
| Default small font. | |
| double | gridUnit () const |
| Grid unit | |
| double | dividerThickness () const |
| Thickness of horizontal rulers | |
| double | itemHeight1 () const |
| Item height 1 | |
| double | itemHeight2 () const |
| Item height 2 | |
| double | itemHeight3 () const |
| Item height 3 | |
| Size | defaultLayoutMargin () const |
| Default layout margin. | |
| double | defaultLayoutSpacing () const |
| Default layout spacing. | |
| double | scrollBarThickness () const |
| Thickness of scroll bars. | |
| double | scrollHandleMargin () const |
| Margin around scroll bar handles. | |
| double | scrollBarAutoHideTimeout () const |
| Timeout for an unneeded scroll bar to automatically hide | |
| double | scrollBarFadeOutDuration () const |
| Duration of the fade-out/fade-in animation when the visibility of a scroll bar changes. | |
| double | flickableIndicatorThickness () const |
| double | flickableIndicatorHandleMargin () const |
| bool | wheelInversion () const |
| Mouse wheel direction (touch mouse vs. wheel mouse) | |
| String | passwordBullet () const |
| Mask character for password input. | |
| Visual | icon (Icon ch, double size=0) const |
| Get a visual for the given icon code ch. | |
| Theme | theme () const |
| Styling theme. | |
Public Member Functions inherited from Object | |
| Object ()=default | |
| Create a null object. | |
| operator bool () const | |
| Check if this is a non-null object. | |
| bool | isNull () const |
| Check if this is a null object. | |
| template<class T > | |
| bool | is () const |
| Check if this object is of type T. | |
| template<class T > | |
| T | as () const |
| Cast this object to type T. | |
| bool | isWeak () const |
| Check if the underlying object reference is weak. | |
| bool | operator== (const Object &other) const |
| Equality operator. | |
| std::strong_ordering | operator<=> (const Object &other) const |
| Ordering operator. | |
| long | useCount () const |
| Reference count. | |
Protected Member Functions | |
| StylePlugin (State *newState) | |
| State & | me () |
| const State & | me () const |
Protected Member Functions inherited from Object | |
| template<class T > | |
| T | weak () const |
| template<class T > | |
| void | initOnce () |
| Create the object state when called the first time. | |
| template<class T > | |
| void | initOncePerThread () |
| Create a distinct object state for each thread when called the first time in that thread. | |
| Object (State *newState) | |
| Initialize object with newState. | |
| Object (State *state, Alias) | |
| Object (State *state, Weak) | |
| Object & | operator= (std::nullptr_t) |
Additional Inherited Members | |
Static Protected Member Functions inherited from Object | |
| template<class T > | |
| static T | alias (const State *state) |
| Create an alias object for the given state. | |
| template<class T > | |
| static T | weak (const State *state) |
Protected Attributes inherited from Object | |
| Handle< State > | me |
| Internal object state | |
Default fonts, metrics and colors.
|
default |
Create a null style plugin.
| String name | ( | ) | const |
Plugin name
| Font defaultFont | ( | ) | const |
Default font.
| StylePlugin & defaultFont | ( | const Font & | font | ) |
Set default font
| Font defaultFixedFont | ( | ) | const |
Default fixed font.
| StylePlugin & defaultFixedFont | ( | const Font & | font | ) |
Set default fixed font
| Font defaultSmallFont | ( | ) | const |
Default small font.
| Font defaultMediumFont | ( | ) | const |
Default small font.
| double gridUnit | ( | ) | const |
Grid unit
| double dividerThickness | ( | ) | const |
Thickness of horizontal rulers
| double itemHeight1 | ( | ) | const |
Item height 1
| double itemHeight2 | ( | ) | const |
Item height 2
| double itemHeight3 | ( | ) | const |
Item height 3
| Size defaultLayoutMargin | ( | ) | const |
Default layout margin.
| double defaultLayoutSpacing | ( | ) | const |
Default layout spacing.
| double scrollBarThickness | ( | ) | const |
Thickness of scroll bars.
| double scrollHandleMargin | ( | ) | const |
Margin around scroll bar handles.
| double scrollBarAutoHideTimeout | ( | ) | const |
Timeout for an unneeded scroll bar to automatically hide
| double scrollBarFadeOutDuration | ( | ) | const |
Duration of the fade-out/fade-in animation when the visibility of a scroll bar changes.
| bool wheelInversion | ( | ) | const |
Mouse wheel direction (touch mouse vs. wheel mouse)
| String passwordBullet | ( | ) | const |
Mask character for password input.
| Theme theme | ( | ) | const |
Styling theme.