|
| GUILabel (int x, int y, const char *text) |
|
| GUILabel (int x, int y, const char *text, int flags, uint16_t *textColor, uint16_t *backgroundColor) |
|
| GUILabel (int x, int y, const char *text, int flags, uint16_t *textColor, uint16_t *backgroundColor, bool showShadow, uint16_t shadowColor) |
|
template<typename T > |
T * | GetWrapped () |
|
|
| Wrapped (Wrapped const &)=delete |
|
void | operator= (Wrapped const &)=delete |
|
void * | m_wrapped |
| A pointer to the wrapped class.
|
|
◆ Flag
Enumerator |
---|
FlagBackground | Enables displaying the background color of the label.
|
FlagSelectable | Allows the label to be selected/brought into focus.
When the label is selected, the text and background colors switch.
|
◆ GUILabel() [1/3]
GUILabel::GUILabel |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
text |
|
) |
| |
Creates a label.
- Parameters
-
| x,y | The position to place the label at, in pixels and relative to the top left of the display. |
[in] | text | The text to display as the label. |
◆ GUILabel() [2/3]
GUILabel::GUILabel |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
text, |
|
|
int |
flags, |
|
|
uint16_t * |
textColor, |
|
|
uint16_t * |
backgroundColor |
|
) |
| |
Creates a label.
- Parameters
-
| x,y | The position to place the label at, in pixels and relative to the top left of the display. |
[in] | text | The text to display as the label. |
| flags | A bitfield of flags specified by bitwise-ORing members of the Flag enum. |
[in] | textColor | A pointer to an RGB565 color to use for the text, or 0 for the default color. |
[in] | backgroundColor | A pointer to an RGB565 color to use for the background, or 0 for the default color. |
◆ GUILabel() [3/3]
GUILabel::GUILabel |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
text, |
|
|
int |
flags, |
|
|
uint16_t * |
textColor, |
|
|
uint16_t * |
backgroundColor, |
|
|
bool |
showShadow, |
|
|
uint16_t |
shadowColor |
|
) |
| |
Creates a label.
- Parameters
-
| x,y | The position to place the label at, in pixels and relative to the top left of the display. |
[in] | text | The text to display as the label. |
| flags | A bitfield of flags specified by bitwise-ORing members of the Flag enum. |
[in] | textColor | A pointer to an RGB565 color to use for the text, or 0 for the default color. |
[in] | backgroundColor | A pointer to an RGB565 color to use for the background, or 0 for the default color. |
| showShadow | True if the text shadow should be shown. |
| shadowColor | An RGB565 color to use for the text shadow. |
The documentation for this class was generated from the following files:
- include/sdk/os/gui/label.hpp
- os/gui/label.cpp