|
| GUIButton (uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY, const char *text, uint16_t eventID) |
|
| GUIButton (uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY, const char *text, uint16_t eventID, int flags) |
|
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 |
---|
FlagEnabled | Allows the button to be pressed.
|
◆ GUIButton() [1/2]
GUIButton::GUIButton |
( |
uint16_t |
leftX, |
|
|
uint16_t |
topY, |
|
|
uint16_t |
rightX, |
|
|
uint16_t |
bottomY, |
|
|
const char * |
text, |
|
|
uint16_t |
eventID |
|
) |
| |
Creates a button.
The event.type
value which arises when the button is pressed is not the value passed in the eventType
parameter. You must use the GetEventType method to convert the eventType
parameter passed in here to the event.type
value. 0 is not a valid value for the eventType
parameter.
- Parameters
-
| leftX,topY,rightX,bottomY | The coordinates of the bounding box of the button, in screen pixels relative to the top left of the display. |
[in] | text | The text to display on the button. |
| eventID | The ID to use for events relating to this button. |
◆ GUIButton() [2/2]
GUIButton::GUIButton |
( |
uint16_t |
leftX, |
|
|
uint16_t |
topY, |
|
|
uint16_t |
rightX, |
|
|
uint16_t |
bottomY, |
|
|
const char * |
text, |
|
|
uint16_t |
eventID, |
|
|
int |
flags |
|
) |
| |
Creates a button.
The event.type
value which arises when the button is pressed is not the value passed in the eventType
parameter. You must use the GetEventType method to convert the eventType
parameter passed in here to the event.type
value. 0 is not a valid value for the eventType
parameter.
- Parameters
-
| leftX,topY,rightX,bottomY | The coordinates of the bounding box of the button, in screen pixels relative to the top left of the display. |
[in] | text | The text to display on the button. |
| eventID | The ID to use for events relating to this button. |
| flags | A bitfield of flags specified by bitwise-ORing members of the Flag enum. |
The documentation for this class was generated from the following files: