Kohi Game Engine
sui_button.h File Reference

Go to the source code of this file.

Data Structures

struct  sui_button_internal_data
 

Typedefs

typedef struct sui_button_internal_data sui_button_internal_data
 

Functions

KAPI b8 sui_button_control_create (standard_ui_state *state, const char *name, struct sui_control *out_control)
 
KAPI void sui_button_control_destroy (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_button_control_height_set (standard_ui_state *state, struct sui_control *self, i32 width)
 
KAPI b8 sui_button_control_load (standard_ui_state *state, struct sui_control *self)
 
KAPI void sui_button_control_unload (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_button_control_update (standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data)
 
KAPI b8 sui_button_control_render (standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data, standard_ui_render_data *render_data)
 
KAPI void sui_button_on_mouse_out (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
KAPI void sui_button_on_mouse_over (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
KAPI void sui_button_on_mouse_down (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
KAPI void sui_button_on_mouse_up (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 

Typedef Documentation

◆ sui_button_internal_data

Function Documentation

◆ sui_button_control_create()

KAPI b8 sui_button_control_create ( standard_ui_state state,
const char *  name,
struct sui_control out_control 
)

◆ sui_button_control_destroy()

KAPI void sui_button_control_destroy ( standard_ui_state state,
struct sui_control self 
)

◆ sui_button_control_height_set()

KAPI b8 sui_button_control_height_set ( standard_ui_state state,
struct sui_control self,
i32  width 
)

◆ sui_button_control_load()

KAPI b8 sui_button_control_load ( standard_ui_state state,
struct sui_control self 
)

◆ sui_button_control_render()

KAPI b8 sui_button_control_render ( standard_ui_state state,
struct sui_control self,
struct frame_data p_frame_data,
standard_ui_render_data render_data 
)

◆ sui_button_control_unload()

KAPI void sui_button_control_unload ( standard_ui_state state,
struct sui_control self 
)

◆ sui_button_control_update()

KAPI b8 sui_button_control_update ( standard_ui_state state,
struct sui_control self,
struct frame_data p_frame_data 
)

◆ sui_button_on_mouse_down()

KAPI void sui_button_on_mouse_down ( standard_ui_state state,
struct sui_control self,
struct sui_mouse_event  event 
)

◆ sui_button_on_mouse_out()

KAPI void sui_button_on_mouse_out ( standard_ui_state state,
struct sui_control self,
struct sui_mouse_event  event 
)

◆ sui_button_on_mouse_over()

KAPI void sui_button_on_mouse_over ( standard_ui_state state,
struct sui_control self,
struct sui_mouse_event  event 
)

◆ sui_button_on_mouse_up()

KAPI void sui_button_on_mouse_up ( standard_ui_state state,
struct sui_control self,
struct sui_mouse_event  event 
)