Same as the CColor class, but this one can also parse colors predefined in the GUI page (such as "yellow").
More...
#include <CGUIColor.h>
|
| NONCOPYABLE (CGUIColor) |
|
| MOVABLE (CGUIColor) |
|
| CGUIColor () |
|
| CGUIColor (float r, float g, float b, float a) |
|
bool | ParseString (const CGUI &pGUI, const CStr8 &value, int defaultAlpha=255) |
| Load color depending on current GUI page. More...
|
|
bool | ParseString (const CStr8 &value, int defaultAlpha=255)=delete |
| Ensure that all users check for predefined colors. More...
|
|
| CColor () |
|
| CColor (float cr, float cg, float cb, float ca) |
|
| operator bool () const |
| Returns whether this has been set to a valid color. More...
|
|
bool | ParseString (const CStr8 &value, int defaultAlpha=255) |
| Try to parse Value as a color. More...
|
|
bool | operator== (const CColor &color) const |
|
bool | operator!= (const CColor &color) const |
|
PS::span< const float > | AsFloatArray () const |
|
SColor4ub | AsSColor4ub () const |
|
|
float | r |
|
float | g |
|
float | b |
|
float | a |
|
Same as the CColor class, but this one can also parse colors predefined in the GUI page (such as "yellow").
◆ CGUIColor() [1/2]
◆ CGUIColor() [2/2]
CGUIColor::CGUIColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
inline |
◆ MOVABLE()
◆ NONCOPYABLE()
◆ ParseString() [1/2]
bool CGUIColor::ParseString |
( |
const CGUI & |
pGUI, |
|
|
const CStr8 & |
value, |
|
|
int |
defaultAlpha = 255 |
|
) |
| |
Load color depending on current GUI page.
◆ ParseString() [2/2]
bool CGUIColor::ParseString |
( |
const CStr8 & |
value, |
|
|
int |
defaultAlpha = 255 |
|
) |
| |
|
delete |
Ensure that all users check for predefined colors.
The documentation for this struct was generated from the following file:
- /home/docker/jenkins/workspace/technical-docs/source/gui/SettingTypes/CGUIColor.h