Difference between revisions of "Dear ImGui"

From GiderosMobile
(DONE)
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
Dear ImGui is licensed under the '''MIT License''', see '''https://github.com/ocornut/imgui/blob/master/LICENSE.txt''' for more information.
 
Dear ImGui is licensed under the '''MIT License''', see '''https://github.com/ocornut/imgui/blob/master/LICENSE.txt''' for more information.
  
To use Dear ImGui in your project you need to add the ImGui plugin and call require like so:
+
To use Dear ImGui in your project you need to add the ImGui plugin and call ''require'' like so:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
require "ImGui"
 
require "ImGui"
Line 37: Line 37:
  
 
==== Widgets ====
 
==== Widgets ====
'''Widgets: Color Editor/Picker'''
+
'''Widgets: Color Editor/Picker'''
 
  * tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu
 
  * tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu
  
'''Widgets: Input with Keyboard'''
+
'''Widgets: Input with Keyboard'''
 
  * If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp.
 
  * If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp.
 
  * Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc.
 
  * Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc.
  
'''Widgets: Regular Sliders'''
+
'''Widgets: Regular Sliders'''
 
  * CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
 
  * CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
 
  * Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc.
 
  * Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc.
Line 51: Line 51:
 
  If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361
 
  If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361
  
'''Widgets: Drag Sliders'''
+
'''Widgets: Drag Sliders'''
 
  * CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
 
  * CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
 
  * For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x
 
  * For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x
Line 71: Line 71:
 
</div>
 
</div>
  
===== '''OLD DOC TO BE MERGED SOMEHOW''' =====
 
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
 
'''[[ImGui|ImGui.Core (ImGui)]]'''<br/><!--GIDEROSOBJ:ImGui-->
 
'''[[ImGui.DrawList]]'''<br/><!--GIDEROSOBJ:ImGui.DrawList-->
 
'''[[ImGui.Style]]'''<br/><!--GIDEROSOBJ:ImGui.Style-->
 
</div>
 
 
<!--introduction documentation (c++): https://pixtur.github.io/mkdocs-for-imgui/site/-->
 
<!--introduction documentation (c++): https://pixtur.github.io/mkdocs-for-imgui/site/-->
 
<!--Dear ImGui demo (c++): https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html-->
 
<!--Dear ImGui demo (c++): https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html-->
Line 434: Line 428:
 
<!--GIDEROSMTD:ImGui:progressBar(fraction [, anchor_x = -1, anchor_y = 0, overlay_string = nil])-->
 
<!--GIDEROSMTD:ImGui:progressBar(fraction [, anchor_x = -1, anchor_y = 0, overlay_string = nil])-->
 
<!--GIDEROSMTD:ImGui:bullet()-->
 
<!--GIDEROSMTD:ImGui:bullet()-->
 
+
<!--GIDEROSMTD:ImGui:image(texture, w, h [, tint_color = 0xffffff, tint_alpha = 1, border_color = 0xffffff, border_alpha = 0]) images are streched (ImGui default functions)-->
 
+
<!--GIDEROSMTD:ImGui:imageUV(texture, w, h, uv0x, uv0y, uv1x, uv1y [, tint_color = 0xffffff, tint_alpha = 1, border_color = 0xffffff, border_alpha = 0]) images are streched (ImGui default functions)-->
 
+
<!--GIDEROSMTD:ImGui:imageButton(str_id, texture, w, h [, tint_color = 0xffffff, tint_alpha = 1, border_color = 0xffffff, border_alpha = 0]) pressFlag = ImGui:imageButton(...) images are streched (ImGui default functions)-->
 
+
<!--GIDEROSMTD:ImGui:imageButtonUV(str_id, texture, w, h, uv0x, uv0y, uv1x, uv1y [, tint_color = 0xffffff, tint_alpha = 1, border_color = 0xffffff, border_alpha = 0]) pressFlag = ImGui:imageButtonUV(...) images are streched (ImGui default functions)-->
 
+
<!--GIDEROSMTD:ImGui:scaledImage(str_id, texture, w, h [, fit_mode = ImGui.ImageScaleMode_LetterBox, keep_size = false, anchor_x = 0.5, anchor_y = 0.5, tint_col = 0xffffff, tint_alpha = 1, border_col = 0, border_alpha = 0, bg_col = 0, bg_alpha = 0]) images are scaled-->
 
+
<!--GIDEROSMTD:ImGui:scaledImageButton(str_id, texture, w, h [, fit_mode = ImGui.ImageScaleMode_LetterBox, keep_size = false, ImGui.ButtonFlags = 0, anchor_x = 0.5, anchor_y = 0.5, clip_offset_x = 0, clip_offset_y = 0, tint_col = 0xffffff, tint_alpha = 1, border_col = 0, border_alpha = 0, bg_col = 0, bg_alpha = 0]) pressFlag = ImGui:scaledImageButton(...) images are scaled-->
 
+
<!--GIDEROSMTD:ImGui:scaledImageButtonWithText(texture, label, image_w, image_h [, button_w = 0, button_h = 0,  ImGui.ButtonFlags = 0, fit_mode = ImGui.ImageScaleMode_LetterBox, keep_size = false, anchor_x = 0.5, anchor_y = 0.5, image_side = ImGui.Dir_Left, clip_offset_x = 0, clip_offset_y = 0, tint_col = 0xffffff, tint_alpha = 1, border_col = 0, border_alpha = 0, bg_col = 0, bg_alpha = 0] pressFlag = ImGui:scaledImageButtonWithText(...) images are scaled-->
 
+
<!--GIDEROSMTD:ImGui:beginCombo(text, preview_text [, ImGui.ComboFlags = 0]) openFlag = ImGui:beginCombo(...)-->
 +
<!--GIDEROSMTD:ImGui:endCombo()-->
 +
<!--GIDEROSMTD:ImGui:combo(label, current_item, items) current_item, is_open = ImGui:combo(label, current_item, items), items (table): {"item1", "item2", ...}-->
 +
<!--GIDEROSMTD:ImGui:dragFloat(label, value [, inc_step = 1, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value, is_changed = ImGui:dragFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:dragFloat2(label, value1, value2 [, inc_step = 1, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:dragFloat2(...)-->
 +
<!--GIDEROSMTD:ImGui:dragFloat3(label, value1, value2, value3 [, inc_step = 1, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:dragFloat3(...)-->
 +
<!--GIDEROSMTD:value1, ImGui:dragFloat4(label, value1, value2, value3, value4 [, inc_step = 1, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value2, value3, value4, is_changed = ImGui:dragFloat4(...)-->
 +
<!--GIDEROSMTD:ImGui:dragFloatRange2(label, value_min, value_max [, inc_step = 1, min = 0, max = 0, format_min_string = "%.3f", ImGui.SliderFlags = 0]) value_min, value_max, is_changed = ImGui:dragFloatRange2(...)-->
 +
<!--GIDEROSMTD:ImGui:dragFloatT(label, table [, inc_step = 1, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) is_changed = ImGui:dragFloatT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:dragInt(label, value [, inc_step = 1, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value, is_changed = ImGui:dragInt(...)-->
 +
<!--GIDEROSMTD:ImGui:dragInt2(label, value1, value2 [, inc_step = 1, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:dragInt2(...)-->
 +
<!--GIDEROSMTD:ImGui:dragInt3(label, value1, value2, value3 [, inc_step = 1, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:dragInt3(...)-->
 +
<!--GIDEROSMTD:ImGui:dragInt4(label, value1, value2, value3, value4 [, inc_step = 1, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, value4, is_changed = ImGui:dragInt4(...)-->
 +
<!--GIDEROSMTD:ImGui:dragIntRange2(label, v_current_min, v_current_max [, v_speed = 1, v_min = 0, v_max = 0, format = "%d", format_max = nil, ImGui.SliderFlags = 0]) v_current_min, v_current_max, flag = ImGui:dragIntRange2(...)-->
 +
<!--GIDEROSMTD:ImGui:dragIntT(label, table [, inc_step = 1, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) is_changed = ImGui:dragIntT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:sliderFloat(label, value [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value, is_changed = ImGui:sliderFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderFloat2(label, value1, value2 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:sliderFloat2(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderFloat3(label, value1, value2, value3 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:sliderFloat3(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderFloat4(label, value1, value2, value3, value4 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, value3, value4, is_changed = ImGui:sliderFloat4(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderAngle(label, value_in_rad [, min_degrees = -360, max_degrees = 360, format_string = "%.0f deg", ImGui.SliderFlags = 0]) value_in_rad, is_changed = ImGui:sliderAngle(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderFloatT(label, table [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) is_changed = ImGui:sliderFloatT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:sliderInt(label, value [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value, is_changed = ImGui:sliderInt(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderInt2(label, value1, value2 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:sliderInt2(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderInt3(label, value1, value2, value3 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:sliderInt3(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderInt4(label, value1, value2, value3, value4 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, value4, is_changed = ImGui:sliderInt4(...)-->
 +
<!--GIDEROSMTD:ImGui:sliderIntT(label, table [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) is_changed = ImGui:sliderIntT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:vSliderFloat(label, w, h, value, min, max [, format_string = "%.3f", ImGui.SliderFlags = 0]) value, is_changed = ImGui:vSliderFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:vSliderInt(label, w, h, value, min, max [, format_string = "%d", ImGui.SliderFlags = 0]) value, is_changed = ImGui:vSliderInt(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderFloat(label, mirror_flag, value [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value, is_changed = ImGui:filledSliderFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderFloat2(label, mirror_flag, value1, value2 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:filledSliderFloat2(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderFloat3(label, mirror_flag, value1, value2, value3 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:filledSliderFloat3(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderFloat4(label, mirror_flag, value1, value2, value3, value4 [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) value1, value2, value3, value4, is_changed = ImGui:filledSliderFloat4(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderFloatT(label, mirror_flag, table [, min = 0, max = 0, format_string = "%.3f", ImGui.SliderFlags = 0]) is_changed = ImGui:filledSliderFloatT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:filledSliderAngle(label, mirror_flag, value_in_rad [, min_degrees = -360, max_degrees = 360, format_string = "%.0f deg", ImGui.SliderFlags = 0]) value_in_rad, is_changed = ImGui:filledSliderAngle(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderInt(label, mirror_flag, value [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value, is_changed = ImGui:filledSliderInt(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderInt2(label, mirror_flag, value1, value2 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, is_changed = ImGui:filledSliderInt2(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderInt3(label, mirror_flag, value1, value2, value3 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, is_changed = ImGui:filledSliderInt3(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderInt4(label, mirror_flag, value1, value2, value3, value4 [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) value1, value2, value3, value4, is_changed = ImGui:filledSliderInt4(...)-->
 +
<!--GIDEROSMTD:ImGui:filledSliderIntT(label, mirror_flag, table [, min = 0, max = 0, format_string = "%d", ImGui.SliderFlags = 0]) is_changed = ImGui:filledSliderIntT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:vFilledSliderFloat(label, mirror_flag, w, h, value, min, max [, format_string = "%.3f", ImGui.SliderFlags = 0]) value, is_changed = ImGui:vFilledSliderFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:vFilledSliderInt(label, mirror_flag, w, h, value, min, max [, format_string = "%d", ImGui.SliderFlags = 0]) value, is_changed = ImGui:vFilledSliderInt(...)-->
 +
<!--GIDEROSMTD:ImGui:inputText(label, text, buffer_size [, ImGui.InputTextFlags = 0]) text, flag = ImGui:inputText(...)-->
 +
<!--GIDEROSMTD:ImGui:inputTextMultiline(label, text, buffer_size [, w = 0, h = 0, ImGui.InputTextFlags = 0]) text, flag = ImGui:inputTextMultiline(...)-->
 +
<!--GIDEROSMTD:ImGui:inputTextWithHint(label, text, hint, buffer_size [, ImGui.InputTextFlags = 0]) text, flag = ImGui:inputTextWithHint(...)-->
 +
<!--GIDEROSMTD:ImGui:inputFloat(label, value [, step = 0, step_fast = 0, format = "%.3f", ImGui.InputTextFlags = 0]) value,  flag = ImGui:inputFloat(...)-->
 +
<!--GIDEROSMTD:ImGui:inputFloat3(label, value1, value2, value3 [, format = "%.3f", ImGui.InputTextFlags = 0]) value1, value2, value3, flag = ImGui:inputFloat3(...)-->
 +
<!--GIDEROSMTD:ImGui:inputFloat4(label, value1, value2, value3, value4 [, format = "%.3f", ImGui.InputTextFlags = 0]) value1, value2, value3, value4, flag = ImGui:inputFloat4(...)-->
 +
<!--GIDEROSMTD:ImGui:inputFloatT(label, table [, format = "%.3f", ImGui.InputTextFlags = 0]) flag = ImGui:inputFloatT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:inputInt(label, value [, step = 0, step_fast = 0, ImGui.InputTextFlags = 0]) value, flag = ImGui:inputInt(...)-->
 +
<!--GIDEROSMTD:ImGui:inputInt2(label, value1, value2 [, ImGui.InputTextFlags = 0]) value1, value2, flag = ImGui:inputInt2(...)-->
 +
<!--GIDEROSMTD:ImGui:inputInt3(label, value1, value2, value3 [, ImGui.InputTextFlags = 0]) value1, value2, value3, flag = ImGui:inputInt3(...)-->
 +
<!--GIDEROSMTD:ImGui:inputInt4(label, value1, value2, value3, value4 [, ImGui.InputTextFlags = 0]) value1, value2, value3, value4, flag = ImGui:inputInt4(...)-->
 +
<!--GIDEROSMTD:ImGui:inputIntT(label, table [, format = "%d", ImGui.InputTextFlags = 0]) flag = ImGui:inputIntT(...), table must be an array of any size > 0-->
 +
<!--GIDEROSMTD:ImGui:inputDouble(label, value [, step = 0, step_fast = 0, format = "%.6f", ImGui.InputTextFlags = 0]) value, flag = ImGui:inputDouble(...)-->
 +
<!--GIDEROSMTD:ImGui:inputText(label, text, buffer_size [, ImGui.InputTextFlags = 0, callback_function, user_data])-->
 +
<!--GIDEROSMTD:ImGui:inputTextMultiline(label, text, buffer_size [, ImGui.InputTextFlags = 0, callback_function, user_data])-->
 +
<!--GIDEROSMTD:ImGui:inputTextWithHint(label, text, hint, buffer_size [, ImGui.InputTextFlags = 0, callback_function, user_data])-->
 +
<!--GIDEROSMTD:callback_data:getEventFlag() ImGuiInputTextFlags = callback_data:getEventFlag()-->
 +
<!--GIDEROSMTD:callback_data:getFlags() ImGuiInputTextFlags = callback_data:getFlags()-->
 +
<!--GIDEROSMTD:callback_data:getEventChar() number = callback_data:getEventChar()-->
 +
<!--GIDEROSMTD:callback_data:setEventChar(number)-->
 +
<!--GIDEROSMTD:callback_data:getEventKey() keyCode = callback_data:getEventKey()-->
 +
<!--GIDEROSMTD:callback_data:getBuf() string = callback_data:getBuf()-->
 +
<!--GIDEROSMTD:callback_data:setBuf(string)-->
 +
<!--GIDEROSMTD:callback_data:getBufTextLen() number = callback_data:getBufTextLen()-->
 +
<!--GIDEROSMTD:callback_data:setBufTextLen(number)-->
 +
<!--GIDEROSMTD:callback_data:getBufSize() number = callback_data:getBufSize()-->
 +
<!--GIDEROSMTD:callback_data:setBufDirty(bool)-->
 +
<!--GIDEROSMTD:callback_data:isBufDirty() bool = callback_data:isBufDirty()-->
 +
<!--GIDEROSMTD:callback_data:setCursorPos(number)-->
 +
<!--GIDEROSMTD:callback_data:getCursorPos() number = callback_data:getCursorPos()-->
 +
<!--GIDEROSMTD:callback_data:setSelectionStart(s_start)-->
 +
<!--GIDEROSMTD:callback_data:getSelectionStart() number = callback_data:getSelectionStart()-->
 +
<!--GIDEROSMTD:callback_data:setSelectionEnd(s_end)-->
 +
<!--GIDEROSMTD:callback_data:getSelectionEnd() s_end = callback_data:getSelectionEnd()-->
 +
<!--GIDEROSMTD:callback_data:setSelection(s_start, s_end)-->
 +
<!--GIDEROSMTD:callback_data:getSelection() s_start, s_end = callback_data:getSelection()-->
 +
<!--GIDEROSMTD:callback_data:selectAll()-->
 +
<!--GIDEROSMTD:callback_data:clearSelection()-->
 +
<!--GIDEROSMTD:callback_data:hasSelection() bool = callback_data:hasSelection()-->
 +
<!--GIDEROSMTD:callback_data:deleteChars(position, bytesCount)-->
 +
<!--GIDEROSMTD:callback_data:insertChars(position, text)-->
 +
<!--GIDEROSMTD:ImGui:colorEdit3(label, color [, ImGui.ColorEditFlags = 0]) hexColor, is_touching = ImGui:colorEdit3(...) alpha ignored, no need to pass it!-->
 +
<!--GIDEROSMTD:ImGui:colorEdit4(label, color [, alpha = 1, ImGui.ColorEditFlags = 0]) hexColor, alpha, is_touching = ImGui:colorEdit4(...)-->
 +
<!--GIDEROSMTD:ImGui:colorPicker3(label, color [, ImGui.ColorEditFlags = 0]) hexColor, is_touching = ImGui:colorPicker3(...)-->
 +
<!--GIDEROSMTD:ImGui:colorPicker4(label, color [, alpha = 1, original_color = 0xffffff, original_alpha = 1, ImGui.ColorEditFlags = 0]) hexColor, alpha, originalColor, originalAlpha, is_touching = ImGui:colorPicker4(...)-->
 +
<!--GIDEROSMTD:ImGui:colorButton(string_ID, color [, alpha = 1, ImGui.ColorEditFlags = 0, w = 0, h = 0]) isHoveringFlag = ImGui:colorButton(...)-->
 +
<!--GIDEROSMTD:ImGui:setColorEditOptions(ImGui.ColorEditFlags)-->
 +
<!--GIDEROSMTD:ImGui:treeNode(label [, format_string]) is_openFlag = ImGui:treeNode(...)-->
 +
<!--GIDEROSMTD:ImGui:treeNodeEx(label, ImGui.TreeNodeFlags [, format_string])-->
 +
<!--GIDEROSMTD:ImGui:treePush(str_id)-->
 +
<!--GIDEROSMTD:ImGui:treePop()-->
 +
<!--GIDEROSMTD:ImGui:getTreeNodeToLabelSpacing() number = ImGui:getTreeNodeToLabelSpacing()-->
 +
<!--GIDEROSMTD:ImGui:collapsingHeader(label, p_open [, ImGui.TreeNodeFlags = 0]) is_openFlag, p_open = ImGui:collapsingHeader(...)-->
 +
<!--GIDEROSMTD:ImGui:collapsingHeader(label [, ImGui.TreeNodeFlags = 0]) is_openFlag = ImGui:collapsingHeader(...)-->
 +
<!--GIDEROSMTD:ImGui:setNextItemOpen(is_open, ImGui.Cond)-->
 +
<!--GIDEROSMTD:ImGui:selectable(label, selected [, ImGui.SelectableFlags = 0, w = 0, h = 0]) result?, selected = ImGui:selectable(...)-->
 +
<!--GIDEROSMTD:ImGui:listBox(label, current_item, item_table [, max_visible_items = -1]) current_item, is_openFlag = ImGui:listBox(...), item_table: {"Item0", "Item1", ...}-->
 +
<!--GIDEROSMTD:ImGui:listBoxHeader(label [, w = 0, h = 0]) result? = ImGui:listBoxHeader(...)-->
 +
<!--GIDEROSMTD:ImGui:listBoxHeader2(label, items_count) result? = ImGui:listBoxHeader2(...)-->
 +
<!--GIDEROSMTD:ImGui:listBoxFooter()-->
 +
<!--GIDEROSMTD:ImGui.cachePoints(points_table) ptr = ImGui.cachePoints(...), store points in memory, points_table: {0.01, 0.5, 10, -50, …}-->
 +
<!--GIDEROSMTD:ImGui.freePoints(ptr) delete points from memory-->
 +
<!--GIDEROSMTD:ImGui:plotCachedLines(label, ptr, len [, values_offset = 0, overlay_text = nil, scale_min = math.huge, scale_max = math.huge, w = 0, h = 0]), len (number): points array lenght-->
 +
<!--GIDEROSMTD:ImGui:plotCachedHistogram(label, ptr, len [, values_offset = 0, overlay_text = nil, scale_min = math.huge, scale_max = math.huge, w = 0, h = 0]), len (number): points array lenght-->
 +
<!--GIDEROSMTD:ImGui:plotLines(label, points_table [, values_offset = 0, overlay_text = nil, scale_min = math.huge, scale_max = math.huge, w = 0, h = 0])-->
 +
<!--GIDEROSMTD:ImGui:plotHistogram(label, points_table [, values_offset = 0, overlay_text = nil, scale_min = math.huge, scale_max = math.huge, w = 0, h = 0])-->
 +
<!--GIDEROSMTD:ImGui:value(prefix, bool)-->
 +
<!--GIDEROSMTD:ImGui:value(prefix, number)-->
 +
<!--GIDEROSMTD:ImGui:value(prefix, float, format_string)-->
 +
<!--GIDEROSMTD:ImGui:beginMenuBar() result? = ImGui:beginMenuBar()-->
 +
<!--GIDEROSMTD:ImGui:endMenuBar()-->
 +
<!--GIDEROSMTD:ImGui:beginMainMenuBar() result? = ImGui:beginMainMenuBar()-->
 +
<!--GIDEROSMTD:ImGui:endMainMenuBar()-->
 +
<!--GIDEROSMTD:ImGui:beginMenu(label [, enabled = true]) result = ImGui:beginMenu(...)-->
 +
<!--GIDEROSMTD:ImGui:beginMenuEx(label, [icon = "", enabled = true]) result = ImGui:beginMenuEx(...)-->
 +
<!--GIDEROSMTD:ImGui:endMenu()-->
 +
<!--GIDEROSMTD:ImGui:menuItem(label [, shortcut = "", selected = false, enabled = true]) result = ImGui:menuItem(...)-->
 +
<!--GIDEROSMTD:ImGui:menuItemEx(label, [icon = "", shortcut = "", selected = false, enabled = true]) result = ImGui:menuItemEx(...)-->
 +
<!--GIDEROSMTD:ImGui:beginTooltip()-->
 +
<!--GIDEROSMTD:ImGui:endTooltip()-->
 +
<!--GIDEROSMTD:ImGui:setTooltip(text)-->
 +
<!--GIDEROSMTD:ImGui:beginPopup(str_id [, ImGui.WindowFlags = 0]) result? = ImGui:beginPopup(...)-->
 +
<!--GIDEROSMTD:ImGui:beginPopupModal(str_id, p_open [, ImGui.WindowFlags = 0]) p_open, result? = ImGui:beginPopupModal(...)-->
 +
<!--GIDEROSMTD:ImGui:endPopup()-->
 +
<!--GIDEROSMTD:ImGui:openPopup(str_id [, ImGui.PopupFlags = 0])-->
 +
<!--GIDEROSMTD:ImGui:openPopupOnItemClick(str_id [, ImGui.PopupFlags = 0])-->
 +
<!--GIDEROSMTD:ImGui:closeCurrentPopup()-->
 +
<!--GIDEROSMTD:ImGui:beginPopupContextItem(str_id [, ImGui.PopupFlags = 0]) result? = ImGui:beginPopupContextItem(...)-->
 +
<!--GIDEROSMTD:ImGui:beginPopupContextWindow(str_id [, ImGui.PopupFlags = 0]) result? = ImGui:beginPopupContextWindow(...)-->
 +
<!--GIDEROSMTD:ImGui:beginPopupContextVoid(str_id [, ImGui.PopupFlags = 0]) result? = ImGui:beginPopupContextVoid(...)-->
 +
<!--GIDEROSMTD:ImGui:isPopupOpen(str_id [, ImGui.PopupFlags = 0]) result? = ImGui:isPopupOpen(...)-->
 +
<!--GIDEROSMTD:ImGui:beginTable(str_id, column [, ImGui.TableFlags = 0, outer_w = 0, outer_h = 0, inner_width = 0]) flag = ImGui:beginTable(...)-->
 +
<!--GIDEROSMTD:ImGui:endTable()-->
 +
<!--GIDEROSMTD:ImGui:tableNextRow([ImGui.TableRowFlags = 0, min_row_height = 0])-->
 +
<!--GIDEROSMTD:ImGui:tableNextColumn() flag = ImGui:tableNextColumn()-->
 +
<!--GIDEROSMTD:ImGui:tableSetColumnIndex(column_n) flag = ImGui:tableSetColumnIndex(...)-->
 +
<!--GIDEROSMTD:ImGui:tableSetupColumn(label [, ImGui.TableColumnFlags = 0, init_width_or_weight = 0, user_id = 0])-->
 +
<!--GIDEROSMTD:ImGui:tableSetupScrollFreeze(cols, rows)-->
 +
<!--GIDEROSMTD:ImGui:tableHeadersRow()-->
 +
<!--GIDEROSMTD:ImGui:tableGetSortSpecs() TableSortSpecs = ImGui:tableGetSortSpecs(), see below-->
 +
<!--GIDEROSMTD:ImGui:tableGetColumnCount() number = ImGui:tableGetColumnCount()-->
 +
<!--GIDEROSMTD:ImGui:tableGetColumnIndex() number = ImGui:tableGetColumnIndex()-->
 +
<!--GIDEROSMTD:ImGui:tableGetRowIndex() number = ImGui:tableGetRowIndex()-->
 +
<!--GIDEROSMTD:ImGui:tableGetColumnName([column_n = -1]) string = ImGui:tableGetColumnName(...)-->
 +
<!--GIDEROSMTD:ImGui:tableGetColumnFlags([column_n = -1]) ImGuiTableColumnFlags = ImGui:tableGetColumnFlags(...)-->
 +
<!--GIDEROSMTD:ImGui:tableSetBgColor(ImGui.TableBgTarget, color [, alpha = 1, column_n = -1])-->
 +
<!--GIDEROSMTD:TableSortSpecs:getSpecsCount() number = TableSortSpecs:getSpecsCount(), TableSortSpecs = ImGui:tableGetSortSpecs()-->
 +
<!--GIDEROSMTD:TableSortSpecs:isSpecsDirty() flag = TableSortSpecs:isSpecsDirty(), TableSortSpecs = ImGui:tableGetSortSpecs()-->
 +
<!--GIDEROSMTD:TableSortSpecs:setSpecsDirty(flag) -- TableSortSpecs = ImGui:tableGetSortSpecs()-->
 +
<!--GIDEROSMTD:TableSortSpecs:getColumnSortSpecs() table = TableSortSpecs:getColumnSortSpecs(), TableSortSpecs = ImGui:tableGetSortSpecs(), see below-->
 +
<!--GIDEROSMTD:ImGui:columns([count = 1, id = nil, border = true])-->
 +
<!--GIDEROSMTD:ImGui:nextColumn()-->
 +
<!--GIDEROSMTD:ImGui:getColumnIndex() index = ImGui:getColumnIndex()-->
 +
<!--GIDEROSMTD:ImGui:getColumnWidth([column_index = -1]) width = ImGui:getColumnWidth(...)-->
 +
<!--GIDEROSMTD:ImGui:setColumnWidth(column_index, width)-->
 +
<!--GIDEROSMTD:ImGui:getColumnOffset([column_index = -1]) offset = ImGui:getColumnOffset(...)-->
 +
<!--GIDEROSMTD:ImGui:setColumnOffset(column_index, offset)-->
 +
<!--GIDEROSMTD:ImGui:getColumnsCount() number = ImGui:getColumnsCount()-->
 +
<!--GIDEROSMTD:ImGui:beginTabBar(str_id [, ImGui.TabBarFlags = 0]) bool = ImGui:beginTabBar(...)-->
 +
<!--GIDEROSMTD:ImGui:endTabBar()-->
 +
<!--GIDEROSMTD:ImGui:beginTabItem(label, p_open [, ImGui.TabItemFlags = 0]) p_open, bool = ImGui:beginTabItem(...)-->
 +
<!--GIDEROSMTD:ImGui:endTabItem()-->
 +
<!--GIDEROSMTD:ImGui:setTabItemClosed(tab_or_docked_window_label)-->
 +
<!--GIDEROSMTD:ImGui:tabItemButton(label [, ImGui.TabItemFlags = 0])-->
 +
<!--GIDEROSMTD:ImGui:logToTTY(auto_open_depth = -1) -->
 +
<!--GIDEROSMTD:ImGui:logToFile(auto_open_depth = -1, filename = nil) -->
 +
<!--GIDEROSMTD:ImGui:logToClipboard(auto_open_depth = -1) -->
 +
<!--GIDEROSMTD:ImGui:logFinish() -->
 +
<!--GIDEROSMTD:ImGui:logButtons() -->
 +
<!--GIDEROSMTD:ImGui:logText(text) -->
 +
<!--GIDEROSMTD:ImGui:beginDragDropSource([ImGui.DragDropFlags flags = 0]) flag = ImGui:beginDragDropSource(...)-->
 +
<!--GIDEROSMTD:ImGui:setNumDragDropPayload(str_type, number [, ImGui.Cond cond = 0]) flag = ImGui:setNumDragDropPayload(...)-->
 +
<!--GIDEROSMTD:ImGui:setStrDragDropPayload(str_type, string [, ImGui.Cond cond = 0]) flag = ImGui:setStrDragDropPayload(...)-->
 +
<!--GIDEROSMTD:ImGui:endDragDropSource()-->
 +
<!--GIDEROSMTD:ImGui:beginDragDropTarget() flag = ImGui:beginDragDropTarget()-->
 +
<!--GIDEROSMTD:ImGui:acceptDragDropPayload(type [, ImGui.DragDropFlags flags = 0]) ImGuiPayload = ImGui:acceptDragDropPayload(...)-->
 +
<!--GIDEROSMTD:ImGui:endDragDropTarget()-->
 +
<!--GIDEROSMTD:ImGui:getDragDropPayload() ImGuiPayload = ImGui:getDragDropPayload()-->
 +
<!--GIDEROSMTD:ImGuiPayload:getNumData() number = ImGuiPayload:getNumData()-->
 +
<!--GIDEROSMTD:ImGuiPayload:getStrData() string = ImGuiPayload:getStrData()-->
 +
<!--GIDEROSMTD:ImGuiPayload:clear()-->
 +
<!--GIDEROSMTD:ImGuiPayload:getDataSize() number = ImGuiPayload:getDataSize()-->
 +
<!--GIDEROSMTD:ImGuiPayload:isDataType(type) flag = ImGuiPayload:isDataType(...), type must be the same as in "ImGui:acceptDragDropPayload(type)"-->
 +
<!--GIDEROSMTD:ImGuiPayload:isPreview() flag = ImGuiPayload:isPreview()-->
 +
<!--GIDEROSMTD:ImGuiPayload:isDelivery() flag = ImGuiPayload:isDelivery()-->
 +
<!--GIDEROSMTD:ImGui:pushClipRect(min_x, min_y, max_x, max_y, intersect_with_current_clip_rect)-->
 +
<!--GIDEROSMTD:ImGui:popClipRect()-->
 +
<!--GIDEROSMTD:ImGuiListClipper.new() instance = ImGuiListClipper.new()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:beginClip(number_of_items [, item_height = -1]) if item_height <= 0 then it is calculated automatically-->
 +
<!--GIDEROSMTD:ImGuiListClipper:endClip()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:step() bool = ImGuiListClipper:step()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:getDisplayStart() number = ImGuiListClipper:getDisplayStart()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:getDisplayEnd() number = ImGuiListClipper:getDisplayEnd()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:getStartPosY() number = ImGuiListClipper:getStartPosY()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:getItemsCount() number = ImGuiListClipper:getItemsCount()-->
 +
<!--GIDEROSMTD:ImGuiListClipper:forceDisplayRangeByIndices(number_min, number_max)-->
 +
<!--GIDEROSMTD:ImGuiTextFilter.new() filter = ImGuiTextFilter.new()-->
 +
<!--GIDEROSMTD:filter:draw(label [, width = 0]) isValueChanged = filter:draw(...), draws the input field-->
 +
<!--GIDEROSMTD:filter:drawWithHint(label, hint [, width = 0]) isValueChanged = filter:drawWithHint(...), draws the input field (using ImGui:inutTextWithHint())-->
 +
<!--GIDEROSMTD:filter:setBuffer(text) set filter text-->
 +
<!--GIDEROSMTD:filter:build() update filter internals-->
 +
<!--GIDEROSMTD:filter:passFilter(text) bool = filter:passFilter(...), returns true if filter input matches with "text"-->
 +
<!--GIDEROSMTD:ImGui:setItemDefaultFocus()-->
 +
<!--GIDEROSMTD:ImGui:setKeyboardFocusHere([offset = 0])-->
 +
<!--GIDEROSMTD:ImGui:isItemHovered([ImGui.HoveredFlags = 0]) flag = ImGui:isItemHovered(...)-->
 +
<!--GIDEROSMTD:ImGui:isItemActive() flag = ImGui:isItemActive()-->
 +
<!--GIDEROSMTD:ImGui:isItemFocused() flag = ImGui:isItemFocused()-->
 +
<!--GIDEROSMTD:ImGui:isItemClicked(mouse_button) flag = ImGui:isItemClicked(...)-->
 +
<!--GIDEROSMTD:ImGui:isItemVisible() flag = ImGui:isItemVisible()-->
 +
<!--GIDEROSMTD:ImGui:isItemEdited() flag = ImGui:isItemEdited()-->
 +
<!--GIDEROSMTD:ImGui:isItemActivated() flag = ImGui:isItemActivated()-->
 +
<!--GIDEROSMTD:ImGui:isItemDeactivated() flag = ImGui:isItemDeactivated()-->
 +
<!--GIDEROSMTD:ImGui:isItemDeactivatedAfterEdit() flag = ImGui:isItemDeactivatedAfterEdit()-->
 +
<!--GIDEROSMTD:ImGui:isItemToggledOpen() flag = ImGui:isItemToggledOpen()-->
 +
<!--GIDEROSMTD:ImGui:isAnyItemHovered() flag = ImGui:isAnyItemHovered()-->
 +
<!--GIDEROSMTD:ImGui:isAnyItemActive() flag = ImGui:isAnyItemActive()-->
 +
<!--GIDEROSMTD:ImGui:isAnyItemFocused() flag = ImGui:isAnyItemFocused()-->
 +
<!--GIDEROSMTD:ImGui:getItemRect() minX, minY, maxX, maxY = ImGui:getItemRect()-->
 +
<!--GIDEROSMTD:ImGui:getItemRectMin() x, y = ImGui:getItemRectMin()-->
 +
<!--GIDEROSMTD:ImGui:getItemRectMax() x, y = ImGui:getItemRectMax()-->
 +
<!--GIDEROSMTD:ImGui:getItemRectSize() w, h = ImGui:getItemRectSize()-->
 +
<!--GIDEROSMTD:ImGui:setItemAllowOverlap()-->
 +
<!--GIDEROSMTD:ImGui:isRectVisible(w, h [, max_x, max_y]) flag = ImGui:isRectVisible(...)-->
 +
<!--GIDEROSMTD:ImGui:getTime() number = ImGui:getTime()-->
 +
<!--GIDEROSMTD:ImGui:getFrameCount() number = ImGui:getFrameCount()-->
 +
<!--GIDEROSMTD:ImGui:getStyleColorName(idx) str = ImGui:getStyleColorName(...)-->
 +
<!--GIDEROSMTD:ImGui:beginChildFrame(id, w, h [, ImGui.WindowFlags = 0]) flag = ImGui:beginChildFrame(...), id (number)-->
 +
<!--GIDEROSMTD:ImGui:endChildFrame()-->
 +
<!--GIDEROSMTD:ImGui:calcTextSize(text [, hide_text_after_double_hash = false, wrap_width = -1]) w, h = ImGui:calcTextSize(...)-->
 +
<!--GIDEROSMTD:ImGui:getKeyName(keyCode) string = ImGui:getKeyName(...)-->
 +
<!--GIDEROSMTD:ImGui:isKeyDown(keyCode) flag = ImGui:isKeyDown(...)-->
 +
<!--GIDEROSMTD:ImGui:isKeyPressed(keyCode [, repeat = true]) flag = ImGui:isKeyPressed(...)-->
 +
<!--GIDEROSMTD:ImGui:isKeyReleased(keyCode) flag = ImGui:isKeyReleased(...)-->
 +
<!--GIDEROSMTD:ImGui:getKeyPressedAmount(keyCode, repeat_delay, rate) number = ImGui:getKeyPressedAmount(...)-->
 +
<!--GIDEROSMTD:ImGui:setNextFrameWantCaptureKeyboard([want_capture_keyboard_value = true])-->
 +
<!--GIDEROSMTD:ImGui:shortcut(keyChord [, owner_id = 0, ImGui.InputFlags = 0]) keyChord: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values (ImGuiKey | ImGuiMod_XXX))-->
 +
<!--GIDEROSMTD:ImGui:setShortcutRouting(keyChord [, owner_id = 0, ImGui.InputFlags = 0]) keyChord: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values (ImGuiKey | ImGuiMod_XXX)), useful to disable CTRL + TAB combo: ImGui:setShortcutRouting(ImGui.Mod_Ctrl | ImGui.Key_Tab, ImGui.KeyOwner_None)-->
 +
<!--GIDEROSMTD:ImGui:setItemKeyOwner(keyCode [, ImGui.InputFlags = 0])-->
 +
<!--GIDEROSMTD:ImGui:setKeyOwner(keyCode, owner_id, [, ImGui.InputFlags = 0])-->
 +
<!--GIDEROSMTD:ImGui:isMouseDown(mouse_button) flag = ImGui:isMouseDown(mouse_button), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:isMouseClicked(mouse_button [, repeat = false]) flag = ImGui:isMouseClicked(...), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:isMouseReleased(mouse_button) flag = ImGui:isMouseReleased(...), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:isMouseDoubleClicked(mouse_button) flag = ImGui:isMouseDoubleClicked(mouse_button), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:isMouseHoveringRect(min_x, min_y, max_x, max_y [, clip = true]) flag = ImGui:isMouseHoveringRect(...)-->
 +
<!--GIDEROSMTD:ImGui:isMousePosValid([x = inf, y = inf]) flag = ImGui:isMousePosValid(...)-->
 +
<!--GIDEROSMTD:ImGui:isAnyMouseDown() flag = ImGui:isAnyMouseDown()-->
 +
<!--GIDEROSMTD:ImGui:getMousePos() x, y = ImGui:getMousePos()-->
 +
<!--GIDEROSMTD:ImGui:getMousePosOnOpeningCurrentPopup() x, y = ImGui:getMousePosOnOpeningCurrentPopup()-->
 +
<!--GIDEROSMTD:ImGui:isMouseDragging(mouse_button [, lock_threshold = -1]) flag = ImGui:isMouseDragging(...), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:getMouseDragDelta(mouse_button [, lock_threshold = -1]) x, y = ImGui:getMouseDragDelta(...), "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:resetMouseDragDelta(mouse_button) "mouse_button" is any gideros mouse button code-->
 +
<!--GIDEROSMTD:ImGui:getMouseCursor() ImGuiMouseCursor = ImGui:getMouseCursor()-->
 +
<!--GIDEROSMTD:ImGui:setMouseCursor(ImGui.MouseCursor)-->
 +
<!--GIDEROSMTD:ImGui:setNextFrameWantCaptureMouse([want_capture_mouse_value = true])-->
 +
<!--GIDEROSMTD:ImGui:setNextFrameWantCaptureKeyboard([want_capture_keyboard_value = true])-->
 +
<!--GIDEROSMTD:ImGui:updateCursor()-->
 +
<!--GIDEROSMTD:ImGui:newFrame(deltaTime)-->
 +
<!--GIDEROSMTD:ImGui:render()-->
 +
<!--GIDEROSMTD:ImGui:endFrame()-->
 +
<!--GIDEROSMTD:ImGui:showUserGuide() is_openFlag = ImGui:showUserGuide()-->
 +
<!--GIDEROSMTD:ImGui:showDemoWindow([p_open]) is_openFlag = ImGui:showDemoWindow(...)-->
 +
<!--GIDEROSMTD:ImGui:showAboutWindow([p_open]) is_openFlag = ImGui:showAboutWindow(...)-->
 +
<!--GIDEROSMTD:ImGui:showStyleEditor() is_openFlag = ImGui:showStyleEditor()-->
 +
<!--GIDEROSMTD:ImGui:showFontSelector() is_openFlag = ImGui:showFontSelector()-->
 +
<!--GIDEROSMTD:ImGui:showMetricsWindow([p_open]) is_openFlag = ImGui:showMetricsWindow(...)-->
 +
<!--GIDEROSMTD:ImGui:showStyleSelector(label) is_openFlag = ImGui:showStyleSelector(...)-->
 +
<!--GIDEROSMTD:ImGui:ShowStackToolWindow([p_open]) is_openFlag = ImGui:ShowStackToolWindow(...)-->
 +
<!--GIDEROSMTD:ImGui:showLuaStyleEditor()-->
 +
<!--GIDEROSMTD:ImGuiTextEditor.new([other_text_editor]) TextEditor = ImGuiTextEditor.new([other_text_editor]), otherTextEditor: another "ImGuiTextEditor" instance to copy setting-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageCPP() LanguageDefinition = TextEditor:getLanguageCPP()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageGLSL() LanguageDefinition = TextEditor:getLanguageGLSL()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageHLSL() LanguageDefinition = TextEditor:getLanguageHLSL()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageC() LanguageDefinition = TextEditor:getLanguageC()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageSQL() LanguageDefinition = TextEditor:getLanguageSQL()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageAngelScript() LanguageDefinition = TextEditor:getLanguageAngelScript()-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageLua() LanguageDefinition = TextEditor:getLanguageLua()-->
 +
<!--GIDEROSMTD:TextEditor:setLanguageDefinition(LanguageDefinition)-->
 +
<!--GIDEROSMTD:TextEditor:getLanguageDefinition() LanguageDefinition = TextEditor:getLanguageDefinition()-->
 +
<!--GIDEROSMTD:TextEditor:getPaletteDark() Palette = TextEditor:getPaletteDark()-->
 +
<!--GIDEROSMTD:TextEditor:getPaletteLight() Palette = TextEditor:getPaletteLight()-->
 +
<!--GIDEROSMTD:TextEditor:getPaletteRetro() Palette = TextEditor:getPaletteRetro()-->
 +
<!--GIDEROSMTD:TextEditor:setPalette(Palette)-->
 +
<!--GIDEROSMTD:TextEditor:getPalette() Palette = TextEditor:getPalette()-->
 +
<!--GIDEROSMTD:TextEditor:setPaletteColor(TE_ColorIndex, color [, alpha = 1]) see TextEditor enums-->
 +
<!--GIDEROSMTD:TextEditor:getPaletteColor(TE_ColorIndex) color, alpha = TextEditor:getPaletteColor(TE_ColorIndex)-->
 +
<!--GIDEROSMTD:TextEditor:loadPalette(table) 42 elements table-->
 +
<!--GIDEROSMTD:TextEditor:setErrorMarkers(error_markers)-->
 +
<!--GIDEROSMTD:TextEditor:setBreakpoints(breakpoints)-->
 +
<!--GIDEROSMTD:TextEditor:render(string_id [, w = 0, h = 0, border = 0])-->
 +
<!--GIDEROSMTD:TextEditor:setText(string)-->
 +
<!--GIDEROSMTD:TextEditor:getText()-->
 +
<!--GIDEROSMTD:TextEditor:setTextLines(table) set editor text using table. Structure: {"line 1", "line 2", "line 3", ...}-->
 +
<!--GIDEROSMTD:TextEditor:getTextLines() table = TextEditor:getTextLines()-->
 +
<!--GIDEROSMTD:TextEditor:getSelectedText() string = TextEditor:getSelectedText()-->
 +
<!--GIDEROSMTD:TextEditor:getCurrentLineText() string = TextEditor:getCurrentLineText()-->
 +
<!--GIDEROSMTD:TextEditor:getTotalLines() number = TextEditor:getTotalLines()-->
 +
<!--GIDEROSMTD:TextEditor:isOverwrite() bool = TextEditor:isOverwrite()-->
 +
<!--GIDEROSMTD:TextEditor:setReadOnly() bool = TextEditor:setReadOnly()-->
 +
<!--GIDEROSMTD:TextEditor:isReadOnly() bool = TextEditor:isReadOnly()-->
 +
<!--GIDEROSMTD:TextEditor:isTextChanged() bool = TextEditor:isTextChanged()-->
 +
<!--GIDEROSMTD:TextEditor:isCursorPositionChanged() bool = TextEditor:isCursorPositionChanged()-->
 +
<!--GIDEROSMTD:TextEditor:setColorizerEnable()-->
 +
<!--GIDEROSMTD:TextEditor:isColorizerEnabled() bool = TextEditor:isColorizerEnabled()-->
 +
<!--GIDEROSMTD:TextEditor:getCursorPosition() line, column = TextEditor:getCursorPosition(), 0 based line & column number -->
 +
<!--GIDEROSMTD:TextEditor:setCursorPosition(line, column)-->
 +
<!--GIDEROSMTD:TextEditor:setHandleMouseInputs(bool)-->
 +
<!--GIDEROSMTD:TextEditor:isHandleMouseInputsEnabled() bool = TextEditor:isHandleMouseInputsEnabled()-->
 +
<!--GIDEROSMTD:TextEditor:setHandleKeyboardInputs(bool)-->
 +
<!--GIDEROSMTD:TextEditor:isHandleKeyboardInputsEnabled() bool = TextEditor:isHandleKeyboardInputsEnabled()-->
 +
<!--GIDEROSMTD:TextEditor:setTextEditorChildIgnored(bool)-->
 +
<!--GIDEROSMTD:TextEditor:isTextEditorChildIgnored() bool = TextEditor:isTextEditorChildIgnored()-->
 +
<!--GIDEROSMTD:TextEditor:setShowWhitespaces(bool)-->
 +
<!--GIDEROSMTD:TextEditor:isShowingWhitespaces() bool = TextEditor:isShowingWhitespaces()-->
 +
<!--GIDEROSMTD:TextEditor:setTabSize(size)-->
 +
<!--GIDEROSMTD:TextEditor:getTabSize() size = TextEditor:getTabSize()-->
 +
<!--GIDEROSMTD:TextEditor:insertText(string)-->
 +
<!--GIDEROSMTD:TextEditor:moveUp([amount = 1, select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveDown([amount = 1, select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveLeft([amount = 1, select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveRight([amount = 1, select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveTop([select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveBottom([select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveHome([select = false])-->
 +
<!--GIDEROSMTD:TextEditor:moveEnd([select = false])-->
 +
<!--GIDEROSMTD:TextEditor:setSelectionStart(line, column)-->
 +
<!--GIDEROSMTD:TextEditor:setSelectionEnd(line, column)-->
 +
<!--GIDEROSMTD:TextEditor:setSelection(start_line, start_column, end_line, end_column)-->
 +
<!--GIDEROSMTD:TextEditor:selectWordUnderCursor()-->
 +
<!--GIDEROSMTD:TextEditor:selectAll()-->
 +
<!--GIDEROSMTD:TextEditor:hasSelection() bool = TextEditor:hasSelection()-->
 +
<!--GIDEROSMTD:TextEditor:copy()-->
 +
<!--GIDEROSMTD:TextEditor:cut()-->
 +
<!--GIDEROSMTD:TextEditor:paste()-->
 +
<!--GIDEROSMTD:TextEditor:delete()-->
 +
<!--GIDEROSMTD:TextEditor:canUndo() bool = TextEditor:canUndo()-->
 +
<!--GIDEROSMTD:TextEditor:canRedo() bool = TextEditor:canRedo()-->
 +
<!--GIDEROSMTD:TextEditor:undo()-->
 +
<!--GIDEROSMTD:TextEditor:redo()-->
 +
<!--GIDEROSMTD:LanguageDefinition:getName() string = LanguageDefinition:getName()-->
 +
<!--GIDEROSMTD:ImGuiErrorMarkers.new() ErrorMarkers = ImGuiErrorMarkers.new()-->
 +
<!--GIDEROSMTD:ErrorMarkers:add(line, message)-->
 +
<!--GIDEROSMTD:ErrorMarkers:remove(line)-->
 +
<!--GIDEROSMTD:ErrorMarkers:get(line) message = ErrorMarkers:get(line)-->
 +
<!--GIDEROSMTD:ErrorMarkers:getSize() number = ErrorMarkers:getSize()-->
 +
<!--GIDEROSMTD:ImGuiBreakpoints.new() Breakpoints = ImGuiBreakpoints.new()-->
 +
<!--GIDEROSMTD:Breakpoints:add(line)-->
 +
<!--GIDEROSMTD:Breakpoints:remove(line)-->
 +
<!--GIDEROSMTD:Breakpoints:get(line) bool = Breakpoints:get(line)-->
 +
<!--GIDEROSMTD:Breakpoints:getSize() number = Breakpoints:getSize()-->
 +
<!--GIDEROSMTD:ImGui:getWindowDrawList() local list = ImGui:getWindowDrawList()-->
 +
<!--GIDEROSMTD:ImGui:getBackgroundDrawList() local list = ImGui:getBackgroundDrawList()-->
 +
<!--GIDEROSMTD:ImGui:getForegroundDrawList() local list = ImGui:getForegroundDrawList()-->
 +
<!--GIDEROSMTD:DrawList:pushClipRect(clip_rect_min_x, clip_rect_min_y, clip_rect_max_x, clip_rect_max_y [, intersect_with_current_clip_rect = false])-->
 +
<!--GIDEROSMTD:DrawList:pushClipRectFullScreen()-->
 +
<!--GIDEROSMTD:DrawList:popClipRect()-->
 +
<!--GIDEROSMTD:DrawList:pushTextureID(texture)-->
 +
<!--GIDEROSMTD:DrawList:popTextureID()-->
 +
<!--GIDEROSMTD:DrawList:getClipRectMin() x, y = DrawList:getClipRectMin()-->
 +
<!--GIDEROSMTD:DrawList:getClipRectMax() x, y = DrawList:getClipRectMax()-->
 +
<!--GIDEROSMTD:DrawList:addLine(p1_x, p1_y, p2_x, p2_y, color [, alpha = 1, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addRect(p_min_x, p_min_y, p_max_x, p_max_y, color [, alpha = 1, rounding = 0, rounding_corners = ImGui.DrawFlags_RoundCornersAll, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addRectFilled(p_min_x, p_min_y, p_max_x, p_max_y, color [, alpha = 1, rounding = 0, rounding_corners = ImGui.DrawFlags_RoundCornersAll])-->
 +
<!--GIDEROSMTD:DrawList:addRectFilledMultiColor(p_min_x, p_min_y, p_max_x, p_max_y, color_upr_left, color_upr_right, color_bot_right, color_bot_left)-->
 +
<!--GIDEROSMTD:DrawList:addQuad(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, p4_x, p4_y, color [, alpha = 1, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addQuadFilled(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, p4_x, p4_y, color)-->
 +
<!--GIDEROSMTD:DrawList:addTriangle(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, color [, alpha = 1, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addTriangleFilled(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, color)-->
 +
<!--GIDEROSMTD:DrawList:addCircle(center_x, center_y, radius, color [, alpha = 1, num_segments = 12, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addCircleFilled(center_x, center_y, radius, color [, alpha = 1, num_segments = 12])-->
 +
<!--GIDEROSMTD:DrawList:addNgon(center_x, center_y, radius, color [, alpha = 1, num_segments = 12, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:addNgonFilled(center_x, center_y, radius, color [, alpha = 1, num_segments = 12])-->
 +
<!--GIDEROSMTD:DrawList:addText(x, y, color, alpha, text) -- x, y (number), text_begin (string), text_end (string)-->
 +
<!--GIDEROSMTD:DrawList:addFontText(font, font_size, pos_x, pos_y, color, alpha, text [, wrap_with = 0, cpu_fine_clip_rect_x, cpu_fine_clip_rect_y, cpu_fine_clip_rect_w, cpu_fine_clip_rect_h])-->
 +
<!--GIDEROSMTD:DrawList:addPolyline(points_table, color, alpha, closed, thickness) points_table (table), color (number), closed (bool), thickness (number)-->
 +
<!--GIDEROSMTD:DrawList:addConvexPolyFilled(points_table, color) points_table (table), color (number)-->
 +
<!--GIDEROSMTD:DrawList:addBezierCubic(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, p4_x, p4_y, color, alpha, thickness [, num_segments = 0])-->
 +
<!--GIDEROSMTD:DrawList:addBezierQuadratic(p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, color, alpha, thickness [, num_segments = 0])-->
 +
<!--GIDEROSMTD:DrawList:addImage(texture, x, y, x + w, y + h [, tint_color = 0xffffff, tint_alpha = 1])-->
 +
<!--GIDEROSMTD:DrawList:addImageUV(texture, x, y, x + w, y + h, uv0x, uv0y, uv1x, uv1y [, tint_color = 0xffffff, tint_alpha = 1])-->
 +
<!--GIDEROSMTD:DrawList:addImageQuad(texture, x, y, x + w, y, x + w, y + h, x, y + h [, tint_color = 0xffffff, tint_alpha = 1, uv0x = 0, uv0y = 0, uv1x = 1, uv1y = 0, uv2x = 1, uv2y = 1, uv3x = 0, uv3y = 1])-->
 +
<!--GIDEROSMTD:DrawList:addImageRounded(texture, x, y, x + w, y + h, tint_color, tint_alpha, round_radius [, corner_flags = ImGui.CorenerFlags_All])-->
 +
<!--GIDEROSMTD:DrawList:addImageRoundedUV(texture, x, y, x + w, y + h, uv0x, uv0y, uv1x, uv1y, tint_color, tint_alpha, round_radius [, corner_flags = ImGui.CorenerFlags_All])-->
 +
<!--GIDEROSMTD:DrawList:pathClear()-->
 +
<!--GIDEROSMTD:DrawList:pathLineTo(x, y)-->
 +
<!--GIDEROSMTD:DrawList:pathLineToMergeDuplicate(x, y)-->
 +
<!--GIDEROSMTD:DrawList:pathFillConvex(color)-->
 +
<!--GIDEROSMTD:DrawList:pathStroke(color, alpha, closed [, thickness = 1])-->
 +
<!--GIDEROSMTD:DrawList:pathArcTo(center_x, center_y, radius, a_min, a_max [, num_segments = 10])-->
 +
<!--GIDEROSMTD:DrawList:pathArcToFast(center_x, center_y, radius, a_min, a_max)-->
 +
<!--GIDEROSMTD:DrawList:pathBezierCubicCurveTo(p2x, p2y, p3x, p3y, p4x, p4y [, num_segments = 0])-->
 +
<!--GIDEROSMTD:DrawList:pathBezierQuadraticCurveTo(p2x, p2y, p3x, p3y [, num_segments = 0])-->
 +
<!--GIDEROSMTD:DrawList:pathRect(min_x, min_y, max_x, max_y [, rounding = 0, ImGui.DrawFlags = 0])-->
 +
<!--GIDEROSMTD:DrawList:rotateBegin() rotate any draw list item around its center point-->
 +
<!--GIDEROSMTD:DrawList:rotateEnd(radians)-->
 
<!--=== Events ===-->
 
<!--=== Events ===-->
 
<!--GIDEROSEVT:ImGui.KeyChar-->
 
<!--GIDEROSEVT:ImGui.KeyChar-->

Latest revision as of 01:46, 11 October 2024

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2020.9

Description

This is an implementation of the Dear ImGui library: https://github.com/ocornut/imgui.

Dear ImGui is licensed under the MIT License, see https://github.com/ocornut/imgui/blob/master/LICENSE.txt for more information.

To use Dear ImGui in your project you need to add the ImGui plugin and call require like so:

require "ImGui"

Current Gideros Dear ImGui version: 1.89.6.

User Guide

  • Double-click on title bar to collapse window
  • Click and drag on lower corner to resize window (double-click to auto fit window to its contents)
  • CTRL+Click on a slider or drag box to input value as text
  • TAB/SHIFT+TAB to cycle through keyboard editable fields
  • CTRL+Tab to select a window
  • CTRL+Mouse Wheel to zoom window contents if io.FontAllowUserScaling is enabled
  • While inputing text:
    • CTRL+Left/Right to word jump
    • CTRL+A or double-click to select all
    • CTRL+X/C/V to use clipboard cut/copy/paste
    • CTRL+Z,CTRL+Y to undo/redo
    • ESCAPE to revert
  • With keyboard navigation enabled:
    • Arrow keys to navigate
    • Space to activate a widget
    • Return to input text into a widget
    • Escape to deactivate a widget, close popup, exit child window
    • Alt to jump to the menu layer of a window

Widgets

Widgets: Color Editor/Picker

* tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu

Widgets: Input with Keyboard

* If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp.
* Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc.

Widgets: Regular Sliders

* CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
* Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc.
* Format string may also be set to NULL or use the default format ("%f" or "%d").

If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361

Widgets: Drag Sliders

* CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds.
* For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x
* Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc.
* Format string may also be set to NULL or use the default format ("%f" or "%d").
* Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision).
* Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits.
* Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum.
* We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them.

Gideros Dear ImGui Documentation