libGumball 0.0.2
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_event_input.h File Reference

Go to the source code of this file.

Macros

Type System

Type UUID and Cast Operators

#define GUM_EVENT_INPUT_TYPE
#define GUM_EVENT_INPUT(self)
#define GUM_EVENT_INPUT_CLASS(klass)
#define GUM_EVENT_INPUT_CLASSOF(self)

Enumerations

enum  GUM_INPUT_STATE : uint8_t
enum  GUM_INPUT_ID : uint8_t

Functions

 GBL_CLASS_DERIVE_EMPTY (GUM_Event_Input, GUM_Event)
 GBL_INSTANCE_DERIVE (GUM_Event_Input, GUM_Event) GUM_INPUT_STATE state

Variables

GUM_INPUT_ID id

Detailed Description

Base event type for input.

Author
2025 Agustín Bellagamba

Macro Definition Documentation

◆ GUM_EVENT_INPUT_TYPE

#define GUM_EVENT_INPUT_TYPE

Returns the GUM_Event_Input Type UUID.

◆ GUM_EVENT_INPUT

#define GUM_EVENT_INPUT ( self)

Casts an instance of a compatible element to a GUM_Event_Input.

◆ GUM_EVENT_INPUT_CLASS

#define GUM_EVENT_INPUT_CLASS ( klass)

Casts a class of a compatible element to a GUM_Event_InputClass.

◆ GUM_EVENT_INPUT_CLASSOF

#define GUM_EVENT_INPUT_CLASSOF ( self)

Casts an instance of a compatible element to a GUM_Event_InputClass.

Enumeration Type Documentation

◆ GUM_INPUT_STATE

enum GUM_INPUT_STATE : uint8_t
31 : uint8_t {
32 GUM_INPUT_PRESS,
33 GUM_INPUT_RELEASE
34} GUM_INPUT_STATE;

◆ GUM_INPUT_ID

enum GUM_INPUT_ID : uint8_t
36 : uint8_t {
37 GUM_INPUT_PRIMARY,
38 GUM_INPUT_SECONDARY,
39 GUM_INPUT_TERTIARY,
40 GUM_INPUT_LEFT,
41 GUM_INPUT_UP,
42 GUM_INPUT_RIGHT,
43 GUM_INPUT_DOWN
44} GUM_INPUT_ID;

Function Documentation

◆ GBL_INSTANCE_DERIVE()

GBL_INSTANCE_DERIVE ( GUM_Event_Input ,
GUM_Event  )

State of the input event.

Variable Documentation

◆ id

GUM_INPUT_ID id

ID of the input event.