|
CFx SDK Documentation 2026 SP0
|
#include <FxUIPalette.h>
Public Types | |
| enum | FxUIColorGroup { Active , Disabled , Inactive , NColorGroups , Current , All , Normal = Active } |
| enum | FxUIColorRole { WindowText , Button , Light , Midlight , Dark , Mid , Text , BrightText , ButtonText , Base , Window , Shadow , Highlight , HighlightedText , Link , LinkVisited , AlternateBase , NoRole , ToolTipBase , ToolTipText , PlaceholderText , NColorRoles = PlaceholderText + 1 } |
Public Member Functions | |
| CFxUIPalette () | |
| CFxUIPalette (const QPalette &pal) | |
| CFxUIPalette (const CFxUIPalette &pal) | |
| ~CFxUIPalette () | |
| CFxUIPalette & | operator= (const CFxUIPalette &pal) |
| const QPalette & | operator() () const |
| bool | isBrushSet (CFxUIPalette::FxUIColorGroup cg, CFxUIPalette::FxUIColorRole colorRole) const |
| CFxUIColor | color (CFxUIPalette::FxUIColorRole role) const |
| void | setColor (CFxUIPalette::FxUIColorRole role, const CFxUIColor &color) |
Protected Attributes | |
| CFxUIPaletteImpl * | m_pImpl { nullptr } |
Definition at line 30 of file FxUIPalette.h.
This enum type defines color groups used in base view.
| Enumerator | |
|---|---|
| Active | |
| Disabled | |
| Inactive | |
| NColorGroups | |
| Current | |
| All | |
| Normal | |
Definition at line 37 of file FxUIPalette.h.
This enum type defines the different symbolic color roles used in user interface.
Definition at line 51 of file FxUIPalette.h.
| CFxUIPalette::CFxUIPalette | ( | ) |
Constructor
| CFxUIPalette::CFxUIPalette | ( | const QPalette & | pal | ) |
Parameterized Constructor
| CFxUIPalette::CFxUIPalette | ( | const CFxUIPalette & | pal | ) |
Copy Constructor
| CFxUIPalette::~CFxUIPalette | ( | ) |
Destructor
| CFxUIColor CFxUIPalette::color | ( | CFxUIPalette::FxUIColorRole | role | ) | const |
Returns the color that has been set for the given color role in the current ColorGroup.
| CFxUIPalette::FxUIColorRole |
| bool CFxUIPalette::isBrushSet | ( | CFxUIPalette::FxUIColorGroup | cg, |
| CFxUIPalette::FxUIColorRole | colorRole ) const |
Returns true if the ColorGroup cg and ColorRole cr has been set previously on this palette; otherwise returns false.
| const QPalette & CFxUIPalette::operator() | ( | ) | const |
() Operator
| CFxUIPalette & CFxUIPalette::operator= | ( | const CFxUIPalette & | pal | ) |
Assignment Operator
| void CFxUIPalette::setColor | ( | CFxUIPalette::FxUIColorRole | role, |
| const CFxUIColor & | color ) |
Sets the color used for the given color role, in all color groups, to the specified solid color.
| first | role used from CFxUIPalette::FxUIColorRole |
| second | color to be set . |
|
protected |
Definition at line 129 of file FxUIPalette.h.