mu_Context

Main DDUI context structure. The instance of which will be given to DDUI functions.

Members

Variables

clip_stack
mu_Stack!(mu_Rect, MU_CLIPSTACK_SIZE) clip_stack;
Undocumented in source.
command_list
mu_Stack!(mu_Command, MU_COMMANDLIST_SIZE) command_list;
Undocumented in source.
container_pool
mu_PoolItem[MU_CONTAINERPOOL_SIZE] container_pool;
Undocumented in source.
container_stack
mu_Stack!(mu_Container*, MU_CONTAINERSTACK_SIZE) container_stack;
Undocumented in source.
containers
mu_Container[MU_CONTAINERPOOL_SIZE] containers;
Undocumented in source.
focus
mu_Id focus;
Undocumented in source.
frame
int frame;
Undocumented in source.
hover
mu_Id hover;
Undocumented in source.
hover_root
mu_Container* hover_root;
Undocumented in source.
id_stack
mu_Stack!(mu_Id, MU_IDSTACK_SIZE) id_stack;
Undocumented in source.
input_text
char[MU_TEXT_LEN] input_text;
Undocumented in source.
key_down
int key_down;
Undocumented in source.
key_pressed
int key_pressed;
Undocumented in source.
last_id
mu_Id last_id;
Undocumented in source.
last_mouse_pos
mu_Vec2 last_mouse_pos;
Undocumented in source.
last_rect
mu_Rect last_rect;
Undocumented in source.
last_zindex
int last_zindex;
Undocumented in source.
layout_stack
mu_Stack!(mu_Layout, MU_LAYOUTSTACK_SIZE) layout_stack;
Undocumented in source.
mouse_delta
mu_Vec2 mouse_delta;
Undocumented in source.
mouse_down
int mouse_down;
Undocumented in source.
mouse_pos
mu_Vec2 mouse_pos;
Undocumented in source.
mouse_pressed
int mouse_pressed;
Undocumented in source.
mu_draw_frame
void function(mu_Context* ctx, mu_Rect rect, int colorid) mu_draw_frame;

Callback for drawing boxes.

next_hover_root
mu_Container* next_hover_root;
Undocumented in source.
number_edit
mu_Id number_edit;
Undocumented in source.
number_edit_buf
char[MU_MAX_FMT] number_edit_buf;
Undocumented in source.
root_list
mu_Stack!(mu_Container*, MU_ROOTLIST_SIZE) root_list;
Undocumented in source.
scroll_delta
mu_Vec2 scroll_delta;
Undocumented in source.
scroll_target
mu_Container* scroll_target;
Undocumented in source.
style
mu_Style* style;
Undocumented in source.
text_height
int function(mu_Font font) text_height;

Text height callback.

text_width
int function(mu_Font font, const(char)* str, int len) text_width;

Text width callback.

treenode_pool
mu_PoolItem[MU_TREENODEPOOL_SIZE] treenode_pool;
Undocumented in source.
updated_focus
int updated_focus;
Undocumented in source.

Meta