GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
Button Struct Reference

A button representation. More...

#include <button.h>

Data Fields

u8 border_pal_idx
 Palette index of the button border whose color is updated depending on highlight.
 
u8 button_pal_idx
 Palette index of the color of the button itself, used for the border when not highlighted.
 
ButtonOnPressedFunc on_pressed
 Called when the button is pressed if can_be_pressed, don't call this directly, call button_press() instead. Should not be set to NULL.
 
ButtonCanBePressedFunc can_be_pressed
 Returns true if the button should be activated when pressed. Can be NULL if button can always be pressed.
 

Detailed Description

A button representation.

Definition at line 30 of file button.h.

Field Documentation

◆ border_pal_idx

u8 border_pal_idx

Palette index of the button border whose color is updated depending on highlight.

Definition at line 37 of file button.h.

◆ button_pal_idx

u8 button_pal_idx

Palette index of the color of the button itself, used for the border when not highlighted.

Definition at line 43 of file button.h.

◆ can_be_pressed

ButtonCanBePressedFunc can_be_pressed

Returns true if the button should be activated when pressed. Can be NULL if button can always be pressed.

Definition at line 56 of file button.h.

◆ on_pressed

ButtonOnPressedFunc on_pressed

Called when the button is pressed if can_be_pressed, don't call this directly, call button_press() instead. Should not be set to NULL.

Definition at line 50 of file button.h.


The documentation for this struct was generated from the following file: