Kohi Game Engine
sui_control Struct Reference

#include <standard_ui_system.h>

Data Fields

identifier id
 
khandle xform
 
char * name
 
b8 is_active
 
b8 is_visible
 
b8 is_hovered
 
b8 is_pressed
 
rect_2d bounds
 
struct sui_controlparent
 
struct sui_control ** children
 
void * internal_data
 
u64 internal_data_size
 
void * user_data
 
u64 user_data_size
 
void(* destroy )(struct standard_ui_state *state, struct sui_control *self)
 
b8(* load )(struct standard_ui_state *state, struct sui_control *self)
 
void(* unload )(struct standard_ui_state *state, struct sui_control *self)
 
b8(* update )(struct standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data)
 
void(* render_prepare )(struct standard_ui_state *state, struct sui_control *self, const struct frame_data *p_frame_data)
 
b8(* render )(struct standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data, standard_ui_render_data *reneder_data)
 
void(* on_click )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_mouse_down )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_mouse_up )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_mouse_over )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_mouse_out )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_mouse_move )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_click )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_mouse_over )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_mouse_out )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_mouse_down )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_mouse_up )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* internal_mouse_move )(struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)
 
void(* on_key )(struct standard_ui_state *state, struct sui_control *self, struct sui_keyboard_event event)
 

Field Documentation

◆ bounds

rect_2d bounds

◆ children

struct sui_control** children

◆ destroy

void(* destroy) (struct standard_ui_state *state, struct sui_control *self)

◆ id

◆ internal_click

void(* internal_click) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ internal_data

void* internal_data

◆ internal_data_size

u64 internal_data_size

◆ internal_mouse_down

void(* internal_mouse_down) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ internal_mouse_move

void(* internal_mouse_move) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ internal_mouse_out

void(* internal_mouse_out) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ internal_mouse_over

void(* internal_mouse_over) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ internal_mouse_up

void(* internal_mouse_up) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ is_active

b8 is_active

◆ is_hovered

b8 is_hovered

◆ is_pressed

b8 is_pressed

◆ is_visible

b8 is_visible

◆ load

b8(* load) (struct standard_ui_state *state, struct sui_control *self)

◆ name

char* name

◆ on_click

void(* on_click) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

The click handler for a control.

Parameters
selfA pointer to the control.
eventThe mouse event.
Returns
True if the event should be allowed to propagate to other controls; otherwise false.

◆ on_key

void(* on_key) (struct standard_ui_state *state, struct sui_control *self, struct sui_keyboard_event event)

◆ on_mouse_down

void(* on_mouse_down) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ on_mouse_move

void(* on_mouse_move) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ on_mouse_out

void(* on_mouse_out) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ on_mouse_over

void(* on_mouse_over) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ on_mouse_up

void(* on_mouse_up) (struct standard_ui_state *state, struct sui_control *self, struct sui_mouse_event event)

◆ parent

struct sui_control* parent

◆ render

b8(* render) (struct standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data, standard_ui_render_data *reneder_data)

◆ render_prepare

void(* render_prepare) (struct standard_ui_state *state, struct sui_control *self, const struct frame_data *p_frame_data)

◆ unload

void(* unload) (struct standard_ui_state *state, struct sui_control *self)

◆ update

b8(* update) (struct standard_ui_state *state, struct sui_control *self, struct frame_data *p_frame_data)

◆ user_data

void* user_data

◆ user_data_size

u64 user_data_size

◆ xform

khandle xform

The documentation for this struct was generated from the following file: