Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
PlatformStyle Class Reference

#include <platformstyle.h>

Public Member Functions

const QString & getName () const
 
bool getImagesOnButtons () const
 
bool getUseExtraSpacing () const
 
QColor TextColor () const
 
QColor SingleColor () const
 
QImage SingleColorImage (const QString &filename) const
 Colorize an image (given filename) with the icon color. More...
 
QIcon SingleColorIcon (const QString &filename) const
 Colorize an icon (given filename) with the icon color. More...
 
QIcon SingleColorIcon (const QIcon &icon) const
 Colorize an icon (given object) with the icon color. More...
 
QIcon TextColorIcon (const QIcon &icon) const
 Colorize an icon (given object) with the text color. More...
 

Static Public Member Functions

static const PlatformStyleinstantiate (const QString &platformId)
 Get style associated with provided platform name, or 0 if not known. More...
 

Private Member Functions

 PlatformStyle (const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
 

Private Attributes

QString name
 
bool imagesOnButtons
 
bool colorizeIcons
 
bool useExtraSpacing
 

Detailed Description

Definition at line 13 of file platformstyle.h.

Constructor & Destructor Documentation

◆ PlatformStyle()

PlatformStyle::PlatformStyle ( const QString &  name,
bool  imagesOnButtons,
bool  colorizeIcons,
bool  useExtraSpacing 
)
private

Definition at line 70 of file platformstyle.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ getImagesOnButtons()

bool PlatformStyle::getImagesOnButtons ( ) const
inline

Definition at line 21 of file platformstyle.h.

Here is the caller graph for this function:

◆ getName()

const QString& PlatformStyle::getName ( ) const
inline

Definition at line 19 of file platformstyle.h.

Here is the caller graph for this function:

◆ getUseExtraSpacing()

bool PlatformStyle::getUseExtraSpacing ( ) const
inline

Definition at line 22 of file platformstyle.h.

Here is the caller graph for this function:

◆ instantiate()

const PlatformStyle * PlatformStyle::instantiate ( const QString &  platformId)
static

Get style associated with provided platform name, or 0 if not known.

Definition at line 124 of file platformstyle.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SingleColor()

QColor PlatformStyle::SingleColor ( ) const

Definition at line 83 of file platformstyle.cpp.

Here is the caller graph for this function:

◆ SingleColorIcon() [1/2]

QIcon PlatformStyle::SingleColorIcon ( const QIcon &  icon) const

Colorize an icon (given object) with the icon color.

Definition at line 112 of file platformstyle.cpp.

Here is the call graph for this function:

◆ SingleColorIcon() [2/2]

QIcon PlatformStyle::SingleColorIcon ( const QString &  filename) const

Colorize an icon (given filename) with the icon color.

Definition at line 105 of file platformstyle.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SingleColorImage()

QImage PlatformStyle::SingleColorImage ( const QString &  filename) const

Colorize an image (given filename) with the icon color.

Definition at line 98 of file platformstyle.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TextColor()

QColor PlatformStyle::TextColor ( ) const

Definition at line 78 of file platformstyle.cpp.

Here is the caller graph for this function:

◆ TextColorIcon()

QIcon PlatformStyle::TextColorIcon ( const QIcon &  icon) const

Colorize an icon (given object) with the text color.

Definition at line 119 of file platformstyle.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ colorizeIcons

bool PlatformStyle::colorizeIcons
private

Definition at line 44 of file platformstyle.h.

◆ imagesOnButtons

bool PlatformStyle::imagesOnButtons
private

Definition at line 43 of file platformstyle.h.

◆ name

QString PlatformStyle::name
private

Definition at line 42 of file platformstyle.h.

◆ useExtraSpacing

bool PlatformStyle::useExtraSpacing
private

Definition at line 45 of file platformstyle.h.


The documentation for this class was generated from the following files: