Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
UI_button.h
Go to the documentation of this file.
1
10#include <UI.h>
11
12typedef struct {
13 char* text;
14 SDL_Texture* textTexture;
15 SDL_Texture* normalTexture;
16 SDL_Texture* hoverTexture;
17 SDL_Texture* pressedTexture;
18 SDL_Texture* disabledTexture;
19 void (*onClick)(void);
Defines the base UI element structure for the user interface system.
Definition UI_button.h:12
SDL_Texture * hoverTexture
Default state.
Definition UI_button.h:16
SDL_Texture * disabledTexture
Pressed state.
Definition UI_button.h:18
SDL_Texture * textTexture
Button text.
Definition UI_button.h:14
char * text
Definition UI_button.h:13
SDL_Texture * normalTexture
Pre-rendered text.
Definition UI_button.h:15
SDL_Texture * pressedTexture
Mouse-over state.
Definition UI_button.h:17