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

Go to the source code of this file.

Macros

#define GUM_Button_create(...)
Type System

Type UUID and cast operators

#define GUM_BUTTON_TYPE
#define GUM_BUTTON(self)
#define GUM_BUTTON_CLASS(klass)
#define GUM_BUTTON_CLASSOF(self)

Variables

Properties

Button properties you can set/get at or after creation.

Note
You can also set/get properties from parent classes (see GUM_Button).
GUM_Widget bool isActive
bool isSelectable
bool isSelectedByDefault

Detailed Description

GUM_Button data structure and hierarchy graph

GUM_Button is a basic button element that can be selected and pressed, firing a signal you can connect a callback to.

Todo
  • Add a way to override cursor movement to the desired GUM_Button pointer.
  • Button highlighting animations
  • Make variables private
  • Document signals.
Author
2025 Agustín Bellagamba

Macro Definition Documentation

◆ GUM_BUTTON_TYPE

#define GUM_BUTTON_TYPE

Returns the GUM_Button Type UUID.

◆ GUM_BUTTON

#define GUM_BUTTON ( self)

Casts an instance of a compatible element to a GUM_Button.

◆ GUM_BUTTON_CLASS

#define GUM_BUTTON_CLASS ( klass)

Casts an class of a compatible element to a GUM_ButtonClass.

◆ GUM_BUTTON_CLASSOF

#define GUM_BUTTON_CLASSOF ( self)

Casts an instance of a compatible element to a GUM_ButtonClass.

Variable Documentation

◆ isActive

GUM_Widget bool isActive

If this button can be pressed.

Default value is true

◆ isSelectable

bool isSelectable

If this button can be selected.

Default value is true

◆ isSelectedByDefault

bool isSelectedByDefault

If this button should be selected by default when the cursor doesn't have a button selected.

Default value is false