hollyhock
Public Types | Public Member Functions | List of all members
GUILabel Class Reference
Inheritance diagram for GUILabel:
Inheritance graph
[legend]
Collaboration diagram for GUILabel:
Collaboration graph
[legend]

Public Types

enum  Flag : int { FlagBackground = 1 << 0 , FlagSelectable = 1 << 15 }
 

Public Member Functions

 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)
 
- Public Member Functions inherited from Wrapped
template<typename T >
T * GetWrapped ()
 

Additional Inherited Members

- Protected Member Functions inherited from Wrapped
 Wrapped (Wrapped const &)=delete
 
void operator= (Wrapped const &)=delete
 
- Protected Attributes inherited from Wrapped
void * m_wrapped
 A pointer to the wrapped class.
 

Member Enumeration Documentation

◆ Flag

enum GUILabel::Flag : int
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.

Constructor & Destructor Documentation

◆ GUILabel() [1/3]

GUILabel::GUILabel ( int  x,
int  y,
const char *  text 
)

Creates a label.

Parameters
x,yThe position to place the label at, in pixels and relative to the top left of the display.
[in]textThe 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,yThe position to place the label at, in pixels and relative to the top left of the display.
[in]textThe text to display as the label.
flagsA bitfield of flags specified by bitwise-ORing members of the Flag enum.
[in]textColorA pointer to an RGB565 color to use for the text, or 0 for the default color.
[in]backgroundColorA 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,yThe position to place the label at, in pixels and relative to the top left of the display.
[in]textThe text to display as the label.
flagsA bitfield of flags specified by bitwise-ORing members of the Flag enum.
[in]textColorA pointer to an RGB565 color to use for the text, or 0 for the default color.
[in]backgroundColorA pointer to an RGB565 color to use for the background, or 0 for the default color.
showShadowTrue if the text shadow should be shown.
shadowColorAn RGB565 color to use for the text shadow.

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