ddui

Immediate-mode UI based on rxi/microui.

Members

Aliases

mu_Font
alias mu_Font = void*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
mu_Id
alias mu_Id = uint
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
mu_Real
alias mu_Real = float
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

MU_CLIP_PART
anonymousenum MU_CLIP_PART
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_COLOR_TEXT
anonymousenum MU_COLOR_TEXT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_COMMAND_JUMP
anonymousenum MU_COMMAND_JUMP
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_ICON_CLOSE
anonymousenum MU_ICON_CLOSE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_KEY_SHIFT
anonymousenum MU_KEY_SHIFT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_MOUSE_LEFT
anonymousenum MU_MOUSE_LEFT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_OPT_ALIGNCENTER
anonymousenum MU_OPT_ALIGNCENTER
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_RES_ACTIVE
anonymousenum MU_RES_ACTIVE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
RELATIVE
anonymousenum RELATIVE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

mu_begin
void mu_begin(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_begin_panel
mu_Container* mu_begin_panel(mu_Context* ctx, const(char)* name)

Creates a panel.

mu_begin_panel_ex
mu_Container* mu_begin_panel_ex(mu_Context* ctx, const(char)* name, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_begin_popup
int mu_begin_popup(mu_Context* ctx, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_begin_root_container
void mu_begin_root_container(mu_Context* ctx, mu_Container* cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_begin_treenode
int mu_begin_treenode(mu_Context* ctx, const(char)* label)
mu_begin_treenode_ex
int mu_begin_treenode_ex(mu_Context* ctx, const(char)* label, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_begin_window
int mu_begin_window(mu_Context* ctx, const(char)* title, mu_Rect rect)

Creates a window.

mu_begin_window_ex
int mu_begin_window_ex(mu_Context* ctx, const(char)* title, mu_Rect rect, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_bring_to_front
void mu_bring_to_front(mu_Context* ctx, mu_Container* cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_button
int mu_button(mu_Context* ctx, const(char)* label)

Creates a button.

mu_button_ex
int mu_button_ex(mu_Context* ctx, const(char)* label, int icon, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_check_clip
int mu_check_clip(mu_Context* ctx, mu_Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_checkbox
int mu_checkbox(mu_Context* ctx, const(char)* label, int* state)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_clamp
auto mu_clamp(X x, A a, B b)

Returns a clamped value with a given minimum and maximum.

mu_command_range
mu_Command[] mu_command_range(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_compare_zindex
int mu_compare_zindex(void* a, void* b)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_box
void mu_draw_box(mu_Context* ctx, mu_Rect rect, mu_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_control_frame
void mu_draw_control_frame(mu_Context* ctx, mu_Id id, mu_Rect rect, int colorid, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_control_text
void mu_draw_control_text(mu_Context* ctx, const(char)* str, mu_Rect rect, int colorid, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_frame
void mu_draw_frame(mu_Context* ctx, mu_Rect rect, int colorid)

Draw a frame of a window

mu_draw_icon
void mu_draw_icon(mu_Context* ctx, int id, mu_Rect rect, mu_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_rect
void mu_draw_rect(mu_Context* ctx, mu_Rect rect, mu_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_draw_text
void mu_draw_text(mu_Context* ctx, mu_Font font, const(char)* str, int len, mu_Vec2 pos, mu_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end
void mu_end(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end_panel
void mu_end_panel(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end_popup
void mu_end_popup(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end_root_container
void mu_end_root_container(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end_treenode
void mu_end_treenode(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_end_window
void mu_end_window(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_expand_rect
mu_Rect mu_expand_rect(mu_Rect rect, int n)

Expand a rectangle from its center by n pixels.

mu_get_clip_rect
mu_Rect mu_get_clip_rect(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_get_container
mu_Container* mu_get_container(mu_Context* ctx, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_get_container2
mu_Container* mu_get_container2(mu_Context* ctx, mu_Id id, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_get_current_container
mu_Container* mu_get_current_container(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_get_id
mu_Id mu_get_id(mu_Context* ctx, const(void)* data, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_get_layout
mu_Layout* mu_get_layout(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_header
int mu_header(mu_Context* ctx, const(char)* label)
mu_header2
int mu_header2(mu_Context* ctx, const(char)* label, int istreenode, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_header_ex
int mu_header_ex(mu_Context* ctx, const(char)* label, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_in_hover_root
int mu_in_hover_root(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_init
void mu_init(mu_Context* ctx, mu_Style* style)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_keydown
void mu_input_keydown(mu_Context* ctx, int key)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_keyup
void mu_input_keyup(mu_Context* ctx, int key)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_mousedown
void mu_input_mousedown(mu_Context* ctx, int x, int y, int btn)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_mousemove
void mu_input_mousemove(mu_Context* ctx, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_mouseup
void mu_input_mouseup(mu_Context* ctx, int x, int y, int btn)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_scroll
void mu_input_scroll(mu_Context* ctx, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_input_text
void mu_input_text(mu_Context* ctx, const(char)* text)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_intersect_rects
mu_Rect mu_intersect_rects(mu_Rect r1, mu_Rect r2)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_label
void mu_label(mu_Context* ctx, const(char)* text)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_begin_column
void mu_layout_begin_column(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_end_column
void mu_layout_end_column(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_height
void mu_layout_height(mu_Context* ctx, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_next
mu_Rect mu_layout_next(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_row
void mu_layout_row(mu_Context* ctx, int items, const(int)* widths, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_set_next
void mu_layout_set_next(mu_Context* ctx, mu_Rect r, int relative)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_layout_width
void mu_layout_width(mu_Context* ctx, int width)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_max
auto mu_max(A a, B b)

Returns maximum item.

mu_min
auto mu_min(A a, B b)

Returns minimum item.

mu_mouse_over
int mu_mouse_over(mu_Context* ctx, mu_Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_next_command
deprecated int mu_next_command(mu_Context* ctx, mu_Command** cmd)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_number
int mu_number(mu_Context* ctx, mu_Real* value, mu_Real step)

Creates a number box.

mu_number_ex
int mu_number_ex(mu_Context* ctx, mu_Real* value, mu_Real step, const(char)* fmt, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_number_textbox
int mu_number_textbox(mu_Context* ctx, mu_Real* value, mu_Rect r, mu_Id id)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_open_popup
void mu_open_popup(mu_Context* ctx, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pool_get
int mu_pool_get(mu_Context* ctx, mu_PoolItem* items, int len, mu_Id id)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pool_init
int mu_pool_init(mu_Context* ctx, mu_PoolItem* items, int len, mu_Id id)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pool_update
void mu_pool_update(mu_Context* ctx, mu_PoolItem* items, int idx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pop_clip_rect
void mu_pop_clip_rect(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pop_container
void mu_pop_container(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_pop_id
void mu_pop_id(mu_Context* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_clip_rect
void mu_push_clip_rect(mu_Context* ctx, mu_Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_command
mu_Command* mu_push_command(mu_Context* ctx, int type)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_container_body
void mu_push_container_body(mu_Context* ctx, mu_Container* cnt, mu_Rect body_, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_id
void mu_push_id(mu_Context* ctx, void* data, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_jump
int mu_push_jump(mu_Context* ctx, int idx)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_push_layout
void mu_push_layout(mu_Context* ctx, mu_Rect body_, mu_Vec2 scroll)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_scrollbars
void mu_scrollbars(mu_Context* ctx, mu_Container* cnt, mu_Rect* body_)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_set_clip
void mu_set_clip(mu_Context* ctx, mu_Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_set_focus
void mu_set_focus(mu_Context* ctx, mu_Id id)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_slider
int mu_slider(mu_Context* ctx, mu_Real* value, mu_Real low, mu_Real high)

Creates a slider.

mu_slider_ex
int mu_slider_ex(mu_Context* ctx, mu_Real* value, mu_Real low, mu_Real high, mu_Real step, const(char)* fmt, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_text
void mu_text(mu_Context* ctx, const(char)* text)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_textbox
int mu_textbox(mu_Context* ctx, char* buf, int bufsz)

Creates a editable textbox.

mu_textbox_ex
int mu_textbox_ex(mu_Context* ctx, char* buf, int bufsz, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_textbox_raw
int mu_textbox_raw(mu_Context* ctx, char* buf, int bufsz, mu_Id id, mu_Rect r, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
mu_update_control
void mu_update_control(mu_Context* ctx, mu_Id id, mu_Rect rect, int opt)
Undocumented in source. Be warned that the author may not have intended to support it.
rect_overlaps_vec2
int rect_overlaps_vec2(mu_Rect r, mu_Vec2 p)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

MU_CLIPSTACK_SIZE
enum MU_CLIPSTACK_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_COMMANDLIST_SIZE
enum MU_COMMANDLIST_SIZE;

Maximum number of commands that the UI can generate. Demo uses around 497 commands.

MU_CONTAINERPOOL_SIZE
enum MU_CONTAINERPOOL_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_CONTAINERSTACK_SIZE
enum MU_CONTAINERSTACK_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_IDSTACK_SIZE
enum MU_IDSTACK_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_LAYOUTSTACK_SIZE
enum MU_LAYOUTSTACK_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_MAX_FMT
enum MU_MAX_FMT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_MAX_WIDTHS
enum MU_MAX_WIDTHS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_ROOTLIST_SIZE
enum MU_ROOTLIST_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_TEXTSTACK_SIZE
enum MU_TEXTSTACK_SIZE;

Buffer size for text command. This affects all labels and text inputs.

MU_TEXT_LEN
enum MU_TEXT_LEN;

Length of the text input buffer.

MU_TREENODEPOOL_SIZE
enum MU_TREENODEPOOL_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_VERSION
enum MU_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Static variables

default_style
mu_Style default_style;

Default style.

Structs

mu_BaseCommand
struct mu_BaseCommand
mu_ClipCommand
struct mu_ClipCommand
mu_Color
struct mu_Color

RGBA color

mu_Container
struct mu_Container
mu_Context
struct mu_Context

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

mu_IconCommand
struct mu_IconCommand
mu_JumpCommand
struct mu_JumpCommand

These are used to skip command items to the next valid one.

mu_Layout
struct mu_Layout
mu_PoolItem
struct mu_PoolItem
mu_Rect
struct mu_Rect

2D rectangle

mu_RectCommand
struct mu_RectCommand
mu_Stack
struct mu_Stack(T, size_t n)

Defines a stack with a maximum number of items that can be inserted.

mu_Style
struct mu_Style
mu_TextCommand
struct mu_TextCommand
mu_Vec2
struct mu_Vec2

2D vector point

Unions

mu_Command
union mu_Command

Variables

MU_REAL_FMT
enum const(char)* MU_REAL_FMT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MU_SLIDER_FMT
enum const(char)* MU_SLIDER_FMT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
unclipped_rect
mu_Rect unclipped_rect;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta

Authors

dd86k (dd@dax.moe)

License

BSD-3-Clause