Kohi Game Engine
sui_textbox.h File Reference

Go to the source code of this file.

Data Structures

struct  sui_textbox_internal_data
 

Typedefs

typedef struct sui_textbox_internal_data sui_textbox_internal_data
 

Functions

KAPI b8 sui_textbox_control_create (standard_ui_state *state, const char *name, font_type type, kname font_name, u16 font_size, const char *text, struct sui_control *out_control)
 
KAPI void sui_textbox_control_destroy (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_textbox_control_size_set (standard_ui_state *state, struct sui_control *self, i32 width, i32 height)
 
KAPI b8 sui_textbox_control_width_set (standard_ui_state *state, struct sui_control *self, i32 width)
 
KAPI b8 sui_textbox_control_height_set (standard_ui_state *state, struct sui_control *self, i32 height)
 
KAPI b8 sui_textbox_control_load (standard_ui_state *state, struct sui_control *self)
 
KAPI void sui_textbox_control_unload (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_textbox_control_update (standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data)
 
KAPI b8 sui_textbox_control_render (standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data, standard_ui_render_data *render_data)
 
KAPI const char * sui_textbox_text_get (standard_ui_state *state, struct sui_control *self)
 
KAPI void sui_textbox_text_set (standard_ui_state *state, struct sui_control *self, const char *text)
 
KAPI void sui_textbox_on_mouse_down (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
KAPI void sui_textbox_on_mouse_up (standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 

Typedef Documentation

◆ sui_textbox_internal_data

Function Documentation

◆ sui_textbox_control_create()

KAPI b8 sui_textbox_control_create ( standard_ui_state state,
const char *  name,
font_type  type,
kname  font_name,
u16  font_size,
const char *  text,
struct sui_control out_control 
)

◆ sui_textbox_control_destroy()

KAPI void sui_textbox_control_destroy ( standard_ui_state state,
struct sui_control self 
)

◆ sui_textbox_control_height_set()

KAPI b8 sui_textbox_control_height_set ( standard_ui_state state,
struct sui_control self,
i32  height 
)

◆ sui_textbox_control_load()

KAPI b8 sui_textbox_control_load ( standard_ui_state state,
struct sui_control self 
)

◆ sui_textbox_control_render()

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

◆ sui_textbox_control_size_set()

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

◆ sui_textbox_control_unload()

KAPI void sui_textbox_control_unload ( standard_ui_state state,
struct sui_control self 
)

◆ sui_textbox_control_update()

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

◆ sui_textbox_control_width_set()

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

◆ sui_textbox_on_mouse_down()

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

◆ sui_textbox_on_mouse_up()

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

◆ sui_textbox_text_get()

KAPI const char* sui_textbox_text_get ( standard_ui_state state,
struct sui_control self 
)

◆ sui_textbox_text_set()

KAPI void sui_textbox_text_set ( standard_ui_state state,
struct sui_control self,
const char *  text 
)