Kohi Game Engine
sui_label.h File Reference

Go to the source code of this file.

Data Structures

struct  sui_label_internal_data
 

Typedefs

typedef struct sui_label_internal_data sui_label_internal_data
 

Functions

KAPI b8 sui_label_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_label_control_destroy (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_label_control_load (standard_ui_state *state, struct sui_control *self)
 
KAPI void sui_label_control_unload (standard_ui_state *state, struct sui_control *self)
 
KAPI b8 sui_label_control_update (standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data)
 
KAPI b8 sui_label_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_label_text_set (standard_ui_state *state, struct sui_control *self, const char *text)
 Sets the text on the given label object. More...
 
KAPI const char * sui_label_text_get (standard_ui_state *state, struct sui_control *self)
 
KAPI void sui_label_colour_set (standard_ui_state *state, struct sui_control *self, vec4 colour)
 
KAPI f32 sui_label_line_height_get (standard_ui_state *state, struct sui_control *self)
 

Typedef Documentation

◆ sui_label_internal_data

Function Documentation

◆ sui_label_colour_set()

KAPI void sui_label_colour_set ( standard_ui_state state,
struct sui_control self,
vec4  colour 
)

◆ sui_label_control_create()

KAPI b8 sui_label_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_label_control_destroy()

KAPI void sui_label_control_destroy ( standard_ui_state state,
struct sui_control self 
)

◆ sui_label_control_load()

KAPI b8 sui_label_control_load ( standard_ui_state state,
struct sui_control self 
)

◆ sui_label_control_render()

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

◆ sui_label_control_unload()

KAPI void sui_label_control_unload ( standard_ui_state state,
struct sui_control self 
)

◆ sui_label_control_update()

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

◆ sui_label_line_height_get()

KAPI f32 sui_label_line_height_get ( standard_ui_state state,
struct sui_control self 
)

◆ sui_label_text_get()

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

◆ sui_label_text_set()

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

Sets the text on the given label object.

Parameters
u_textA pointer to the label whose text will be set.
textThe text to be set.