A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest).onFocus(lit).onPress(pressed)
More...
#include <GuiPaint.h>
Public Member Functions | |
| GuiShapeStyle (const GuiPaint &normalPaint=GuiPaint()) | |
| GuiShapeStyle & | onFocus (const GuiPaint &p) |
| GuiShapeStyle & | onPress (const GuiPaint &p) |
| GuiShapeStyle & | onDisable (const GuiPaint &p) |
| const GuiPaint & | forState (SHAPE_STATE s) const |
| Gets the paint for a state, falling back to normal when none was set. | |
Public Attributes | |
| GuiPaint | normal |
| GuiPaint | focused |
| GuiPaint | pressed |
| GuiPaint | disabled |
| bool | hasFocused |
| bool | hasPressed |
| bool | hasDisabled |
A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest).onFocus(lit).onPress(pressed)
Definition at line 80 of file GuiPaint.h.
| GuiShapeStyle::GuiShapeStyle | ( | const GuiPaint & | normalPaint = GuiPaint() | ) |
Definition at line 182 of file GuiPaint.cpp.
| const GuiPaint & GuiShapeStyle::forState | ( | SHAPE_STATE | s | ) | const |
Gets the paint for a state, falling back to normal when none was set.
Definition at line 207 of file GuiPaint.cpp.
| GuiShapeStyle & GuiShapeStyle::onDisable | ( | const GuiPaint & | p | ) |
Definition at line 200 of file GuiPaint.cpp.
| GuiShapeStyle & GuiShapeStyle::onFocus | ( | const GuiPaint & | p | ) |
Definition at line 186 of file GuiPaint.cpp.
| GuiShapeStyle & GuiShapeStyle::onPress | ( | const GuiPaint & | p | ) |
Definition at line 193 of file GuiPaint.cpp.
| GuiPaint GuiShapeStyle::disabled |
Definition at line 84 of file GuiPaint.h.
| GuiPaint GuiShapeStyle::focused |
Definition at line 82 of file GuiPaint.h.
| bool GuiShapeStyle::hasDisabled |
Definition at line 87 of file GuiPaint.h.
| bool GuiShapeStyle::hasFocused |
Definition at line 85 of file GuiPaint.h.
| bool GuiShapeStyle::hasPressed |
Definition at line 86 of file GuiPaint.h.
| GuiPaint GuiShapeStyle::normal |
Definition at line 81 of file GuiPaint.h.
| GuiPaint GuiShapeStyle::pressed |
Definition at line 83 of file GuiPaint.h.