CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
StylePlugin Class Reference

Default fonts, metrics and colors. More...

#include <cc/StylePlugin>

Inheritance diagram for StylePlugin:

Public Member Functions

 StylePlugin ()=default
 Create a null style plugin.
 
String name () const
 Plugin name
 
Font defaultFont () const
 Default font.
 
StylePlugindefaultFont (const Font &font)
 Set default font
 
Font defaultFixedFont () const
 Default fixed font.
 
StylePlugindefaultFixedFont (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 >
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 >
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)
 
Objectoperator= (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< Stateme
 Internal object state
 

Detailed Description

Default fonts, metrics and colors.

Constructor & Destructor Documentation

◆ StylePlugin()

StylePlugin ( )
default

Create a null style plugin.

Member Function Documentation

◆ name()

String name ( ) const

Plugin name

◆ defaultFont() [1/2]

Font defaultFont ( ) const

Default font.

◆ defaultFont() [2/2]

StylePlugin & defaultFont ( const Font & font)

Set default font

◆ defaultFixedFont() [1/2]

Font defaultFixedFont ( ) const

Default fixed font.

◆ defaultFixedFont() [2/2]

StylePlugin & defaultFixedFont ( const Font & font)

Set default fixed font

◆ defaultSmallFont()

Font defaultSmallFont ( ) const

Default small font.

◆ defaultMediumFont()

Font defaultMediumFont ( ) const

Default small font.

◆ gridUnit()

double gridUnit ( ) const

Grid unit

◆ dividerThickness()

double dividerThickness ( ) const

Thickness of horizontal rulers

◆ itemHeight1()

double itemHeight1 ( ) const

Item height 1

◆ itemHeight2()

double itemHeight2 ( ) const

Item height 2

◆ itemHeight3()

double itemHeight3 ( ) const

Item height 3

◆ defaultLayoutMargin()

Size defaultLayoutMargin ( ) const

Default layout margin.

◆ defaultLayoutSpacing()

double defaultLayoutSpacing ( ) const

Default layout spacing.

◆ scrollBarThickness()

double scrollBarThickness ( ) const

Thickness of scroll bars.

◆ scrollHandleMargin()

double scrollHandleMargin ( ) const

Margin around scroll bar handles.

◆ scrollBarAutoHideTimeout()

double scrollBarAutoHideTimeout ( ) const

Timeout for an unneeded scroll bar to automatically hide

◆ scrollBarFadeOutDuration()

double scrollBarFadeOutDuration ( ) const

Duration of the fade-out/fade-in animation when the visibility of a scroll bar changes.

◆ wheelInversion()

bool wheelInversion ( ) const

Mouse wheel direction (touch mouse vs. wheel mouse)

◆ passwordBullet()

String passwordBullet ( ) const

Mask character for password input.

◆ icon()

Visual icon ( Icon ch,
double size = 0 ) const

Get a visual for the given icon code ch.

◆ theme()

Theme theme ( ) const

Styling theme.