GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gui.h File Reference

Type definitions related to GUI. More...

#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/draw.h>
#include <gf_type/core.h>

Go to the source code of this file.

Data Structures

struct  gf_gui_button_t
 Button component. More...
 
union  gf_gui_union_t
 Component union. More...
 
struct  gf_gui_component_t
 Component. More...
 
struct  gf_gui_t
 GUI. More...
 

Macros

#define GF_GUI_MAX_COMPONENTS   64
 Max components GUI can handle.
 

Typedefs

typedef int gf_gui_id_t
 Component ID.
 
typedef void(* gf_gui_callback_t) (gf_engine_t *engine, gf_draw_t *draw, gf_gui_id_t id, int type)
 

Enumerations

enum  GF_GUI_EVENTS { GF_GUI_PRESS_EVENT = 0 }
 GUI events. More...
 
enum  GF_GUI_COMPONENT_TYPES { GF_GUI_UNUSED = -1 , GF_GUI_BUTTON }
 GUI component types. More...
 

Detailed Description

Type definitions related to GUI.

Definition in file gui.h.

Macro Definition Documentation

◆ GF_GUI_MAX_COMPONENTS

#define GF_GUI_MAX_COMPONENTS   64

Max components GUI can handle.

Definition at line 48 of file gui.h.

Typedef Documentation

◆ gf_gui_callback_t

typedef void(* gf_gui_callback_t) (gf_engine_t *engine, gf_draw_t *draw, gf_gui_id_t id, int type)

Definition at line 42 of file gui.h.

◆ gf_gui_id_t

typedef int gf_gui_id_t

Component ID.

Definition at line 17 of file gui.h.

Enumeration Type Documentation

◆ GF_GUI_COMPONENT_TYPES

GUI component types.

Definition at line 54 of file gui.h.

◆ GF_GUI_EVENTS

GUI events.

Definition at line 23 of file gui.h.