CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxUIPalette Class Reference

#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 ()
 
CFxUIPaletteoperator= (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 }
 

Detailed Description

Definition at line 30 of file FxUIPalette.h.

Member Enumeration Documentation

◆ FxUIColorGroup

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.

◆ FxUIColorRole

This enum type defines the different symbolic color roles used in user interface.

Enumerator
WindowText 
Button 
Light 
Midlight 
Dark 
Mid 
Text 
BrightText 
ButtonText 
Base 
Window 
Shadow 
Highlight 
HighlightedText 
Link 
LinkVisited 
AlternateBase 
NoRole 
ToolTipBase 
ToolTipText 
PlaceholderText 
NColorRoles 

Definition at line 51 of file FxUIPalette.h.

Constructor & Destructor Documentation

◆ CFxUIPalette() [1/3]

CFxUIPalette::CFxUIPalette ( )

Constructor

◆ CFxUIPalette() [2/3]

CFxUIPalette::CFxUIPalette ( const QPalette & pal)

Parameterized Constructor

◆ CFxUIPalette() [3/3]

CFxUIPalette::CFxUIPalette ( const CFxUIPalette & pal)

Copy Constructor

◆ ~CFxUIPalette()

CFxUIPalette::~CFxUIPalette ( )

Destructor

Member Function Documentation

◆ color()

CFxUIColor CFxUIPalette::color ( CFxUIPalette::FxUIColorRole role) const

Returns the color that has been set for the given color role in the current ColorGroup.

Parameters
CFxUIPalette::FxUIColorRole
Returns
CFxUIColor

◆ isBrushSet()

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.

Parameters
CFxUIPalette::FxUIColorGroup
CFxUIPalette::FxUIColorRole
Returns
bool

◆ operator()()

const QPalette & CFxUIPalette::operator() ( ) const

() Operator

Returns
QPalette

◆ operator=()

CFxUIPalette & CFxUIPalette::operator= ( const CFxUIPalette & pal)

Assignment Operator

◆ setColor()

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.

Parameters
firstrole used from CFxUIPalette::FxUIColorRole
secondcolor to be set .

Member Data Documentation

◆ m_pImpl

CFxUIPaletteImpl* CFxUIPalette::m_pImpl { nullptr }
protected

Definition at line 129 of file FxUIPalette.h.


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