Skip to content

$imgui

Build quick debug windows with Dear ImGui.

46 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).

begin

read-only
$imgui.begin(name: string, flags: int, pos: vec2, pivot: vec2, size: vec2, force_geometry: bool)

Begin an immediate mode UI.

ParameterTypeMeaning
namestringThe name of the UI.
flagsintIMGUI flags.
posvec2Location of the UI.
pivotvec2Pivot of the UI.
sizevec2Size of the UI.
force_geometryboolForce the provided in position and size. This can be useful for iterating on the size and position in script but will not allow the user to move the window.

begin_child

read-only
$imgui.begin_child(str_id: string, size: vec2, border: bool, flags: int)

Begin a child region.

ParameterTypeMeaning
str_idstringString id for the child region.
sizevec2Size
borderboolTrue if the region should have a border.
flagsintFlags for the sub region

begin_group

read-only
$imgui.begin_group()

Begin ImGUI group.

begin_tab_bar

read-only
$imgui.begin_tab_bar(text: string, args: list, flags: int) -> bool

ImGUI tab bar widget.

ParameterTypeMeaning
textstringThe label for the tab bar with {} characters as placeholder for more values.
argslistList of values to place in the message.
flagsintImGuiTreeNodeFlags

Returns bool: Open

begin_tab_item

read-only
$imgui.begin_tab_item(text: string, args: list, flags: int) -> bool

ImGUI tab item widget.

ParameterTypeMeaning
textstringThe label for the tab item with {} characters as placeholder for more values.
argslistList of values to place in the message.
flagsintImGuiTreeNodeFlags

Returns bool: Open

bullet

read-only
$imgui.bullet(text: string, args: list)

ImGUI bullet

ParameterTypeMeaning
textstringThe text to draw with {} characters as placeholder for more values.
argslistList of values to place in the message.

button

read-only
$imgui.button(label: string, size: vec2) -> bool

ImGUI button widget.

ParameterTypeMeaning
labelstringThe label for the button
sizevec2Dimensions of the button

Returns bool: Clicked

checkbox

read-only
$imgui.checkbox(label: string, value: bool) -> list

ImGUI checkbox widget.

ParameterTypeMeaning
labelstringThe label for the checkbox
valueboolCurrent value of the check box.

Returns list: Clicked, Checked

color4_linear_to_srgb

read-only
$imgui.color4_linear_to_srgb(label: string, value: vec4) -> vec4

ImGUI color4 linear RGB to sRGB.

ParameterTypeMeaning
labelstringLabel text.
valuevec4The color to convert.

Returns vec4: Updated value of the color passed in.

color4_srgb_to_linear

read-only
$imgui.color4_srgb_to_linear(label: string, value: vec4) -> vec4

ImGUI color4 sRGB to linear RGB.

ParameterTypeMeaning
labelstringLabel text.
valuevec4The color to convert.

Returns vec4: Updated value of the color passed in.

color4_value

read-only
$imgui.color4_value(label: string, value: vec4) -> vec4

ImGUI color4 control.

ParameterTypeMeaning
labelstringLabel text.
valuevec4The color to display.

Returns vec4: Updated value of the color passed in.

color4_value_srgb_to_linear

read-only
$imgui.color4_value_srgb_to_linear(label: string, value: vec4) -> vec4

ImGUI color4 control converted from SRGB to linear.

ParameterTypeMeaning
labelstringLabel text.
valuevec4The color to display.

Returns vec4: Updated value of the color passed in.

columns

read-only
$imgui.columns(count: int, id: string, border: bool)

ImGUI Columns

ParameterTypeMeaning
countintNumber of columns
idstringID for the columns
borderboolTrue if a border is desired around the columns

combo

read-only
$imgui.combo(label: string, current_item: int, items: list, max_displayed_item: int) -> list

ImGUI combo widget.

ParameterTypeMeaning
labelstringThe label for the combobox
current_itemintCurrent selected item.
itemslistList of items name in combobox
max_displayed_itemintMax number of items showed in combobox.

Returns list: Selection changed, Current Item

dummy

read-only
$imgui.dummy(size: vec2)

ImGUI dummy window

ParameterTypeMeaning
sizevec2Size of the dummy

end_child

read-only
$imgui.end_child()

End a child region.

end_group

read-only
$imgui.end_group()

End ImGUI group.

end_tab_bar

read-only
$imgui.end_tab_bar()

End ImGUI tab bar widget.

end_tab_item

read-only
$imgui.end_tab_item()

End ImGUI tab item widget.

float_slider

read-only
$imgui.float_slider(label: string, value: float, min: float, max: float, format: string) -> list

ImGUI float control.

ParameterTypeMeaning
labelstringLabel text.
valuefloatThe float value to display.
minfloatStep value for control.
maxfloatFast step value for control.
formatstringFloat printf format text.

Returns list: Changed, Value

float_value

read-only
$imgui.float_value(label: string, value: float, step: float, step_fast: float, format: string) -> float

ImGUI float control.

ParameterTypeMeaning
labelstringLabel text.
valuefloatThe float value to display.
stepfloatStep value for control.
step_fastfloatFast step value for control.
formatstringFloat printf format text.

Returns float: Updated value of the float passed in.

get_column_idx

read-only
$imgui.get_column_idx() -> int

ImGUI get column index

Returns int: The index of the column

get_column_width

read-only
$imgui.get_column_width() -> float

ImGUI get column width

Returns float: The width of the column

histogram

read-only
$imgui.histogram(label: string, values: list, overlay: string, scale_min: float, scale_max: float, graph_size: vec2)

ImGUI histogram

ParameterTypeMeaning
labelstringLabel text.
valueslistlist of values to display
overlaystringtext overlay for histogram
scale_minfloatmin scale
scale_maxfloatmax scale
graph_sizevec2Dimensions of the histogram

imgui_end

read-only
$imgui.imgui_end()

End an immediate mode UI.

indent

read-only
$imgui.indent(indent_width: float)

ImGUI indent

ParameterTypeMeaning
indent_widthfloatIndent width

int_value

read-only
$imgui.int_value(label: string, value: int, step: float, step_fast: float, format: string) -> int

ImGUI float control.

ParameterTypeMeaning
labelstringLabel text.
valueintThe int value to display.
stepfloatStep value for control.
step_fastfloatFast step value for control.
formatstringFloat printf format text.

Returns int: Updated value of the int passed in.

is_item_hovered

read-only
$imgui.is_item_hovered() -> bool

ImGUI is item hovered?

Returns bool: Hovered

lock

read-only
$imgui.lock()

Lock ImGUI.

newline

read-only
$imgui.newline()

ImGUI newline

next_column

read-only
$imgui.next_column()

ImGUI next column

pop_id

read-only
$imgui.pop_id()

Pop ImGUI ID

progress_bar

read-only
$imgui.progress_bar(fraction: float, size: vec2, overlay: string)

ImGUI progress bar

ParameterTypeMeaning
fractionfloatamount of progress
sizevec2Size of progress bar
overlaystringtext overlay for progress bar.

progressbar

read-only
$imgui.progressbar(progress: float, label: string)

ImGUI progressbar widget.

ParameterTypeMeaning
progressfloatPosition offset in the X direction
labelstringThe label for the button

push_id

read-only
$imgui.push_id(int_value: int)

Push ImGUI ID

ParameterTypeMeaning
int_valueintid to push

sameline

read-only
$imgui.sameline(pos_x: float, spacing_w: float)

ImGUI same line spacing

ParameterTypeMeaning
pos_xfloatPosition offset in the X direction
spacing_wfloatSpacing for sameline

separator

read-only
$imgui.separator()

ImGUI separator

set_clipboard_text

read-only
$imgui.set_clipboard_text(text: string)

Copy text to system clipboard.

ParameterTypeMeaning
textstringThe text.

set_column_width

read-only
$imgui.set_column_width(index: int, width: float)

ImGUI set column width

ParameterTypeMeaning
indexintColumn index
widthfloatWidth to set to

set_tooltip

read-only
$imgui.set_tooltip(text: string)

ImGUI set tooltip.

ParameterTypeMeaning
textstringTooltip text

spacing

read-only
$imgui.spacing()

ImGUI spacing

text

read-only
$imgui.text(text: string, args: list, color: var)

ImGUI text.

ParameterTypeMeaning
textstringThe text to draw with {} characters as placeholder for more values.
argslistList of values to place in the message.
colorvarThe text color (vec3 or vec4).

text_value

read-only
$imgui.text_value(label: string, value: string, size_bytes: int) -> string

ImGUI float control.

ParameterTypeMeaning
labelstringLabel text.
valuestringThe string value to display.
size_bytesintMax size of the string.

Returns string: Updated value of the string passed in.

unindent

read-only
$imgui.unindent(indent_width: float)

ImGUI unindent

ParameterTypeMeaning
indent_widthfloatIndent width

unlock

read-only
$imgui.unlock()

Unlock ImGUI.