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 ).
$ imgui . begin (name: string , flags: int , pos: vec2 , pivot: vec2 , size: vec2 , force_geometry: bool )
Begin an immediate mode UI.
Parameter Type Meaning 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.
$ imgui . begin_child (str_id: string , size: vec2 , border: bool , flags: int )
Begin a child region.
Parameter Type Meaning str_idstringString id for the child region. sizevec2Size borderboolTrue if the region should have a border. flagsintFlags for the sub region
Begin ImGUI group.
$ imgui . begin_tab_bar (text: string , args: list , flags: int ) -> bool
ImGUI tab bar widget.
Parameter Type Meaning 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
$ imgui . begin_tab_item (text: string , args: list , flags: int ) -> bool
ImGUI tab item widget.
Parameter Type Meaning 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
$ imgui . bullet (text: string , args: list )
ImGUI bullet
Parameter Type Meaning textstringThe text to draw with {} characters as placeholder for more values. argslistList of values to place in the message.
$ imgui . button (label: string , size: vec2 ) -> bool
ImGUI button widget.
Parameter Type Meaning labelstringThe label for the button sizevec2Dimensions of the button
Returns bool: Clicked
$ imgui . checkbox (label: string , value: bool ) -> list
ImGUI checkbox widget.
Parameter Type Meaning labelstringThe label for the checkbox valueboolCurrent value of the check box.
Returns list: Clicked, Checked
$ imgui . color4_linear_to_srgb (label: string , value: vec4 ) -> vec4
ImGUI color4 linear RGB to sRGB.
Parameter Type Meaning labelstringLabel text. valuevec4The color to convert.
Returns vec4: Updated value of the color passed in.
$ imgui . color4_srgb_to_linear (label: string , value: vec4 ) -> vec4
ImGUI color4 sRGB to linear RGB.
Parameter Type Meaning labelstringLabel text. valuevec4The color to convert.
Returns vec4: Updated value of the color passed in.
$ imgui . color4_value (label: string , value: vec4 ) -> vec4
ImGUI color4 control.
Parameter Type Meaning labelstringLabel text. valuevec4The color to display.
Returns vec4: Updated value of the color passed in.
$ imgui . color4_value_srgb_to_linear (label: string , value: vec4 ) -> vec4
ImGUI color4 control converted from SRGB to linear.
Parameter Type Meaning labelstringLabel text. valuevec4The color to display.
Returns vec4: Updated value of the color passed in.
$ imgui . columns (count: int , id: string , border: bool )
ImGUI Columns
Parameter Type Meaning countintNumber of columns idstringID for the columns borderboolTrue if a border is desired around the columns
$ imgui . combo (label: string , current_item: int , items: list , max_displayed_item: int ) -> list
ImGUI combo widget.
Parameter Type Meaning 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
ImGUI dummy window
Parameter Type Meaning sizevec2Size of the dummy
End a child region.
End ImGUI group.
End ImGUI tab bar widget.
End ImGUI tab item widget.
$ imgui . float_slider (label: string , value: float , min: float , max: float , format: string ) -> list
ImGUI float control.
Parameter Type Meaning labelstringLabel text. valuefloatThe float value to display. minfloatStep value for control. maxfloatFast step value for control. formatstringFloat printf format text.
Returns list: Changed, Value
$ imgui . float_value (label: string , value: float , step: float , step_fast: float , format: string ) -> float
ImGUI float control.
Parameter Type Meaning 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.
$ imgui . get_column_idx () -> int
ImGUI get column index
Returns int: The index of the column
$ imgui . get_column_width () -> float
ImGUI get column width
Returns float: The width of the column
$ imgui . histogram (label: string , values: list , overlay: string , scale_min: float , scale_max: float , graph_size: vec2 )
ImGUI histogram
Parameter Type Meaning labelstringLabel text. valueslistlist of values to display overlaystringtext overlay for histogram scale_minfloatmin scale scale_maxfloatmax scale graph_sizevec2Dimensions of the histogram
End an immediate mode UI.
$ imgui . indent (indent_width: float )
ImGUI indent
Parameter Type Meaning indent_widthfloatIndent width
$ imgui . int_value (label: string , value: int , step: float , step_fast: float , format: string ) -> int
ImGUI float control.
Parameter Type Meaning 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.
$ imgui . is_item_hovered () -> bool
ImGUI is item hovered?
Returns bool: Hovered
Lock ImGUI.
ImGUI newline
ImGUI next column
Pop ImGUI ID
$ imgui . progress_bar (fraction: float , size: vec2 , overlay: string )
ImGUI progress bar
Parameter Type Meaning fractionfloatamount of progress sizevec2Size of progress bar overlaystringtext overlay for progress bar.
$ imgui . progressbar (progress: float , label: string )
ImGUI progressbar widget.
Parameter Type Meaning progressfloatPosition offset in the X direction labelstringThe label for the button
$ imgui . push_id (int_value: int )
Push ImGUI ID
Parameter Type Meaning int_valueintid to push
$ imgui . sameline (pos_x: float , spacing_w: float )
ImGUI same line spacing
Parameter Type Meaning pos_xfloatPosition offset in the X direction spacing_wfloatSpacing for sameline
ImGUI separator
$ imgui . set_clipboard_text (text: string )
Copy text to system clipboard.
Parameter Type Meaning textstringThe text.
$ imgui . set_column_width (index: int , width: float )
ImGUI set column width
Parameter Type Meaning indexintColumn index widthfloatWidth to set to
$ imgui . set_tooltip (text: string )
ImGUI set tooltip.
Parameter Type Meaning textstringTooltip text
ImGUI spacing
$ imgui . text (text: string , args: list , color: var )
ImGUI text.
Parameter Type Meaning 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).
$ imgui . text_value (label: string , value: string , size_bytes: int ) -> string
ImGUI float control.
Parameter Type Meaning labelstringLabel text. valuestringThe string value to display. size_bytesintMax size of the string.
Returns string: Updated value of the string passed in.
$ imgui . unindent (indent_width: float )
ImGUI unindent
Parameter Type Meaning indent_widthfloatIndent width
Unlock ImGUI.