Max OS 0.3
Loading...
Searching...
No Matches
button.h File Reference

Defines a Button widget for the GUI, including event handling for button presses and releases. More...

#include <cstdint>
#include <common/eventHandler.h>
#include <gui/widget.h>
#include <gui/font.h>

Go to the source code of this file.

Classes

class  MaxOS::gui::widgets::ButtonPressedEvent
 Event that is triggered when a button is pressed. More...
 
class  MaxOS::gui::widgets::ButtonReleasedEvent
 Event that is triggered when a button is released. More...
 
class  MaxOS::gui::widgets::ButtonEventHandler
 Handles button events. More...
 
class  MaxOS::gui::widgets::Button
 A button widget, can be clicked. More...
 

Enumerations

enum class  MaxOS::gui::widgets::ButtonEvents { PRESSED , RELEASED }
 The events that a button can trigger. More...
 

Detailed Description

Defines a Button widget for the GUI, including event handling for button presses and releases.

Date
10th October 2023
Author
Max Tyson

Definition in file button.h.

Enumeration Type Documentation

◆ ButtonEvents

The events that a button can trigger.

Definition at line 27 of file button.h.

27 {
28 PRESSED,
29 RELEASED
30 };