Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::gui::widgets::ButtonPressedEvent Class Reference

Event that is triggered when a button is pressed. More...

#include <button.h>

Inheritance diagram for MaxOS::gui::widgets::ButtonPressedEvent:
MaxOS::common::Event< ButtonEvents >

Public Member Functions

 ButtonPressedEvent (Button *)
 Construct a new Button Pressed Event object.
 
- Public Member Functions inherited from MaxOS::common::Event< ButtonEvents >
 Event (ButtonEvents type)
 Constructs a new Event object.
 

Public Attributes

Buttonsource
 The button that triggered the event.
 
- Public Attributes inherited from MaxOS::common::Event< ButtonEvents >
ButtonEvents type
 
uint8_tbuffer_value
 
uint32_t int_value
 
bool bool_value
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

Event that is triggered when a button is pressed.

Definition at line 36 of file button.h.

Constructor & Destructor Documentation

◆ ButtonPressedEvent()

ButtonPressedEvent::ButtonPressedEvent ( Button source)
explicit

Construct a new Button Pressed Event object.

Parameters
sourceThe button that triggered the event

Definition at line 209 of file button.cpp.

210: Event(ButtonEvents::PRESSED),
212{
213}
Used to store information about an event, has a type and a return value.
Button * source
The button that triggered the event.
Definition button.h:41

Member Data Documentation

◆ source

Button* MaxOS::gui::widgets::ButtonPressedEvent::source

The button that triggered the event.

Definition at line 41 of file button.h.


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