Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

feat: dear imgui bindings to python & rust

Preetham Pemmasani5c072aa2d1ac
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80071d4..9e54038 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,6 +78,11 @@ if(BUI_BUILD_TESTS)
set_tests_properties(bui_window_smoke PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 30)
endif()
+# before the Python bindings: they add the blenderui.imgui extension when bui_cimgui exists
+if(BUI_BUILD_IMGUI)
+ add_subdirectory(bindings/imgui)
+endif()
+
if(BUI_BUILD_PYTHON_BINDINGS)
add_subdirectory(bindings/python)
endif()
@@ -86,9 +91,6 @@ if(BUI_BUILD_QT_BACKEND)
add_subdirectory(backends/qt)
endif()
-if(BUI_BUILD_IMGUI)
- add_subdirectory(bindings/imgui)
-endif()
if(BUI_BUILD_EXAMPLES)
add_subdirectory(examples)
diff --git a/README.md b/README.md
index 83e7d39..8102fab 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,7 @@
**Blender's user interface, as a library you can use from Python, Rust, JS/React and C.**
-Scrubbable number fields, drag-toggles, pie menus, the color wheel and Ctrl+Z on every edit:
-the real Blender widgets, driven by the tkinter or Qt code you already know, by HTML + CSS + Tailwind in Rust, or by plain C.
+People spent decades building and optimizing Blender's GUI. It's battery and memory efficient, super duper fast. We decoupled it, to give general user a chance to build their own products with the same. Supports multiple languages and frameworks, so you wouldn't miss a beat!
[![PyPI](https://img.shields.io/pypi/v/blenderui?label=pypi%20blenderui)](https://pypi.org/project/blenderui/)
[![Python](https://img.shields.io/pypi/pyversions/blenderui)](https://pypi.org/project/blenderui/)
@@ -661,6 +660,7 @@ the renderer.
| [Rust](docs/rust.md) | `rsx!`, hooks, HTML, CSS and Tailwind coverage, events, headless tests |
| [JavaScript and React](docs/javascript.md) | `@blender-ui/native`, `@blender-ui/react`, how changes cross to the UI thread, performance |
| [C API](docs/c-api.md) | The C kit (`BUI_kit.h`) |
+| [Dear ImGui](docs/imgui.md) | Dear ImGui on BUI from C++, C, Python and Rust; coverage |
| [Integration](INTEGRATION.md) | Embedding BUI drawing in C, C++, Qt or PySide hosts |
| [Architecture](ARCHITECTURE.md) | Modules and what was taken from Blender |
| [Publishing](docs/publishing.md) | Releasing to PyPI and crates.io |
diff --git a/bindings/imgui/CMakeLists.txt b/bindings/imgui/CMakeLists.txt
index 10faead..73c73e7 100644
--- a/bindings/imgui/CMakeLists.txt
+++ b/bindings/imgui/CMakeLists.txt
@@ -29,11 +29,29 @@ target_include_directories(bui_imgui PUBLIC
)
target_link_libraries(bui_imgui PUBLIC bui::kit)
+# The C API (cimgui-style, generated by gen/gen.py) and the C API of the BUI backend.
+add_library(bui_cimgui STATIC c/cimgui.cpp c/cimgui_impl_bui.cpp)
+add_library(bui::cimgui ALIAS bui_cimgui)
+target_include_directories(bui_cimgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/c)
+target_include_directories(bui_cimgui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
+target_link_libraries(bui_cimgui PUBLIC bui_imgui)
+if(MSVC)
+ # offsetof on imgui's C++ structs (layout checks), large generated file
+ target_compile_options(bui_cimgui PRIVATE /bigobj /wd4190)
+endif()
+
# examples/imgui_demo.cpp: ImGui::ShowDemoWindow() in a BUI window (or headless with
-# --screenshot).
-add_executable(bui_imgui_demo ${CMAKE_SOURCE_DIR}/examples/imgui_demo.cpp)
-target_include_directories(bui_imgui_demo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
-target_link_libraries(bui_imgui_demo PRIVATE bui::imgui)
+# --screenshot); examples/imgui_demo_c.c: the same from C. (Not in source copies
+# without examples/, e.g. the Rust crate's vendored csrc/.)
+if(EXISTS ${CMAKE_SOURCE_DIR}/examples/imgui_demo.cpp)
+ add_executable(bui_imgui_demo ${CMAKE_SOURCE_DIR}/examples/imgui_demo.cpp)
+ target_include_directories(bui_imgui_demo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests)
+ target_link_libraries(bui_imgui_demo PRIVATE bui::imgui)
+endif()
+if(EXISTS ${CMAKE_SOURCE_DIR}/examples/imgui_demo_c.c)
+ add_executable(bui_imgui_demo_c ${CMAKE_SOURCE_DIR}/examples/imgui_demo_c.c)
+ target_link_libraries(bui_imgui_demo_c PRIVATE bui::cimgui)
+endif()
if(BUI_BUILD_TESTS)
# The test compiles its own Dear ImGui with the test-engine hooks (to open every
@@ -45,4 +63,10 @@ if(BUI_BUILD_TESTS)
target_link_libraries(bui_imgui_test PRIVATE bui::kit)
add_test(NAME imgui_backend COMMAND bui_imgui_test)
set_tests_properties(imgui_backend PROPERTIES TIMEOUT 300)
+
+ # the C API, headless, from C
+ add_executable(bui_cimgui_test tests/test_cimgui.c)
+ target_link_libraries(bui_cimgui_test PRIVATE bui::cimgui)
+ add_test(NAME imgui_c_api COMMAND bui_cimgui_test)
+ set_tests_properties(imgui_c_api PROPERTIES TIMEOUT 300)
endif()
diff --git a/bindings/imgui/README.md b/bindings/imgui/README.md
index 79780af..3fa5650 100644
--- a/bindings/imgui/README.md
+++ b/bindings/imgui/README.md
@@ -13,6 +13,11 @@ Blender's UI font (Inter, embedded in BUI).
(alias `bui::imgui`: ImGui core + demo + this backend + style), `bui_imgui_demo`
(`examples/imgui_demo.cpp`) and the CTest `imgui_backend`.
+- **C, Python, Rust:** generated from `imgui.h` by `gen/gen.py`
+ (`py -3 -I bindings/imgui/gen/gen.py`): the C API `c/cimgui.h` (CMake `bui_cimgui`, with
+ `c/cimgui_impl_bui.h` for this backend), `blenderui.imgui` for Python (`_buiimgui`) and the
+ `blenderui-imgui` crate. See [docs/imgui.md](../../docs/imgui.md).
+
## Using it
```cpp
diff --git a/bindings/imgui/c/cimgui.cpp b/bindings/imgui/c/cimgui.cpp
new file mode 100644
index 0000000..271f5f9
--- /dev/null
+++ b/bindings/imgui/c/cimgui.cpp
@@ -0,0 +1,4256 @@
+// cimgui.cpp: implements cimgui.h over Dear ImGui's C++ API.
+// Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py).
+// SPDX-License-Identifier: MIT (Dear ImGui) / GPL-2.0-or-later (BUI)
+
+#include "imgui.h"
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdarg.h>
+#include <string.h>
+
+namespace cimgui {
+#include "cimgui.h"
+}
+
+template<class D, class S> static inline D cimgui_cast(const S& s)
+{
+ static_assert(sizeof(D) == sizeof(S), "layout");
+ alignas(D) unsigned char buf[sizeof(D)];
+ memcpy(buf, &s, sizeof(D));
+ return *reinterpret_cast<D*>(buf);
+}
+
+// Layout checks: the C structs must match the C++ ones
+static_assert(sizeof(::ImVec2) == sizeof(cimgui::ImVec2), "ImVec2 size");
+static_assert(offsetof(::ImVec2, x) == offsetof(cimgui::ImVec2, x), "ImVec2.x");
+static_assert(offsetof(::ImVec2, y) == offsetof(cimgui::ImVec2, y), "ImVec2.y");
+static_assert(sizeof(::ImVec4) == sizeof(cimgui::ImVec4), "ImVec4 size");
+static_assert(offsetof(::ImVec4, x) == offsetof(cimgui::ImVec4, x), "ImVec4.x");
+static_assert(offsetof(::ImVec4, y) == offsetof(cimgui::ImVec4, y), "ImVec4.y");
+static_assert(offsetof(::ImVec4, z) == offsetof(cimgui::ImVec4, z), "ImVec4.z");
+static_assert(offsetof(::ImVec4, w) == offsetof(cimgui::ImVec4, w), "ImVec4.w");
+static_assert(sizeof(::ImTextureRef) == sizeof(cimgui::ImTextureRef), "ImTextureRef size");
+static_assert(offsetof(::ImTextureRef, _TexData) == offsetof(cimgui::ImTextureRef, _TexData), "ImTextureRef._TexData");
+static_assert(offsetof(::ImTextureRef, _TexID) == offsetof(cimgui::ImTextureRef, _TexID), "ImTextureRef._TexID");
+static_assert(sizeof(::ImGuiTableSortSpecs) == sizeof(cimgui::ImGuiTableSortSpecs), "ImGuiTableSortSpecs size");
+static_assert(offsetof(::ImGuiTableSortSpecs, Specs) == offsetof(cimgui::ImGuiTableSortSpecs, Specs), "ImGuiTableSortSpecs.Specs");
+static_assert(offsetof(::ImGuiTableSortSpecs, SpecsCount) == offsetof(cimgui::ImGuiTableSortSpecs, SpecsCount), "ImGuiTableSortSpecs.SpecsCount");
+static_assert(offsetof(::ImGuiTableSortSpecs, SpecsDirty) == offsetof(cimgui::ImGuiTableSortSpecs, SpecsDirty), "ImGuiTableSortSpecs.SpecsDirty");
+static_assert(sizeof(::ImGuiTableColumnSortSpecs) == sizeof(cimgui::ImGuiTableColumnSortSpecs), "ImGuiTableColumnSortSpecs size");
+static_assert(offsetof(::ImGuiTableColumnSortSpecs, ColumnUserID) == offsetof(cimgui::ImGuiTableColumnSortSpecs, ColumnUserID), "ImGuiTableColumnSortSpecs.ColumnUserID");
+static_assert(offsetof(::ImGuiTableColumnSortSpecs, ColumnIndex) == offsetof(cimgui::ImGuiTableColumnSortSpecs, ColumnIndex), "ImGuiTableColumnSortSpecs.ColumnIndex");
+static_assert(offsetof(::ImGuiTableColumnSortSpecs, SortOrder) == offsetof(cimgui::ImGuiTableColumnSortSpecs, SortOrder), "ImGuiTableColumnSortSpecs.SortOrder");
+static_assert(offsetof(::ImGuiTableColumnSortSpecs, SortDirection) == offsetof(cimgui::ImGuiTableColumnSortSpecs, SortDirection), "ImGuiTableColumnSortSpecs.SortDirection");
+static_assert(sizeof(::ImGuiStyle) == sizeof(cimgui::ImGuiStyle), "ImGuiStyle size");
+static_assert(offsetof(::ImGuiStyle, FontSizeBase) == offsetof(cimgui::ImGuiStyle, FontSizeBase), "ImGuiStyle.FontSizeBase");
+static_assert(offsetof(::ImGuiStyle, FontScaleMain) == offsetof(cimgui::ImGuiStyle, FontScaleMain), "ImGuiStyle.FontScaleMain");
+static_assert(offsetof(::ImGuiStyle, FontScaleDpi) == offsetof(cimgui::ImGuiStyle, FontScaleDpi), "ImGuiStyle.FontScaleDpi");
+static_assert(offsetof(::ImGuiStyle, Alpha) == offsetof(cimgui::ImGuiStyle, Alpha), "ImGuiStyle.Alpha");
+static_assert(offsetof(::ImGuiStyle, DisabledAlpha) == offsetof(cimgui::ImGuiStyle, DisabledAlpha), "ImGuiStyle.DisabledAlpha");
+static_assert(offsetof(::ImGuiStyle, WindowPadding) == offsetof(cimgui::ImGuiStyle, WindowPadding), "ImGuiStyle.WindowPadding");
+static_assert(offsetof(::ImGuiStyle, WindowRounding) == offsetof(cimgui::ImGuiStyle, WindowRounding), "ImGuiStyle.WindowRounding");
+static_assert(offsetof(::ImGuiStyle, WindowBorderSize) == offsetof(cimgui::ImGuiStyle, WindowBorderSize), "ImGuiStyle.WindowBorderSize");
+static_assert(offsetof(::ImGuiStyle, WindowBorderHoverPadding) == offsetof(cimgui::ImGuiStyle, WindowBorderHoverPadding), "ImGuiStyle.WindowBorderHoverPadding");
+static_assert(offsetof(::ImGuiStyle, WindowMinSize) == offsetof(cimgui::ImGuiStyle, WindowMinSize), "ImGuiStyle.WindowMinSize");
+static_assert(offsetof(::ImGuiStyle, WindowTitleAlign) == offsetof(cimgui::ImGuiStyle, WindowTitleAlign), "ImGuiStyle.WindowTitleAlign");
+static_assert(offsetof(::ImGuiStyle, WindowMenuButtonPosition) == offsetof(cimgui::ImGuiStyle, WindowMenuButtonPosition), "ImGuiStyle.WindowMenuButtonPosition");
+static_assert(offsetof(::ImGuiStyle, ChildRounding) == offsetof(cimgui::ImGuiStyle, ChildRounding), "ImGuiStyle.ChildRounding");
+static_assert(offsetof(::ImGuiStyle, ChildBorderSize) == offsetof(cimgui::ImGuiStyle, ChildBorderSize), "ImGuiStyle.ChildBorderSize");
+static_assert(offsetof(::ImGuiStyle, PopupRounding) == offsetof(cimgui::ImGuiStyle, PopupRounding), "ImGuiStyle.PopupRounding");
+static_assert(offsetof(::ImGuiStyle, PopupBorderSize) == offsetof(cimgui::ImGuiStyle, PopupBorderSize), "ImGuiStyle.PopupBorderSize");
+static_assert(offsetof(::ImGuiStyle, FramePadding) == offsetof(cimgui::ImGuiStyle, FramePadding), "ImGuiStyle.FramePadding");
+static_assert(offsetof(::ImGuiStyle, FrameRounding) == offsetof(cimgui::ImGuiStyle, FrameRounding), "ImGuiStyle.FrameRounding");
+static_assert(offsetof(::ImGuiStyle, FrameBorderSize) == offsetof(cimgui::ImGuiStyle, FrameBorderSize), "ImGuiStyle.FrameBorderSize");
+static_assert(offsetof(::ImGuiStyle, ItemSpacing) == offsetof(cimgui::ImGuiStyle, ItemSpacing), "ImGuiStyle.ItemSpacing");
+static_assert(offsetof(::ImGuiStyle, ItemInnerSpacing) == offsetof(cimgui::ImGuiStyle, ItemInnerSpacing), "ImGuiStyle.ItemInnerSpacing");
+static_assert(offsetof(::ImGuiStyle, CellPadding) == offsetof(cimgui::ImGuiStyle, CellPadding), "ImGuiStyle.CellPadding");
+static_assert(offsetof(::ImGuiStyle, TouchExtraPadding) == offsetof(cimgui::ImGuiStyle, TouchExtraPadding), "ImGuiStyle.TouchExtraPadding");
+static_assert(offsetof(::ImGuiStyle, IndentSpacing) == offsetof(cimgui::ImGuiStyle, IndentSpacing), "ImGuiStyle.IndentSpacing");
+static_assert(offsetof(::ImGuiStyle, ColumnsMinSpacing) == offsetof(cimgui::ImGuiStyle, ColumnsMinSpacing), "ImGuiStyle.ColumnsMinSpacing");
+static_assert(offsetof(::ImGuiStyle, ScrollbarSize) == offsetof(cimgui::ImGuiStyle, ScrollbarSize), "ImGuiStyle.ScrollbarSize");
+static_assert(offsetof(::ImGuiStyle, ScrollbarRounding) == offsetof(cimgui::ImGuiStyle, ScrollbarRounding), "ImGuiStyle.ScrollbarRounding");
+static_assert(offsetof(::ImGuiStyle, ScrollbarPadding) == offsetof(cimgui::ImGuiStyle, ScrollbarPadding), "ImGuiStyle.ScrollbarPadding");
+static_assert(offsetof(::ImGuiStyle, GrabMinSize) == offsetof(cimgui::ImGuiStyle, GrabMinSize), "ImGuiStyle.GrabMinSize");
+static_assert(offsetof(::ImGuiStyle, GrabRounding) == offsetof(cimgui::ImGuiStyle, GrabRounding), "ImGuiStyle.GrabRounding");
+static_assert(offsetof(::ImGuiStyle, LogSliderDeadzone) == offsetof(cimgui::ImGuiStyle, LogSliderDeadzone), "ImGuiStyle.LogSliderDeadzone");
+static_assert(offsetof(::ImGuiStyle, ImageRounding) == offsetof(cimgui::ImGuiStyle, ImageRounding), "ImGuiStyle.ImageRounding");
+static_assert(offsetof(::ImGuiStyle, ImageBorderSize) == offsetof(cimgui::ImGuiStyle, ImageBorderSize), "ImGuiStyle.ImageBorderSize");
+static_assert(offsetof(::ImGuiStyle, TabRounding) == offsetof(cimgui::ImGuiStyle, TabRounding), "ImGuiStyle.TabRounding");
+static_assert(offsetof(::ImGuiStyle, TabBorderSize) == offsetof(cimgui::ImGuiStyle, TabBorderSize), "ImGuiStyle.TabBorderSize");
+static_assert(offsetof(::ImGuiStyle, TabMinWidthBase) == offsetof(cimgui::ImGuiStyle, TabMinWidthBase), "ImGuiStyle.TabMinWidthBase");
+static_assert(offsetof(::ImGuiStyle, TabMinWidthShrink) == offsetof(cimgui::ImGuiStyle, TabMinWidthShrink), "ImGuiStyle.TabMinWidthShrink");
+static_assert(offsetof(::ImGuiStyle, TabCloseButtonMinWidthSelected) == offsetof(cimgui::ImGuiStyle, TabCloseButtonMinWidthSelected), "ImGuiStyle.TabCloseButtonMinWidthSelected");
+static_assert(offsetof(::ImGuiStyle, TabCloseButtonMinWidthUnselected) == offsetof(cimgui::ImGuiStyle, TabCloseButtonMinWidthUnselected), "ImGuiStyle.TabCloseButtonMinWidthUnselected");
+static_assert(offsetof(::ImGuiStyle, TabBarBorderSize) == offsetof(cimgui::ImGuiStyle, TabBarBorderSize), "ImGuiStyle.TabBarBorderSize");
+static_assert(offsetof(::ImGuiStyle, TabBarOverlineSize) == offsetof(cimgui::ImGuiStyle, TabBarOverlineSize), "ImGuiStyle.TabBarOverlineSize");
+static_assert(offsetof(::ImGuiStyle, TableAngledHeadersAngle) == offsetof(cimgui::ImGuiStyle, TableAngledHeadersAngle), "ImGuiStyle.TableAngledHeadersAngle");
+static_assert(offsetof(::ImGuiStyle, TableAngledHeadersTextAlign) == offsetof(cimgui::ImGuiStyle, TableAngledHeadersTextAlign), "ImGuiStyle.TableAngledHeadersTextAlign");
+static_assert(offsetof(::ImGuiStyle, TreeLinesFlags) == offsetof(cimgui::ImGuiStyle, TreeLinesFlags), "ImGuiStyle.TreeLinesFlags");
+static_assert(offsetof(::ImGuiStyle, TreeLinesSize) == offsetof(cimgui::ImGuiStyle, TreeLinesSize), "ImGuiStyle.TreeLinesSize");
+static_assert(offsetof(::ImGuiStyle, TreeLinesRounding) == offsetof(cimgui::ImGuiStyle, TreeLinesRounding), "ImGuiStyle.TreeLinesRounding");
+static_assert(offsetof(::ImGuiStyle, MenuItemRounding) == offsetof(cimgui::ImGuiStyle, MenuItemRounding), "ImGuiStyle.MenuItemRounding");
+static_assert(offsetof(::ImGuiStyle, SelectableRounding) == offsetof(cimgui::ImGuiStyle, SelectableRounding), "ImGuiStyle.SelectableRounding");
+static_assert(offsetof(::ImGuiStyle, DragDropTargetRounding) == offsetof(cimgui::ImGuiStyle, DragDropTargetRounding), "ImGuiStyle.DragDropTargetRounding");
+static_assert(offsetof(::ImGuiStyle, DragDropTargetBorderSize) == offsetof(cimgui::ImGuiStyle, DragDropTargetBorderSize), "ImGuiStyle.DragDropTargetBorderSize");
+static_assert(offsetof(::ImGuiStyle, DragDropTargetPadding) == offsetof(cimgui::ImGuiStyle, DragDropTargetPadding), "ImGuiStyle.DragDropTargetPadding");
+static_assert(offsetof(::ImGuiStyle, ColorMarkerSize) == offsetof(cimgui::ImGuiStyle, ColorMarkerSize), "ImGuiStyle.ColorMarkerSize");
+static_assert(offsetof(::ImGuiStyle, ColorButtonPosition) == offsetof(cimgui::ImGuiStyle, ColorButtonPosition), "ImGuiStyle.ColorButtonPosition");
+static_assert(offsetof(::ImGuiStyle, ButtonTextAlign) == offsetof(cimgui::ImGuiStyle, ButtonTextAlign), "ImGuiStyle.ButtonTextAlign");
+static_assert(offsetof(::ImGuiStyle, SelectableTextAlign) == offsetof(cimgui::ImGuiStyle, SelectableTextAlign), "ImGuiStyle.SelectableTextAlign");
+static_assert(offsetof(::ImGuiStyle, InputTextCursorSize) == offsetof(cimgui::ImGuiStyle, InputTextCursorSize), "ImGuiStyle.InputTextCursorSize");
+static_assert(offsetof(::ImGuiStyle, SeparatorSize) == offsetof(cimgui::ImGuiStyle, SeparatorSize), "ImGuiStyle.SeparatorSize");
+static_assert(offsetof(::ImGuiStyle, SeparatorTextBorderSize) == offsetof(cimgui::ImGuiStyle, SeparatorTextBorderSize), "ImGuiStyle.SeparatorTextBorderSize");
+static_assert(offsetof(::ImGuiStyle, SeparatorTextAlign) == offsetof(cimgui::ImGuiStyle, SeparatorTextAlign), "ImGuiStyle.SeparatorTextAlign");
+static_assert(offsetof(::ImGuiStyle, SeparatorTextPadding) == offsetof(cimgui::ImGuiStyle, SeparatorTextPadding), "ImGuiStyle.SeparatorTextPadding");
+static_assert(offsetof(::ImGuiStyle, DisplayWindowPadding) == offsetof(cimgui::ImGuiStyle, DisplayWindowPadding), "ImGuiStyle.DisplayWindowPadding");
+static_assert(offsetof(::ImGuiStyle, DisplaySafeAreaPadding) == offsetof(cimgui::ImGuiStyle, DisplaySafeAreaPadding), "ImGuiStyle.DisplaySafeAreaPadding");
+static_assert(offsetof(::ImGuiStyle, MouseCursorScale) == offsetof(cimgui::ImGuiStyle, MouseCursorScale), "ImGuiStyle.MouseCursorScale");
+static_assert(offsetof(::ImGuiStyle, SymbolArrowSizeFactor) == offsetof(cimgui::ImGuiStyle, SymbolArrowSizeFactor), "ImGuiStyle.SymbolArrowSizeFactor");
+static_assert(offsetof(::ImGuiStyle, SymbolArrowThicknessFactor) == offsetof(cimgui::ImGuiStyle, SymbolArrowThicknessFactor), "ImGuiStyle.SymbolArrowThicknessFactor");
+static_assert(offsetof(::ImGuiStyle, AntiAliasedLines) == offsetof(cimgui::ImGuiStyle, AntiAliasedLines), "ImGuiStyle.AntiAliasedLines");
+static_assert(offsetof(::ImGuiStyle, AntiAliasedLineEnds) == offsetof(cimgui::ImGuiStyle, AntiAliasedLineEnds), "ImGuiStyle.AntiAliasedLineEnds");
+static_assert(offsetof(::ImGuiStyle, AntiAliasedFill) == offsetof(cimgui::ImGuiStyle, AntiAliasedFill), "ImGuiStyle.AntiAliasedFill");
+static_assert(offsetof(::ImGuiStyle, CurveTessellationMaxError) == offsetof(cimgui::ImGuiStyle, CurveTessellationMaxError), "ImGuiStyle.CurveTessellationMaxError");
+static_assert(offsetof(::ImGuiStyle, CircleTessellationMaxError) == offsetof(cimgui::ImGuiStyle, CircleTessellationMaxError), "ImGuiStyle.CircleTessellationMaxError");
+static_assert(offsetof(::ImGuiStyle, Colors) == offsetof(cimgui::ImGuiStyle, Colors), "ImGuiStyle.Colors");
+static_assert(offsetof(::ImGuiStyle, HoverStationaryDelay) == offsetof(cimgui::ImGuiStyle, HoverStationaryDelay), "ImGuiStyle.HoverStationaryDelay");
+static_assert(offsetof(::ImGuiStyle, HoverDelayShort) == offsetof(cimgui::ImGuiStyle, HoverDelayShort), "ImGuiStyle.HoverDelayShort");
+static_assert(offsetof(::ImGuiStyle, HoverDelayNormal) == offsetof(cimgui::ImGuiStyle, HoverDelayNormal), "ImGuiStyle.HoverDelayNormal");
+static_assert(offsetof(::ImGuiStyle, HoverFlagsForTooltipMouse) == offsetof(cimgui::ImGuiStyle, HoverFlagsForTooltipMouse), "ImGuiStyle.HoverFlagsForTooltipMouse");
+static_assert(offsetof(::ImGuiStyle, HoverFlagsForTooltipNav) == offsetof(cimgui::ImGuiStyle, HoverFlagsForTooltipNav), "ImGuiStyle.HoverFlagsForTooltipNav");
+static_assert(offsetof(::ImGuiStyle, _MainScale) == offsetof(cimgui::ImGuiStyle, _MainScale), "ImGuiStyle._MainScale");
+static_assert(offsetof(::ImGuiStyle, _NextFrameFontSizeBase) == offsetof(cimgui::ImGuiStyle, _NextFrameFontSizeBase), "ImGuiStyle._NextFrameFontSizeBase");
+static_assert(offsetof(::ImGuiStyle, AntiAliasedLinesUseTex) == offsetof(cimgui::ImGuiStyle, AntiAliasedLinesUseTex), "ImGuiStyle.AntiAliasedLinesUseTex");
+static_assert(offsetof(::ImGuiStyle, CurveTessellationTol) == offsetof(cimgui::ImGuiStyle, CurveTessellationTol), "ImGuiStyle.CurveTessellationTol");
+static_assert(sizeof(::ImGuiKeyData) == sizeof(cimgui::ImGuiKeyData), "ImGuiKeyData size");
+static_assert(offsetof(::ImGuiKeyData, Down) == offsetof(cimgui::ImGuiKeyData, Down), "ImGuiKeyData.Down");
+static_assert(offsetof(::ImGuiKeyData, DownDuration) == offsetof(cimgui::ImGuiKeyData, DownDuration), "ImGuiKeyData.DownDuration");
+static_assert(offsetof(::ImGuiKeyData, DownDurationPrev) == offsetof(cimgui::ImGuiKeyData, DownDurationPrev), "ImGuiKeyData.DownDurationPrev");
+static_assert(offsetof(::ImGuiKeyData, AnalogValue) == offsetof(cimgui::ImGuiKeyData, AnalogValue), "ImGuiKeyData.AnalogValue");
+static_assert(sizeof(::ImGuiIO) == sizeof(cimgui::ImGuiIO), "ImGuiIO size");
+static_assert(offsetof(::ImGuiIO, ConfigFlags) == offsetof(cimgui::ImGuiIO, ConfigFlags), "ImGuiIO.ConfigFlags");
+static_assert(offsetof(::ImGuiIO, BackendFlags) == offsetof(cimgui::ImGuiIO, BackendFlags), "ImGuiIO.BackendFlags");
+static_assert(offsetof(::ImGuiIO, DisplaySize) == offsetof(cimgui::ImGuiIO, DisplaySize), "ImGuiIO.DisplaySize");
+static_assert(offsetof(::ImGuiIO, DisplayFramebufferScale) == offsetof(cimgui::ImGuiIO, DisplayFramebufferScale), "ImGuiIO.DisplayFramebufferScale");
+static_assert(offsetof(::ImGuiIO, DeltaTime) == offsetof(cimgui::ImGuiIO, DeltaTime), "ImGuiIO.DeltaTime");
+static_assert(offsetof(::ImGuiIO, IniSavingRate) == offsetof(cimgui::ImGuiIO, IniSavingRate), "ImGuiIO.IniSavingRate");
+static_assert(offsetof(::ImGuiIO, IniFilename) == offsetof(cimgui::ImGuiIO, IniFilename), "ImGuiIO.IniFilename");
+static_assert(offsetof(::ImGuiIO, LogFilename) == offsetof(cimgui::ImGuiIO, LogFilename), "ImGuiIO.LogFilename");
+static_assert(offsetof(::ImGuiIO, UserData) == offsetof(cimgui::ImGuiIO, UserData), "ImGuiIO.UserData");
+static_assert(offsetof(::ImGuiIO, Fonts) == offsetof(cimgui::ImGuiIO, Fonts), "ImGuiIO.Fonts");
+static_assert(offsetof(::ImGuiIO, FontDefault) == offsetof(cimgui::ImGuiIO, FontDefault), "ImGuiIO.FontDefault");
+static_assert(offsetof(::ImGuiIO, FontAllowUserScaling) == offsetof(cimgui::ImGuiIO, FontAllowUserScaling), "ImGuiIO.FontAllowUserScaling");
+static_assert(offsetof(::ImGuiIO, ConfigNavSwapGamepadButtons) == offsetof(cimgui::ImGuiIO, ConfigNavSwapGamepadButtons), "ImGuiIO.ConfigNavSwapGamepadButtons");
+static_assert(offsetof(::ImGuiIO, ConfigNavMoveSetMousePos) == offsetof(cimgui::ImGuiIO, ConfigNavMoveSetMousePos), "ImGuiIO.ConfigNavMoveSetMousePos");
+static_assert(offsetof(::ImGuiIO, ConfigNavCaptureKeyboard) == offsetof(cimgui::ImGuiIO, ConfigNavCaptureKeyboard), "ImGuiIO.ConfigNavCaptureKeyboard");
+static_assert(offsetof(::ImGuiIO, ConfigNavEscapeClearFocusItem) == offsetof(cimgui::ImGuiIO, ConfigNavEscapeClearFocusItem), "ImGuiIO.ConfigNavEscapeClearFocusItem");
+static_assert(offsetof(::ImGuiIO, ConfigNavEscapeClearFocusWindow) == offsetof(cimgui::ImGuiIO, ConfigNavEscapeClearFocusWindow), "ImGuiIO.ConfigNavEscapeClearFocusWindow");
+static_assert(offsetof(::ImGuiIO, ConfigNavCursorVisibleAuto) == offsetof(cimgui::ImGuiIO, ConfigNavCursorVisibleAuto), "ImGuiIO.ConfigNavCursorVisibleAuto");
+static_assert(offsetof(::ImGuiIO, ConfigNavCursorVisibleAlways) == offsetof(cimgui::ImGuiIO, ConfigNavCursorVisibleAlways), "ImGuiIO.ConfigNavCursorVisibleAlways");
+static_assert(offsetof(::ImGuiIO, ConfigMacOSXBehaviors) == offsetof(cimgui::ImGuiIO, ConfigMacOSXBehaviors), "ImGuiIO.ConfigMacOSXBehaviors");
+static_assert(offsetof(::ImGuiIO, ConfigInputTrickleEventQueue) == offsetof(cimgui::ImGuiIO, ConfigInputTrickleEventQueue), "ImGuiIO.ConfigInputTrickleEventQueue");
+static_assert(offsetof(::ImGuiIO, ConfigInputTextCursorBlink) == offsetof(cimgui::ImGuiIO, ConfigInputTextCursorBlink), "ImGuiIO.ConfigInputTextCursorBlink");
+static_assert(offsetof(::ImGuiIO, ConfigInputTextEnterKeepActive) == offsetof(cimgui::ImGuiIO, ConfigInputTextEnterKeepActive), "ImGuiIO.ConfigInputTextEnterKeepActive");
+static_assert(offsetof(::ImGuiIO, ConfigColorEditFlags) == offsetof(cimgui::ImGuiIO, ConfigColorEditFlags), "ImGuiIO.ConfigColorEditFlags");
+static_assert(offsetof(::ImGuiIO, ConfigDragClickToInputText) == offsetof(cimgui::ImGuiIO, ConfigDragClickToInputText), "ImGuiIO.ConfigDragClickToInputText");
+static_assert(offsetof(::ImGuiIO, ConfigWindowsResizeFromEdges) == offsetof(cimgui::ImGuiIO, ConfigWindowsResizeFromEdges), "ImGuiIO.ConfigWindowsResizeFromEdges");
+static_assert(offsetof(::ImGuiIO, ConfigWindowsMoveFromTitleBarOnly) == offsetof(cimgui::ImGuiIO, ConfigWindowsMoveFromTitleBarOnly), "ImGuiIO.ConfigWindowsMoveFromTitleBarOnly");
+static_assert(offsetof(::ImGuiIO, ConfigWindowsCopyContentsWithCtrlC) == offsetof(cimgui::ImGuiIO, ConfigWindowsCopyContentsWithCtrlC), "ImGuiIO.ConfigWindowsCopyContentsWithCtrlC");
+static_assert(offsetof(::ImGuiIO, ConfigScrollbarScrollByPage) == offsetof(cimgui::ImGuiIO, ConfigScrollbarScrollByPage), "ImGuiIO.ConfigScrollbarScrollByPage");
+static_assert(offsetof(::ImGuiIO, ConfigIniSettingsSaveLastUsedDate) == offsetof(cimgui::ImGuiIO, ConfigIniSettingsSaveLastUsedDate), "ImGuiIO.ConfigIniSettingsSaveLastUsedDate");
+static_assert(offsetof(::ImGuiIO, ConfigIniSettingsAutoDiscardMonths) == offsetof(cimgui::ImGuiIO, ConfigIniSettingsAutoDiscardMonths), "ImGuiIO.ConfigIniSettingsAutoDiscardMonths");
+static_assert(offsetof(::ImGuiIO, ConfigDebugIniSettings) == offsetof(cimgui::ImGuiIO, ConfigDebugIniSettings), "ImGuiIO.ConfigDebugIniSettings");
+static_assert(offsetof(::ImGuiIO, MouseDrawCursor) == offsetof(cimgui::ImGuiIO, MouseDrawCursor), "ImGuiIO.MouseDrawCursor");
+static_assert(offsetof(::ImGuiIO, ConfigMemoryCompactTimer) == offsetof(cimgui::ImGuiIO, ConfigMemoryCompactTimer), "ImGuiIO.ConfigMemoryCompactTimer");
+static_assert(offsetof(::ImGuiIO, MouseDoubleClickTime) == offsetof(cimgui::ImGuiIO, MouseDoubleClickTime), "ImGuiIO.MouseDoubleClickTime");
+static_assert(offsetof(::ImGuiIO, MouseDoubleClickMaxDist) == offsetof(cimgui::ImGuiIO, MouseDoubleClickMaxDist), "ImGuiIO.MouseDoubleClickMaxDist");
+static_assert(offsetof(::ImGuiIO, MouseSingleClickDelay) == offsetof(cimgui::ImGuiIO, MouseSingleClickDelay), "ImGuiIO.MouseSingleClickDelay");
+static_assert(offsetof(::ImGuiIO, MouseDragThreshold) == offsetof(cimgui::ImGuiIO, MouseDragThreshold), "ImGuiIO.MouseDragThreshold");
+static_assert(offsetof(::ImGuiIO, KeyRepeatDelay) == offsetof(cimgui::ImGuiIO, KeyRepeatDelay), "ImGuiIO.KeyRepeatDelay");
+static_assert(offsetof(::ImGuiIO, KeyRepeatRate) == offsetof(cimgui::ImGuiIO, KeyRepeatRate), "ImGuiIO.KeyRepeatRate");
+static_assert(offsetof(::ImGuiIO, ConfigErrorRecovery) == offsetof(cimgui::ImGuiIO, ConfigErrorRecovery), "ImGuiIO.ConfigErrorRecovery");
+static_assert(offsetof(::ImGuiIO, ConfigErrorRecoveryEnableAssert) == offsetof(cimgui::ImGuiIO, ConfigErrorRecoveryEnableAssert), "ImGuiIO.ConfigErrorRecoveryEnableAssert");
+static_assert(offsetof(::ImGuiIO, ConfigErrorRecoveryEnableDebugLog) == offsetof(cimgui::ImGuiIO, ConfigErrorRecoveryEnableDebugLog), "ImGuiIO.ConfigErrorRecoveryEnableDebugLog");
+static_assert(offsetof(::ImGuiIO, ConfigErrorRecoveryEnableTooltip) == offsetof(cimgui::ImGuiIO, ConfigErrorRecoveryEnableTooltip), "ImGuiIO.ConfigErrorRecoveryEnableTooltip");
+static_assert(offsetof(::ImGuiIO, ConfigDebugIsDebuggerPresent) == offsetof(cimgui::ImGuiIO, ConfigDebugIsDebuggerPresent), "ImGuiIO.ConfigDebugIsDebuggerPresent");
+static_assert(offsetof(::ImGuiIO, ConfigDebugHighlightIdConflicts) == offsetof(cimgui::ImGuiIO, ConfigDebugHighlightIdConflicts), "ImGuiIO.ConfigDebugHighlightIdConflicts");
+static_assert(offsetof(::ImGuiIO, ConfigDebugHighlightIdConflictsShowItemPicker) == offsetof(cimgui::ImGuiIO, ConfigDebugHighlightIdConflictsShowItemPicker), "ImGuiIO.ConfigDebugHighlightIdConflictsShowItemPicker");
+static_assert(offsetof(::ImGuiIO, ConfigDebugBeginReturnValueOnce) == offsetof(cimgui::ImGuiIO, ConfigDebugBeginReturnValueOnce), "ImGuiIO.ConfigDebugBeginReturnValueOnce");
+static_assert(offsetof(::ImGuiIO, ConfigDebugBeginReturnValueLoop) == offsetof(cimgui::ImGuiIO, ConfigDebugBeginReturnValueLoop), "ImGuiIO.ConfigDebugBeginReturnValueLoop");
+static_assert(offsetof(::ImGuiIO, ConfigDebugIgnoreFocusLoss) == offsetof(cimgui::ImGuiIO, ConfigDebugIgnoreFocusLoss), "ImGuiIO.ConfigDebugIgnoreFocusLoss");
+static_assert(offsetof(::ImGuiIO, ConfigDebugDrawListDefaultsToStrokeLegacy) == offsetof(cimgui::ImGuiIO, ConfigDebugDrawListDefaultsToStrokeLegacy), "ImGuiIO.ConfigDebugDrawListDefaultsToStrokeLegacy");
+static_assert(offsetof(::ImGuiIO, BackendPlatformName) == offsetof(cimgui::ImGuiIO, BackendPlatformName), "ImGuiIO.BackendPlatformName");
+static_assert(offsetof(::ImGuiIO, BackendRendererName) == offsetof(cimgui::ImGuiIO, BackendRendererName), "ImGuiIO.BackendRendererName");
+static_assert(offsetof(::ImGuiIO, BackendPlatformUserData) == offsetof(cimgui::ImGuiIO, BackendPlatformUserData), "ImGuiIO.BackendPlatformUserData");
+static_assert(offsetof(::ImGuiIO, BackendRendererUserData) == offsetof(cimgui::ImGuiIO, BackendRendererUserData), "ImGuiIO.BackendRendererUserData");
+static_assert(offsetof(::ImGuiIO, BackendLanguageUserData) == offsetof(cimgui::ImGuiIO, BackendLanguageUserData), "ImGuiIO.BackendLanguageUserData");
+static_assert(offsetof(::ImGuiIO, WantCaptureMouse) == offsetof(cimgui::ImGuiIO, WantCaptureMouse), "ImGuiIO.WantCaptureMouse");
+static_assert(offsetof(::ImGuiIO, WantCaptureKeyboard) == offsetof(cimgui::ImGuiIO, WantCaptureKeyboard), "ImGuiIO.WantCaptureKeyboard");
+static_assert(offsetof(::ImGuiIO, WantTextInput) == offsetof(cimgui::ImGuiIO, WantTextInput), "ImGuiIO.WantTextInput");
+static_assert(offsetof(::ImGuiIO, WantSetMousePos) == offsetof(cimgui::ImGuiIO, WantSetMousePos), "ImGuiIO.WantSetMousePos");
+static_assert(offsetof(::ImGuiIO, WantSaveIniSettings) == offsetof(cimgui::ImGuiIO, WantSaveIniSettings), "ImGuiIO.WantSaveIniSettings");
+static_assert(offsetof(::ImGuiIO, NavActive) == offsetof(cimgui::ImGuiIO, NavActive), "ImGuiIO.NavActive");
+static_assert(offsetof(::ImGuiIO, NavVisible) == offsetof(cimgui::ImGuiIO, NavVisible), "ImGuiIO.NavVisible");
+static_assert(offsetof(::ImGuiIO, Framerate) == offsetof(cimgui::ImGuiIO, Framerate), "ImGuiIO.Framerate");
+static_assert(offsetof(::ImGuiIO, MetricsRenderVertices) == offsetof(cimgui::ImGuiIO, MetricsRenderVertices), "ImGuiIO.MetricsRenderVertices");
+static_assert(offsetof(::ImGuiIO, MetricsRenderIndices) == offsetof(cimgui::ImGuiIO, MetricsRenderIndices), "ImGuiIO.MetricsRenderIndices");
+static_assert(offsetof(::ImGuiIO, MetricsRenderWindows) == offsetof(cimgui::ImGuiIO, MetricsRenderWindows), "ImGuiIO.MetricsRenderWindows");
+static_assert(offsetof(::ImGuiIO, MetricsActiveWindows) == offsetof(cimgui::ImGuiIO, MetricsActiveWindows), "ImGuiIO.MetricsActiveWindows");
+static_assert(offsetof(::ImGuiIO, MouseDelta) == offsetof(cimgui::ImGuiIO, MouseDelta), "ImGuiIO.MouseDelta");
+static_assert(offsetof(::ImGuiIO, Ctx) == offsetof(cimgui::ImGuiIO, Ctx), "ImGuiIO.Ctx");
+static_assert(offsetof(::ImGuiIO, MousePos) == offsetof(cimgui::ImGuiIO, MousePos), "ImGuiIO.MousePos");
+static_assert(offsetof(::ImGuiIO, MouseDown) == offsetof(cimgui::ImGuiIO, MouseDown), "ImGuiIO.MouseDown");
+static_assert(offsetof(::ImGuiIO, MouseWheel) == offsetof(cimgui::ImGuiIO, MouseWheel), "ImGuiIO.MouseWheel");
+static_assert(offsetof(::ImGuiIO, MouseWheelH) == offsetof(cimgui::ImGuiIO, MouseWheelH), "ImGuiIO.MouseWheelH");
+static_assert(offsetof(::ImGuiIO, MouseSource) == offsetof(cimgui::ImGuiIO, MouseSource), "ImGuiIO.MouseSource");
+static_assert(offsetof(::ImGuiIO, KeyCtrl) == offsetof(cimgui::ImGuiIO, KeyCtrl), "ImGuiIO.KeyCtrl");
+static_assert(offsetof(::ImGuiIO, KeyShift) == offsetof(cimgui::ImGuiIO, KeyShift), "ImGuiIO.KeyShift");
+static_assert(offsetof(::ImGuiIO, KeyAlt) == offsetof(cimgui::ImGuiIO, KeyAlt), "ImGuiIO.KeyAlt");
+static_assert(offsetof(::ImGuiIO, KeySuper) == offsetof(cimgui::ImGuiIO, KeySuper), "ImGuiIO.KeySuper");
+static_assert(offsetof(::ImGuiIO, KeyMods) == offsetof(cimgui::ImGuiIO, KeyMods), "ImGuiIO.KeyMods");
+static_assert(offsetof(::ImGuiIO, KeysData) == offsetof(cimgui::ImGuiIO, KeysData), "ImGuiIO.KeysData");
+static_assert(offsetof(::ImGuiIO, WantCaptureMouseUnlessPopupClose) == offsetof(cimgui::ImGuiIO, WantCaptureMouseUnlessPopupClose), "ImGuiIO.WantCaptureMouseUnlessPopupClose");
+static_assert(offsetof(::ImGuiIO, MousePosPrev) == offsetof(cimgui::ImGuiIO, MousePosPrev), "ImGuiIO.MousePosPrev");
+static_assert(offsetof(::ImGuiIO, MouseClickedPos) == offsetof(cimgui::ImGuiIO, MouseClickedPos), "ImGuiIO.MouseClickedPos");
+static_assert(offsetof(::ImGuiIO, MouseClickedTime) == offsetof(cimgui::ImGuiIO, MouseClickedTime), "ImGuiIO.MouseClickedTime");
+static_assert(offsetof(::ImGuiIO, MouseClicked) == offsetof(cimgui::ImGuiIO, MouseClicked), "ImGuiIO.MouseClicked");
+static_assert(offsetof(::ImGuiIO, MouseDoubleClicked) == offsetof(cimgui::ImGuiIO, MouseDoubleClicked), "ImGuiIO.MouseDoubleClicked");
+static_assert(offsetof(::ImGuiIO, MouseClickedCount) == offsetof(cimgui::ImGuiIO, MouseClickedCount), "ImGuiIO.MouseClickedCount");
+static_assert(offsetof(::ImGuiIO, MouseClickedLastCount) == offsetof(cimgui::ImGuiIO, MouseClickedLastCount), "ImGuiIO.MouseClickedLastCount");
+static_assert(offsetof(::ImGuiIO, MouseReleased) == offsetof(cimgui::ImGuiIO, MouseReleased), "ImGuiIO.MouseReleased");
+static_assert(offsetof(::ImGuiIO, MouseReleasedTime) == offsetof(cimgui::ImGuiIO, MouseReleasedTime), "ImGuiIO.MouseReleasedTime");
+static_assert(offsetof(::ImGuiIO, MouseDownOwned) == offsetof(cimgui::ImGuiIO, MouseDownOwned), "ImGuiIO.MouseDownOwned");
+static_assert(offsetof(::ImGuiIO, MouseDownOwnedUnlessPopupClose) == offsetof(cimgui::ImGuiIO, MouseDownOwnedUnlessPopupClose), "ImGuiIO.MouseDownOwnedUnlessPopupClose");
+static_assert(offsetof(::ImGuiIO, MouseWheelRequestAxisSwap) == offsetof(cimgui::ImGuiIO, MouseWheelRequestAxisSwap), "ImGuiIO.MouseWheelRequestAxisSwap");
+static_assert(offsetof(::ImGuiIO, MouseCtrlLeftAsRightClick) == offsetof(cimgui::ImGuiIO, MouseCtrlLeftAsRightClick), "ImGuiIO.MouseCtrlLeftAsRightClick");
+static_assert(offsetof(::ImGuiIO, MouseDownDuration) == offsetof(cimgui::ImGuiIO, MouseDownDuration), "ImGuiIO.MouseDownDuration");
+static_assert(offsetof(::ImGuiIO, MouseDownDurationPrev) == offsetof(cimgui::ImGuiIO, MouseDownDurationPrev), "ImGuiIO.MouseDownDurationPrev");
+static_assert(offsetof(::ImGuiIO, MouseDragMaxDistanceSqr) == offsetof(cimgui::ImGuiIO, MouseDragMaxDistanceSqr), "ImGuiIO.MouseDragMaxDistanceSqr");
+static_assert(offsetof(::ImGuiIO, PenPressure) == offsetof(cimgui::ImGuiIO, PenPressure), "ImGuiIO.PenPressure");
+static_assert(offsetof(::ImGuiIO, AppFocusLost) == offsetof(cimgui::ImGuiIO, AppFocusLost), "ImGuiIO.AppFocusLost");
+static_assert(offsetof(::ImGuiIO, AppAcceptingEvents) == offsetof(cimgui::ImGuiIO, AppAcceptingEvents), "ImGuiIO.AppAcceptingEvents");
+static_assert(offsetof(::ImGuiIO, InputQueueSurrogate) == offsetof(cimgui::ImGuiIO, InputQueueSurrogate), "ImGuiIO.InputQueueSurrogate");
+static_assert(offsetof(::ImGuiIO, InputQueueCharacters) == offsetof(cimgui::ImGuiIO, InputQueueCharacters), "ImGuiIO.InputQueueCharacters");
+static_assert(offsetof(::ImGuiIO, FontGlobalScale) == offsetof(cimgui::ImGuiIO, FontGlobalScale), "ImGuiIO.FontGlobalScale");
+static_assert(sizeof(::ImGuiInputTextCallbackData) == sizeof(cimgui::ImGuiInputTextCallbackData), "ImGuiInputTextCallbackData size");
+static_assert(offsetof(::ImGuiInputTextCallbackData, Ctx) == offsetof(cimgui::ImGuiInputTextCallbackData, Ctx), "ImGuiInputTextCallbackData.Ctx");
+static_assert(offsetof(::ImGuiInputTextCallbackData, EventFlag) == offsetof(cimgui::ImGuiInputTextCallbackData, EventFlag), "ImGuiInputTextCallbackData.EventFlag");
+static_assert(offsetof(::ImGuiInputTextCallbackData, Flags) == offsetof(cimgui::ImGuiInputTextCallbackData, Flags), "ImGuiInputTextCallbackData.Flags");
+static_assert(offsetof(::ImGuiInputTextCallbackData, UserData) == offsetof(cimgui::ImGuiInputTextCallbackData, UserData), "ImGuiInputTextCallbackData.UserData");
+static_assert(offsetof(::ImGuiInputTextCallbackData, ID) == offsetof(cimgui::ImGuiInputTextCallbackData, ID), "ImGuiInputTextCallbackData.ID");
+static_assert(offsetof(::ImGuiInputTextCallbackData, EventKey) == offsetof(cimgui::ImGuiInputTextCallbackData, EventKey), "ImGuiInputTextCallbackData.EventKey");
+static_assert(offsetof(::ImGuiInputTextCallbackData, EventChar) == offsetof(cimgui::ImGuiInputTextCallbackData, EventChar), "ImGuiInputTextCallbackData.EventChar");
+static_assert(offsetof(::ImGuiInputTextCallbackData, EventActivated) == offsetof(cimgui::ImGuiInputTextCallbackData, EventActivated), "ImGuiInputTextCallbackData.EventActivated");
+static_assert(offsetof(::ImGuiInputTextCallbackData, BufDirty) == offsetof(cimgui::ImGuiInputTextCallbackData, BufDirty), "ImGuiInputTextCallbackData.BufDirty");
+static_assert(offsetof(::ImGuiInputTextCallbackData, Buf) == offsetof(cimgui::ImGuiInputTextCallbackData, Buf), "ImGuiInputTextCallbackData.Buf");
+static_assert(offsetof(::ImGuiInputTextCallbackData, BufTextLen) == offsetof(cimgui::ImGuiInputTextCallbackData, BufTextLen), "ImGuiInputTextCallbackData.BufTextLen");
+static_assert(offsetof(::ImGuiInputTextCallbackData, BufSize) == offsetof(cimgui::ImGuiInputTextCallbackData, BufSize), "ImGuiInputTextCallbackData.BufSize");
+static_assert(offsetof(::ImGuiInputTextCallbackData, CursorPos) == offsetof(cimgui::ImGuiInputTextCallbackData, CursorPos), "ImGuiInputTextCallbackData.CursorPos");
+static_assert(offsetof(::ImGuiInputTextCallbackData, SelectionStart) == offsetof(cimgui::ImGuiInputTextCallbackData, SelectionStart), "ImGuiInputTextCallbackData.SelectionStart");
+static_assert(offsetof(::ImGuiInputTextCallbackData, SelectionEnd) == offsetof(cimgui::ImGuiInputTextCallbackData, SelectionEnd), "ImGuiInputTextCallbackData.SelectionEnd");
+static_assert(sizeof(::ImGuiSizeCallbackData) == sizeof(cimgui::ImGuiSizeCallbackData), "ImGuiSizeCallbackData size");
+static_assert(offsetof(::ImGuiSizeCallbackData, UserData) == offsetof(cimgui::ImGuiSizeCallbackData, UserData), "ImGuiSizeCallbackData.UserData");
+static_assert(offsetof(::ImGuiSizeCallbackData, Pos) == offsetof(cimgui::ImGuiSizeCallbackData, Pos), "ImGuiSizeCallbackData.Pos");
+static_assert(offsetof(::ImGuiSizeCallbackData, CurrentSize) == offsetof(cimgui::ImGuiSizeCallbackData, CurrentSize), "ImGuiSizeCallbackData.CurrentSize");
+static_assert(offsetof(::ImGuiSizeCallbackData, DesiredSize) == offsetof(cimgui::ImGuiSizeCallbackData, DesiredSize), "ImGuiSizeCallbackData.DesiredSize");
+static_assert(sizeof(::ImGuiPayload) == sizeof(cimgui::ImGuiPayload), "ImGuiPayload size");
+static_assert(offsetof(::ImGuiPayload, Data) == offsetof(cimgui::ImGuiPayload, Data), "ImGuiPayload.Data");
+static_assert(offsetof(::ImGuiPayload, DataSize) == offsetof(cimgui::ImGuiPayload, DataSize), "ImGuiPayload.DataSize");
+static_assert(offsetof(::ImGuiPayload, SourceId) == offsetof(cimgui::ImGuiPayload, SourceId), "ImGuiPayload.SourceId");
+static_assert(offsetof(::ImGuiPayload, SourceParentId) == offsetof(cimgui::ImGuiPayload, SourceParentId), "ImGuiPayload.SourceParentId");
+static_assert(offsetof(::ImGuiPayload, DataFrameCount) == offsetof(cimgui::ImGuiPayload, DataFrameCount), "ImGuiPayload.DataFrameCount");
+static_assert(offsetof(::ImGuiPayload, DataType) == offsetof(cimgui::ImGuiPayload, DataType), "ImGuiPayload.DataType");
+static_assert(offsetof(::ImGuiPayload, Preview) == offsetof(cimgui::ImGuiPayload, Preview), "ImGuiPayload.Preview");
+static_assert(offsetof(::ImGuiPayload, Delivery) == offsetof(cimgui::ImGuiPayload, Delivery), "ImGuiPayload.Delivery");
+static_assert(sizeof(::ImGuiOnceUponAFrame) == sizeof(cimgui::ImGuiOnceUponAFrame), "ImGuiOnceUponAFrame size");
+static_assert(offsetof(::ImGuiOnceUponAFrame, RefFrame) == offsetof(cimgui::ImGuiOnceUponAFrame, RefFrame), "ImGuiOnceUponAFrame.RefFrame");
+static_assert(sizeof(::ImGuiTextFilter) == sizeof(cimgui::ImGuiTextFilter), "ImGuiTextFilter size");
+static_assert(offsetof(::ImGuiTextFilter, InputBuf) == offsetof(cimgui::ImGuiTextFilter, InputBuf), "ImGuiTextFilter.InputBuf");
+static_assert(offsetof(::ImGuiTextFilter, _CountExclude) == offsetof(cimgui::ImGuiTextFilter, _CountExclude), "ImGuiTextFilter._CountExclude");
+static_assert(offsetof(::ImGuiTextFilter, _Items) == offsetof(cimgui::ImGuiTextFilter, _Items), "ImGuiTextFilter._Items");
+static_assert(sizeof(::ImGuiTextBuffer) == sizeof(cimgui::ImGuiTextBuffer), "ImGuiTextBuffer size");
+static_assert(offsetof(::ImGuiTextBuffer, Buf) == offsetof(cimgui::ImGuiTextBuffer, Buf), "ImGuiTextBuffer.Buf");
+static_assert(sizeof(::ImGuiStoragePair) == sizeof(cimgui::ImGuiStoragePair), "ImGuiStoragePair size");
+static_assert(offsetof(::ImGuiStoragePair, key) == offsetof(cimgui::ImGuiStoragePair, key), "ImGuiStoragePair.key");
+static_assert(offsetof(::ImGuiStoragePair, val_i) == offsetof(cimgui::ImGuiStoragePair, val_i), "ImGuiStoragePair.val_i");
+static_assert(offsetof(::ImGuiStoragePair, val_f) == offsetof(cimgui::ImGuiStoragePair, val_f), "ImGuiStoragePair.val_f");
+static_assert(offsetof(::ImGuiStoragePair, val_p) == offsetof(cimgui::ImGuiStoragePair, val_p), "ImGuiStoragePair.val_p");
+static_assert(sizeof(::ImGuiStorage) == sizeof(cimgui::ImGuiStorage), "ImGuiStorage size");
+static_assert(offsetof(::ImGuiStorage, Data) == offsetof(cimgui::ImGuiStorage, Data), "ImGuiStorage.Data");
+static_assert(sizeof(::ImGuiListClipper) == sizeof(cimgui::ImGuiListClipper), "ImGuiListClipper size");
+static_assert(offsetof(::ImGuiListClipper, DisplayStart) == offsetof(cimgui::ImGuiListClipper, DisplayStart), "ImGuiListClipper.DisplayStart");
+static_assert(offsetof(::ImGuiListClipper, DisplayEnd) == offsetof(cimgui::ImGuiListClipper, DisplayEnd), "ImGuiListClipper.DisplayEnd");
+static_assert(offsetof(::ImGuiListClipper, UserIndex) == offsetof(cimgui::ImGuiListClipper, UserIndex), "ImGuiListClipper.UserIndex");
+static_assert(offsetof(::ImGuiListClipper, ItemsCount) == offsetof(cimgui::ImGuiListClipper, ItemsCount), "ImGuiListClipper.ItemsCount");
+static_assert(offsetof(::ImGuiListClipper, ItemsHeight) == offsetof(cimgui::ImGuiListClipper, ItemsHeight), "ImGuiListClipper.ItemsHeight");
+static_assert(offsetof(::ImGuiListClipper, Flags) == offsetof(cimgui::ImGuiListClipper, Flags), "ImGuiListClipper.Flags");
+static_assert(offsetof(::ImGuiListClipper, StartPosY) == offsetof(cimgui::ImGuiListClipper, StartPosY), "ImGuiListClipper.StartPosY");
+static_assert(offsetof(::ImGuiListClipper, StartSeekOffsetY) == offsetof(cimgui::ImGuiListClipper, StartSeekOffsetY), "ImGuiListClipper.StartSeekOffsetY");
+static_assert(offsetof(::ImGuiListClipper, Ctx) == offsetof(cimgui::ImGuiListClipper, Ctx), "ImGuiListClipper.Ctx");
+static_assert(offsetof(::ImGuiListClipper, TempData) == offsetof(cimgui::ImGuiListClipper, TempData), "ImGuiListClipper.TempData");
+static_assert(sizeof(::ImColor) == sizeof(cimgui::ImColor), "ImColor size");
+static_assert(offsetof(::ImColor, Value) == offsetof(cimgui::ImColor, Value), "ImColor.Value");
+static_assert(sizeof(::ImGuiMultiSelectIO) == sizeof(cimgui::ImGuiMultiSelectIO), "ImGuiMultiSelectIO size");
+static_assert(offsetof(::ImGuiMultiSelectIO, Requests) == offsetof(cimgui::ImGuiMultiSelectIO, Requests), "ImGuiMultiSelectIO.Requests");
+static_assert(offsetof(::ImGuiMultiSelectIO, RangeSrcItem) == offsetof(cimgui::ImGuiMultiSelectIO, RangeSrcItem), "ImGuiMultiSelectIO.RangeSrcItem");
+static_assert(offsetof(::ImGuiMultiSelectIO, NavIdItem) == offsetof(cimgui::ImGuiMultiSelectIO, NavIdItem), "ImGuiMultiSelectIO.NavIdItem");
+static_assert(offsetof(::ImGuiMultiSelectIO, NavIdSelected) == offsetof(cimgui::ImGuiMultiSelectIO, NavIdSelected), "ImGuiMultiSelectIO.NavIdSelected");
+static_assert(offsetof(::ImGuiMultiSelectIO, RangeSrcReset) == offsetof(cimgui::ImGuiMultiSelectIO, RangeSrcReset), "ImGuiMultiSelectIO.RangeSrcReset");
+static_assert(offsetof(::ImGuiMultiSelectIO, ItemsCount) == offsetof(cimgui::ImGuiMultiSelectIO, ItemsCount), "ImGuiMultiSelectIO.ItemsCount");
+static_assert(sizeof(::ImGuiSelectionRequest) == sizeof(cimgui::ImGuiSelectionRequest), "ImGuiSelectionRequest size");
+static_assert(offsetof(::ImGuiSelectionRequest, Type) == offsetof(cimgui::ImGuiSelectionRequest, Type), "ImGuiSelectionRequest.Type");
+static_assert(offsetof(::ImGuiSelectionRequest, Selected) == offsetof(cimgui::ImGuiSelectionRequest, Selected), "ImGuiSelectionRequest.Selected");
+static_assert(offsetof(::ImGuiSelectionRequest, RangeDirection) == offsetof(cimgui::ImGuiSelectionRequest, RangeDirection), "ImGuiSelectionRequest.RangeDirection");
+static_assert(offsetof(::ImGuiSelectionRequest, RangeFirstItem) == offsetof(cimgui::ImGuiSelectionRequest, RangeFirstItem), "ImGuiSelectionRequest.RangeFirstItem");
+static_assert(offsetof(::ImGuiSelectionRequest, RangeLastItem) == offsetof(cimgui::ImGuiSelectionRequest, RangeLastItem), "ImGuiSelectionRequest.RangeLastItem");
+static_assert(sizeof(::ImGuiSelectionBasicStorage) == sizeof(cimgui::ImGuiSelectionBasicStorage), "ImGuiSelectionBasicStorage size");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, Size) == offsetof(cimgui::ImGuiSelectionBasicStorage, Size), "ImGuiSelectionBasicStorage.Size");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, PreserveOrder) == offsetof(cimgui::ImGuiSelectionBasicStorage, PreserveOrder), "ImGuiSelectionBasicStorage.PreserveOrder");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, UserData) == offsetof(cimgui::ImGuiSelectionBasicStorage, UserData), "ImGuiSelectionBasicStorage.UserData");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, AdapterIndexToStorageId) == offsetof(cimgui::ImGuiSelectionBasicStorage, AdapterIndexToStorageId), "ImGuiSelectionBasicStorage.AdapterIndexToStorageId");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, _SelectionOrder) == offsetof(cimgui::ImGuiSelectionBasicStorage, _SelectionOrder), "ImGuiSelectionBasicStorage._SelectionOrder");
+static_assert(offsetof(::ImGuiSelectionBasicStorage, _Storage) == offsetof(cimgui::ImGuiSelectionBasicStorage, _Storage), "ImGuiSelectionBasicStorage._Storage");
+static_assert(sizeof(::ImGuiSelectionExternalStorage) == sizeof(cimgui::ImGuiSelectionExternalStorage), "ImGuiSelectionExternalStorage size");
+static_assert(offsetof(::ImGuiSelectionExternalStorage, UserData) == offsetof(cimgui::ImGuiSelectionExternalStorage, UserData), "ImGuiSelectionExternalStorage.UserData");
+static_assert(offsetof(::ImGuiSelectionExternalStorage, AdapterSetItemSelected) == offsetof(cimgui::ImGuiSelectionExternalStorage, AdapterSetItemSelected), "ImGuiSelectionExternalStorage.AdapterSetItemSelected");
+static_assert(sizeof(::ImDrawCmd) == sizeof(cimgui::ImDrawCmd), "ImDrawCmd size");
+static_assert(offsetof(::ImDrawCmd, ClipRect) == offsetof(cimgui::ImDrawCmd, ClipRect), "ImDrawCmd.ClipRect");
+static_assert(offsetof(::ImDrawCmd, TexRef) == offsetof(cimgui::ImDrawCmd, TexRef), "ImDrawCmd.TexRef");
+static_assert(offsetof(::ImDrawCmd, VtxOffset) == offsetof(cimgui::ImDrawCmd, VtxOffset), "ImDrawCmd.VtxOffset");
+static_assert(offsetof(::ImDrawCmd, IdxOffset) == offsetof(cimgui::ImDrawCmd, IdxOffset), "ImDrawCmd.IdxOffset");
+static_assert(offsetof(::ImDrawCmd, ElemCount) == offsetof(cimgui::ImDrawCmd, ElemCount), "ImDrawCmd.ElemCount");
+static_assert(offsetof(::ImDrawCmd, UserCallback) == offsetof(cimgui::ImDrawCmd, UserCallback), "ImDrawCmd.UserCallback");
+static_assert(offsetof(::ImDrawCmd, UserCallbackData) == offsetof(cimgui::ImDrawCmd, UserCallbackData), "ImDrawCmd.UserCallbackData");
+static_assert(offsetof(::ImDrawCmd, UserCallbackDataSize) == offsetof(cimgui::ImDrawCmd, UserCallbackDataSize), "ImDrawCmd.UserCallbackDataSize");
+static_assert(offsetof(::ImDrawCmd, UserCallbackDataOffset) == offsetof(cimgui::ImDrawCmd, UserCallbackDataOffset), "ImDrawCmd.UserCallbackDataOffset");
+static_assert(sizeof(::ImDrawVert) == sizeof(cimgui::ImDrawVert), "ImDrawVert size");
+static_assert(offsetof(::ImDrawVert, pos) == offsetof(cimgui::ImDrawVert, pos), "ImDrawVert.pos");
+static_assert(offsetof(::ImDrawVert, uv) == offsetof(cimgui::ImDrawVert, uv), "ImDrawVert.uv");
+static_assert(offsetof(::ImDrawVert, col) == offsetof(cimgui::ImDrawVert, col), "ImDrawVert.col");
+static_assert(sizeof(::ImDrawCmdHeader) == sizeof(cimgui::ImDrawCmdHeader), "ImDrawCmdHeader size");
+static_assert(offsetof(::ImDrawCmdHeader, ClipRect) == offsetof(cimgui::ImDrawCmdHeader, ClipRect), "ImDrawCmdHeader.ClipRect");
+static_assert(offsetof(::ImDrawCmdHeader, TexRef) == offsetof(cimgui::ImDrawCmdHeader, TexRef), "ImDrawCmdHeader.TexRef");
+static_assert(offsetof(::ImDrawCmdHeader, VtxOffset) == offsetof(cimgui::ImDrawCmdHeader, VtxOffset), "ImDrawCmdHeader.VtxOffset");
+static_assert(sizeof(::ImDrawChannel) == sizeof(cimgui::ImDrawChannel), "ImDrawChannel size");
+static_assert(offsetof(::ImDrawChannel, _CmdBuffer) == offsetof(cimgui::ImDrawChannel, _CmdBuffer), "ImDrawChannel._CmdBuffer");
+static_assert(offsetof(::ImDrawChannel, _IdxBuffer) == offsetof(cimgui::ImDrawChannel, _IdxBuffer), "ImDrawChannel._IdxBuffer");
+static_assert(sizeof(::ImDrawListSplitter) == sizeof(cimgui::ImDrawListSplitter), "ImDrawListSplitter size");
+static_assert(offsetof(::ImDrawListSplitter, _Current) == offsetof(cimgui::ImDrawListSplitter, _Current), "ImDrawListSplitter._Current");
+static_assert(offsetof(::ImDrawListSplitter, _Count) == offsetof(cimgui::ImDrawListSplitter, _Count), "ImDrawListSplitter._Count");
+static_assert(offsetof(::ImDrawListSplitter, _Channels) == offsetof(cimgui::ImDrawListSplitter, _Channels), "ImDrawListSplitter._Channels");
+static_assert(sizeof(::ImDrawList) == sizeof(cimgui::ImDrawList), "ImDrawList size");
+static_assert(offsetof(::ImDrawList, CmdBuffer) == offsetof(cimgui::ImDrawList, CmdBuffer), "ImDrawList.CmdBuffer");
+static_assert(offsetof(::ImDrawList, IdxBuffer) == offsetof(cimgui::ImDrawList, IdxBuffer), "ImDrawList.IdxBuffer");
+static_assert(offsetof(::ImDrawList, VtxBuffer) == offsetof(cimgui::ImDrawList, VtxBuffer), "ImDrawList.VtxBuffer");
+static_assert(offsetof(::ImDrawList, Flags) == offsetof(cimgui::ImDrawList, Flags), "ImDrawList.Flags");
+static_assert(offsetof(::ImDrawList, _VtxCurrentIdx) == offsetof(cimgui::ImDrawList, _VtxCurrentIdx), "ImDrawList._VtxCurrentIdx");
+static_assert(offsetof(::ImDrawList, _Data) == offsetof(cimgui::ImDrawList, _Data), "ImDrawList._Data");
+static_assert(offsetof(::ImDrawList, _VtxWritePtr) == offsetof(cimgui::ImDrawList, _VtxWritePtr), "ImDrawList._VtxWritePtr");
+static_assert(offsetof(::ImDrawList, _IdxWritePtr) == offsetof(cimgui::ImDrawList, _IdxWritePtr), "ImDrawList._IdxWritePtr");
+static_assert(offsetof(::ImDrawList, _Path) == offsetof(cimgui::ImDrawList, _Path), "ImDrawList._Path");
+static_assert(offsetof(::ImDrawList, _CmdHeader) == offsetof(cimgui::ImDrawList, _CmdHeader), "ImDrawList._CmdHeader");
+static_assert(offsetof(::ImDrawList, _Splitter) == offsetof(cimgui::ImDrawList, _Splitter), "ImDrawList._Splitter");
+static_assert(offsetof(::ImDrawList, _ClipRectStack) == offsetof(cimgui::ImDrawList, _ClipRectStack), "ImDrawList._ClipRectStack");
+static_assert(offsetof(::ImDrawList, _TextureStack) == offsetof(cimgui::ImDrawList, _TextureStack), "ImDrawList._TextureStack");
+static_assert(offsetof(::ImDrawList, _CallbacksDataBuf) == offsetof(cimgui::ImDrawList, _CallbacksDataBuf), "ImDrawList._CallbacksDataBuf");
+static_assert(offsetof(::ImDrawList, _DrawFlagsStack) == offsetof(cimgui::ImDrawList, _DrawFlagsStack), "ImDrawList._DrawFlagsStack");
+static_assert(offsetof(::ImDrawList, _FringeScale) == offsetof(cimgui::ImDrawList, _FringeScale), "ImDrawList._FringeScale");
+static_assert(offsetof(::ImDrawList, _InvFringeScale) == offsetof(cimgui::ImDrawList, _InvFringeScale), "ImDrawList._InvFringeScale");
+static_assert(offsetof(::ImDrawList, _FringeScaleIsInteger) == offsetof(cimgui::ImDrawList, _FringeScaleIsInteger), "ImDrawList._FringeScaleIsInteger");
+static_assert(offsetof(::ImDrawList, _OwnerName) == offsetof(cimgui::ImDrawList, _OwnerName), "ImDrawList._OwnerName");
+static_assert(sizeof(::ImDrawData) == sizeof(cimgui::ImDrawData), "ImDrawData size");
+static_assert(offsetof(::ImDrawData, Valid) == offsetof(cimgui::ImDrawData, Valid), "ImDrawData.Valid");
+static_assert(offsetof(::ImDrawData, FrameCount) == offsetof(cimgui::ImDrawData, FrameCount), "ImDrawData.FrameCount");
+static_assert(offsetof(::ImDrawData, TotalIdxCount) == offsetof(cimgui::ImDrawData, TotalIdxCount), "ImDrawData.TotalIdxCount");
+static_assert(offsetof(::ImDrawData, TotalVtxCount) == offsetof(cimgui::ImDrawData, TotalVtxCount), "ImDrawData.TotalVtxCount");
+static_assert(offsetof(::ImDrawData, CmdLists) == offsetof(cimgui::ImDrawData, CmdLists), "ImDrawData.CmdLists");
+static_assert(offsetof(::ImDrawData, DisplayPos) == offsetof(cimgui::ImDrawData, DisplayPos), "ImDrawData.DisplayPos");
+static_assert(offsetof(::ImDrawData, DisplaySize) == offsetof(cimgui::ImDrawData, DisplaySize), "ImDrawData.DisplaySize");
+static_assert(offsetof(::ImDrawData, FramebufferScale) == offsetof(cimgui::ImDrawData, FramebufferScale), "ImDrawData.FramebufferScale");
+static_assert(offsetof(::ImDrawData, OwnerViewport) == offsetof(cimgui::ImDrawData, OwnerViewport), "ImDrawData.OwnerViewport");
+static_assert(offsetof(::ImDrawData, Textures) == offsetof(cimgui::ImDrawData, Textures), "ImDrawData.Textures");
+static_assert(offsetof(::ImDrawData, CmdListsCount) == offsetof(cimgui::ImDrawData, CmdListsCount), "ImDrawData.CmdListsCount");
+static_assert(sizeof(::ImTextureRect) == sizeof(cimgui::ImTextureRect), "ImTextureRect size");
+static_assert(offsetof(::ImTextureRect, x) == offsetof(cimgui::ImTextureRect, x), "ImTextureRect.x");
+static_assert(offsetof(::ImTextureRect, y) == offsetof(cimgui::ImTextureRect, y), "ImTextureRect.y");
+static_assert(offsetof(::ImTextureRect, w) == offsetof(cimgui::ImTextureRect, w), "ImTextureRect.w");
+static_assert(offsetof(::ImTextureRect, h) == offsetof(cimgui::ImTextureRect, h), "ImTextureRect.h");
+static_assert(sizeof(::ImTextureData) == sizeof(cimgui::ImTextureData), "ImTextureData size");
+static_assert(offsetof(::ImTextureData, UniqueID) == offsetof(cimgui::ImTextureData, UniqueID), "ImTextureData.UniqueID");
+static_assert(offsetof(::ImTextureData, Status) == offsetof(cimgui::ImTextureData, Status), "ImTextureData.Status");
+static_assert(offsetof(::ImTextureData, BackendUserData) == offsetof(cimgui::ImTextureData, BackendUserData), "ImTextureData.BackendUserData");
+static_assert(offsetof(::ImTextureData, QueueUserData) == offsetof(cimgui::ImTextureData, QueueUserData), "ImTextureData.QueueUserData");
+static_assert(offsetof(::ImTextureData, TexID) == offsetof(cimgui::ImTextureData, TexID), "ImTextureData.TexID");
+static_assert(offsetof(::ImTextureData, Format) == offsetof(cimgui::ImTextureData, Format), "ImTextureData.Format");
+static_assert(offsetof(::ImTextureData, Width) == offsetof(cimgui::ImTextureData, Width), "ImTextureData.Width");
+static_assert(offsetof(::ImTextureData, Height) == offsetof(cimgui::ImTextureData, Height), "ImTextureData.Height");
+static_assert(offsetof(::ImTextureData, BytesPerPixel) == offsetof(cimgui::ImTextureData, BytesPerPixel), "ImTextureData.BytesPerPixel");
+static_assert(offsetof(::ImTextureData, Pixels) == offsetof(cimgui::ImTextureData, Pixels), "ImTextureData.Pixels");
+static_assert(offsetof(::ImTextureData, UsedRect) == offsetof(cimgui::ImTextureData, UsedRect), "ImTextureData.UsedRect");
+static_assert(offsetof(::ImTextureData, UpdateRect) == offsetof(cimgui::ImTextureData, UpdateRect), "ImTextureData.UpdateRect");
+static_assert(offsetof(::ImTextureData, Updates) == offsetof(cimgui::ImTextureData, Updates), "ImTextureData.Updates");
+static_assert(offsetof(::ImTextureData, UnusedFrames) == offsetof(cimgui::ImTextureData, UnusedFrames), "ImTextureData.UnusedFrames");
+static_assert(offsetof(::ImTextureData, RefCount) == offsetof(cimgui::ImTextureData, RefCount), "ImTextureData.RefCount");
+static_assert(offsetof(::ImTextureData, UseColors) == offsetof(cimgui::ImTextureData, UseColors), "ImTextureData.UseColors");
+static_assert(offsetof(::ImTextureData, WantDestroyNextFrame) == offsetof(cimgui::ImTextureData, WantDestroyNextFrame), "ImTextureData.WantDestroyNextFrame");
+static_assert(sizeof(::ImFontConfig) == sizeof(cimgui::ImFontConfig), "ImFontConfig size");
+static_assert(offsetof(::ImFontConfig, Name) == offsetof(cimgui::ImFontConfig, Name), "ImFontConfig.Name");
+static_assert(offsetof(::ImFontConfig, FontData) == offsetof(cimgui::ImFontConfig, FontData), "ImFontConfig.FontData");
+static_assert(offsetof(::ImFontConfig, FontDataSize) == offsetof(cimgui::ImFontConfig, FontDataSize), "ImFontConfig.FontDataSize");
+static_assert(offsetof(::ImFontConfig, FontDataOwnedByAtlas) == offsetof(cimgui::ImFontConfig, FontDataOwnedByAtlas), "ImFontConfig.FontDataOwnedByAtlas");
+static_assert(offsetof(::ImFontConfig, MergeMode) == offsetof(cimgui::ImFontConfig, MergeMode), "ImFontConfig.MergeMode");
+static_assert(offsetof(::ImFontConfig, PixelSnapH) == offsetof(cimgui::ImFontConfig, PixelSnapH), "ImFontConfig.PixelSnapH");
+static_assert(offsetof(::ImFontConfig, OversampleH) == offsetof(cimgui::ImFontConfig, OversampleH), "ImFontConfig.OversampleH");
+static_assert(offsetof(::ImFontConfig, OversampleV) == offsetof(cimgui::ImFontConfig, OversampleV), "ImFontConfig.OversampleV");
+static_assert(offsetof(::ImFontConfig, EllipsisChar) == offsetof(cimgui::ImFontConfig, EllipsisChar), "ImFontConfig.EllipsisChar");
+static_assert(offsetof(::ImFontConfig, SizePixels) == offsetof(cimgui::ImFontConfig, SizePixels), "ImFontConfig.SizePixels");
+static_assert(offsetof(::ImFontConfig, GlyphRanges) == offsetof(cimgui::ImFontConfig, GlyphRanges), "ImFontConfig.GlyphRanges");
+static_assert(offsetof(::ImFontConfig, GlyphExcludeRanges) == offsetof(cimgui::ImFontConfig, GlyphExcludeRanges), "ImFontConfig.GlyphExcludeRanges");
+static_assert(offsetof(::ImFontConfig, GlyphOffset) == offsetof(cimgui::ImFontConfig, GlyphOffset), "ImFontConfig.GlyphOffset");
+static_assert(offsetof(::ImFontConfig, GlyphMinAdvanceX) == offsetof(cimgui::ImFontConfig, GlyphMinAdvanceX), "ImFontConfig.GlyphMinAdvanceX");
+static_assert(offsetof(::ImFontConfig, GlyphMaxAdvanceX) == offsetof(cimgui::ImFontConfig, GlyphMaxAdvanceX), "ImFontConfig.GlyphMaxAdvanceX");
+static_assert(offsetof(::ImFontConfig, GlyphExtraAdvanceX) == offsetof(cimgui::ImFontConfig, GlyphExtraAdvanceX), "ImFontConfig.GlyphExtraAdvanceX");
+static_assert(offsetof(::ImFontConfig, FontNo) == offsetof(cimgui::ImFontConfig, FontNo), "ImFontConfig.FontNo");
+static_assert(offsetof(::ImFontConfig, FontLoaderFlags) == offsetof(cimgui::ImFontConfig, FontLoaderFlags), "ImFontConfig.FontLoaderFlags");
+static_assert(offsetof(::ImFontConfig, RasterizerMultiply) == offsetof(cimgui::ImFontConfig, RasterizerMultiply), "ImFontConfig.RasterizerMultiply");
+static_assert(offsetof(::ImFontConfig, RasterizerDensity) == offsetof(cimgui::ImFontConfig, RasterizerDensity), "ImFontConfig.RasterizerDensity");
+static_assert(offsetof(::ImFontConfig, ExtraSizeScale) == offsetof(cimgui::ImFontConfig, ExtraSizeScale), "ImFontConfig.ExtraSizeScale");
+static_assert(offsetof(::ImFontConfig, Flags) == offsetof(cimgui::ImFontConfig, Flags), "ImFontConfig.Flags");
+static_assert(offsetof(::ImFontConfig, DstFont) == offsetof(cimgui::ImFontConfig, DstFont), "ImFontConfig.DstFont");
+static_assert(offsetof(::ImFontConfig, FontLoader) == offsetof(cimgui::ImFontConfig, FontLoader), "ImFontConfig.FontLoader");
+static_assert(offsetof(::ImFontConfig, FontLoaderData) == offsetof(cimgui::ImFontConfig, FontLoaderData), "ImFontConfig.FontLoaderData");
+static_assert(offsetof(::ImFontConfig, PixelSnapV) == offsetof(cimgui::ImFontConfig, PixelSnapV), "ImFontConfig.PixelSnapV");
+static_assert(sizeof(::ImFontGlyph) == sizeof(cimgui::ImFontGlyph), "ImFontGlyph size");
+static_assert(offsetof(::ImFontGlyph, AdvanceX) == offsetof(cimgui::ImFontGlyph, AdvanceX), "ImFontGlyph.AdvanceX");
+static_assert(offsetof(::ImFontGlyph, X0) == offsetof(cimgui::ImFontGlyph, X0), "ImFontGlyph.X0");
+static_assert(offsetof(::ImFontGlyph, Y0) == offsetof(cimgui::ImFontGlyph, Y0), "ImFontGlyph.Y0");
+static_assert(offsetof(::ImFontGlyph, X1) == offsetof(cimgui::ImFontGlyph, X1), "ImFontGlyph.X1");
+static_assert(offsetof(::ImFontGlyph, Y1) == offsetof(cimgui::ImFontGlyph, Y1), "ImFontGlyph.Y1");
+static_assert(offsetof(::ImFontGlyph, U0) == offsetof(cimgui::ImFontGlyph, U0), "ImFontGlyph.U0");
+static_assert(offsetof(::ImFontGlyph, V0) == offsetof(cimgui::ImFontGlyph, V0), "ImFontGlyph.V0");
+static_assert(offsetof(::ImFontGlyph, U1) == offsetof(cimgui::ImFontGlyph, U1), "ImFontGlyph.U1");
+static_assert(offsetof(::ImFontGlyph, V1) == offsetof(cimgui::ImFontGlyph, V1), "ImFontGlyph.V1");
+static_assert(offsetof(::ImFontGlyph, PackId) == offsetof(cimgui::ImFontGlyph, PackId), "ImFontGlyph.PackId");
+static_assert(sizeof(::ImFontGlyphRangesBuilder) == sizeof(cimgui::ImFontGlyphRangesBuilder), "ImFontGlyphRangesBuilder size");
+static_assert(offsetof(::ImFontGlyphRangesBuilder, UsedChars) == offsetof(cimgui::ImFontGlyphRangesBuilder, UsedChars), "ImFontGlyphRangesBuilder.UsedChars");
+static_assert(sizeof(::ImFontAtlasRect) == sizeof(cimgui::ImFontAtlasRect), "ImFontAtlasRect size");
+static_assert(offsetof(::ImFontAtlasRect, x) == offsetof(cimgui::ImFontAtlasRect, x), "ImFontAtlasRect.x");
+static_assert(offsetof(::ImFontAtlasRect, y) == offsetof(cimgui::ImFontAtlasRect, y), "ImFontAtlasRect.y");
+static_assert(offsetof(::ImFontAtlasRect, w) == offsetof(cimgui::ImFontAtlasRect, w), "ImFontAtlasRect.w");
+static_assert(offsetof(::ImFontAtlasRect, h) == offsetof(cimgui::ImFontAtlasRect, h), "ImFontAtlasRect.h");
+static_assert(offsetof(::ImFontAtlasRect, uv0) == offsetof(cimgui::ImFontAtlasRect, uv0), "ImFontAtlasRect.uv0");
+static_assert(offsetof(::ImFontAtlasRect, uv1) == offsetof(cimgui::ImFontAtlasRect, uv1), "ImFontAtlasRect.uv1");
+static_assert(sizeof(::ImFontAtlas) == sizeof(cimgui::ImFontAtlas), "ImFontAtlas size");
+static_assert(offsetof(::ImFontAtlas, Flags) == offsetof(cimgui::ImFontAtlas, Flags), "ImFontAtlas.Flags");
+static_assert(offsetof(::ImFontAtlas, TexDesiredFormat) == offsetof(cimgui::ImFontAtlas, TexDesiredFormat), "ImFontAtlas.TexDesiredFormat");
+static_assert(offsetof(::ImFontAtlas, TexGlyphPadding) == offsetof(cimgui::ImFontAtlas, TexGlyphPadding), "ImFontAtlas.TexGlyphPadding");
+static_assert(offsetof(::ImFontAtlas, TexMinWidth) == offsetof(cimgui::ImFontAtlas, TexMinWidth), "ImFontAtlas.TexMinWidth");
+static_assert(offsetof(::ImFontAtlas, TexMinHeight) == offsetof(cimgui::ImFontAtlas, TexMinHeight), "ImFontAtlas.TexMinHeight");
+static_assert(offsetof(::ImFontAtlas, TexMaxWidth) == offsetof(cimgui::ImFontAtlas, TexMaxWidth), "ImFontAtlas.TexMaxWidth");
+static_assert(offsetof(::ImFontAtlas, TexMaxHeight) == offsetof(cimgui::ImFontAtlas, TexMaxHeight), "ImFontAtlas.TexMaxHeight");
+static_assert(offsetof(::ImFontAtlas, UserData) == offsetof(cimgui::ImFontAtlas, UserData), "ImFontAtlas.UserData");
+static_assert(offsetof(::ImFontAtlas, TexRef) == offsetof(cimgui::ImFontAtlas, TexRef), "ImFontAtlas.TexRef");
+static_assert(offsetof(::ImFontAtlas, TexID) == offsetof(cimgui::ImFontAtlas, TexID), "ImFontAtlas.TexID");
+static_assert(offsetof(::ImFontAtlas, TexData) == offsetof(cimgui::ImFontAtlas, TexData), "ImFontAtlas.TexData");
+static_assert(offsetof(::ImFontAtlas, TexList) == offsetof(cimgui::ImFontAtlas, TexList), "ImFontAtlas.TexList");
+static_assert(offsetof(::ImFontAtlas, Locked) == offsetof(cimgui::ImFontAtlas, Locked), "ImFontAtlas.Locked");
+static_assert(offsetof(::ImFontAtlas, RendererHasTextures) == offsetof(cimgui::ImFontAtlas, RendererHasTextures), "ImFontAtlas.RendererHasTextures");
+static_assert(offsetof(::ImFontAtlas, TexIsBuilt) == offsetof(cimgui::ImFontAtlas, TexIsBuilt), "ImFontAtlas.TexIsBuilt");
+static_assert(offsetof(::ImFontAtlas, TexPixelsUseColors) == offsetof(cimgui::ImFontAtlas, TexPixelsUseColors), "ImFontAtlas.TexPixelsUseColors");
+static_assert(offsetof(::ImFontAtlas, TexUvScale) == offsetof(cimgui::ImFontAtlas, TexUvScale), "ImFontAtlas.TexUvScale");
+static_assert(offsetof(::ImFontAtlas, TexUvWhitePixel) == offsetof(cimgui::ImFontAtlas, TexUvWhitePixel), "ImFontAtlas.TexUvWhitePixel");
+static_assert(offsetof(::ImFontAtlas, Fonts) == offsetof(cimgui::ImFontAtlas, Fonts), "ImFontAtlas.Fonts");
+static_assert(offsetof(::ImFontAtlas, Sources) == offsetof(cimgui::ImFontAtlas, Sources), "ImFontAtlas.Sources");
+static_assert(offsetof(::ImFontAtlas, TexNextUniqueID) == offsetof(cimgui::ImFontAtlas, TexNextUniqueID), "ImFontAtlas.TexNextUniqueID");
+static_assert(offsetof(::ImFontAtlas, FontNextUniqueID) == offsetof(cimgui::ImFontAtlas, FontNextUniqueID), "ImFontAtlas.FontNextUniqueID");
+static_assert(offsetof(::ImFontAtlas, DrawListSharedDatas) == offsetof(cimgui::ImFontAtlas, DrawListSharedDatas), "ImFontAtlas.DrawListSharedDatas");
+static_assert(offsetof(::ImFontAtlas, Builder) == offsetof(cimgui::ImFontAtlas, Builder), "ImFontAtlas.Builder");
+static_assert(offsetof(::ImFontAtlas, FontLoader) == offsetof(cimgui::ImFontAtlas, FontLoader), "ImFontAtlas.FontLoader");
+static_assert(offsetof(::ImFontAtlas, FontLoaderName) == offsetof(cimgui::ImFontAtlas, FontLoaderName), "ImFontAtlas.FontLoaderName");
+static_assert(offsetof(::ImFontAtlas, FontLoaderData) == offsetof(cimgui::ImFontAtlas, FontLoaderData), "ImFontAtlas.FontLoaderData");
+static_assert(offsetof(::ImFontAtlas, FontLoaderFlags) == offsetof(cimgui::ImFontAtlas, FontLoaderFlags), "ImFontAtlas.FontLoaderFlags");
+static_assert(offsetof(::ImFontAtlas, RefCount) == offsetof(cimgui::ImFontAtlas, RefCount), "ImFontAtlas.RefCount");
+static_assert(offsetof(::ImFontAtlas, OwnerContext) == offsetof(cimgui::ImFontAtlas, OwnerContext), "ImFontAtlas.OwnerContext");
+static_assert(offsetof(::ImFontAtlas, TempRect) == offsetof(cimgui::ImFontAtlas, TempRect), "ImFontAtlas.TempRect");
+static_assert(sizeof(::ImFontBaked) == sizeof(cimgui::ImFontBaked), "ImFontBaked size");
+static_assert(offsetof(::ImFontBaked, IndexAdvanceX) == offsetof(cimgui::ImFontBaked, IndexAdvanceX), "ImFontBaked.IndexAdvanceX");
+static_assert(offsetof(::ImFontBaked, FallbackAdvanceX) == offsetof(cimgui::ImFontBaked, FallbackAdvanceX), "ImFontBaked.FallbackAdvanceX");
+static_assert(offsetof(::ImFontBaked, Size) == offsetof(cimgui::ImFontBaked, Size), "ImFontBaked.Size");
+static_assert(offsetof(::ImFontBaked, RasterizerDensity) == offsetof(cimgui::ImFontBaked, RasterizerDensity), "ImFontBaked.RasterizerDensity");
+static_assert(offsetof(::ImFontBaked, IndexLookup) == offsetof(cimgui::ImFontBaked, IndexLookup), "ImFontBaked.IndexLookup");
+static_assert(offsetof(::ImFontBaked, Glyphs) == offsetof(cimgui::ImFontBaked, Glyphs), "ImFontBaked.Glyphs");
+static_assert(offsetof(::ImFontBaked, FallbackGlyphIndex) == offsetof(cimgui::ImFontBaked, FallbackGlyphIndex), "ImFontBaked.FallbackGlyphIndex");
+static_assert(offsetof(::ImFontBaked, Ascent) == offsetof(cimgui::ImFontBaked, Ascent), "ImFontBaked.Ascent");
+static_assert(offsetof(::ImFontBaked, Descent) == offsetof(cimgui::ImFontBaked, Descent), "ImFontBaked.Descent");
+static_assert(offsetof(::ImFontBaked, LastUsedFrame) == offsetof(cimgui::ImFontBaked, LastUsedFrame), "ImFontBaked.LastUsedFrame");
+static_assert(offsetof(::ImFontBaked, BakedId) == offsetof(cimgui::ImFontBaked, BakedId), "ImFontBaked.BakedId");
+static_assert(offsetof(::ImFontBaked, OwnerFont) == offsetof(cimgui::ImFontBaked, OwnerFont), "ImFontBaked.OwnerFont");
+static_assert(offsetof(::ImFontBaked, FontLoaderDatas) == offsetof(cimgui::ImFontBaked, FontLoaderDatas), "ImFontBaked.FontLoaderDatas");
+static_assert(sizeof(::ImFont) == sizeof(cimgui::ImFont), "ImFont size");
+static_assert(offsetof(::ImFont, LastBaked) == offsetof(cimgui::ImFont, LastBaked), "ImFont.LastBaked");
+static_assert(offsetof(::ImFont, OwnerAtlas) == offsetof(cimgui::ImFont, OwnerAtlas), "ImFont.OwnerAtlas");
+static_assert(offsetof(::ImFont, Flags) == offsetof(cimgui::ImFont, Flags), "ImFont.Flags");
+static_assert(offsetof(::ImFont, CurrentRasterizerDensity) == offsetof(cimgui::ImFont, CurrentRasterizerDensity), "ImFont.CurrentRasterizerDensity");
+static_assert(offsetof(::ImFont, FontId) == offsetof(cimgui::ImFont, FontId), "ImFont.FontId");
+static_assert(offsetof(::ImFont, LegacySize) == offsetof(cimgui::ImFont, LegacySize), "ImFont.LegacySize");
+static_assert(offsetof(::ImFont, Sources) == offsetof(cimgui::ImFont, Sources), "ImFont.Sources");
+static_assert(offsetof(::ImFont, EllipsisChar) == offsetof(cimgui::ImFont, EllipsisChar), "ImFont.EllipsisChar");
+static_assert(offsetof(::ImFont, FallbackChar) == offsetof(cimgui::ImFont, FallbackChar), "ImFont.FallbackChar");
+static_assert(offsetof(::ImFont, Used8kPagesMap) == offsetof(cimgui::ImFont, Used8kPagesMap), "ImFont.Used8kPagesMap");
+static_assert(offsetof(::ImFont, EllipsisAutoBake) == offsetof(cimgui::ImFont, EllipsisAutoBake), "ImFont.EllipsisAutoBake");
+static_assert(offsetof(::ImFont, RemapPairs) == offsetof(cimgui::ImFont, RemapPairs), "ImFont.RemapPairs");
+static_assert(offsetof(::ImFont, Scale) == offsetof(cimgui::ImFont, Scale), "ImFont.Scale");
+static_assert(sizeof(::ImGuiViewport) == sizeof(cimgui::ImGuiViewport), "ImGuiViewport size");
+static_assert(offsetof(::ImGuiViewport, ID) == offsetof(cimgui::ImGuiViewport, ID), "ImGuiViewport.ID");
+static_assert(offsetof(::ImGuiViewport, Flags) == offsetof(cimgui::ImGuiViewport, Flags), "ImGuiViewport.Flags");
+static_assert(offsetof(::ImGuiViewport, Pos) == offsetof(cimgui::ImGuiViewport, Pos), "ImGuiViewport.Pos");
+static_assert(offsetof(::ImGuiViewport, Size) == offsetof(cimgui::ImGuiViewport, Size), "ImGuiViewport.Size");
+static_assert(offsetof(::ImGuiViewport, FramebufferScale) == offsetof(cimgui::ImGuiViewport, FramebufferScale), "ImGuiViewport.FramebufferScale");
+static_assert(offsetof(::ImGuiViewport, WorkPos) == offsetof(cimgui::ImGuiViewport, WorkPos), "ImGuiViewport.WorkPos");
+static_assert(offsetof(::ImGuiViewport, WorkSize) == offsetof(cimgui::ImGuiViewport, WorkSize), "ImGuiViewport.WorkSize");
+static_assert(offsetof(::ImGuiViewport, PlatformHandle) == offsetof(cimgui::ImGuiViewport, PlatformHandle), "ImGuiViewport.PlatformHandle");
+static_assert(offsetof(::ImGuiViewport, PlatformHandleRaw) == offsetof(cimgui::ImGuiViewport, PlatformHandleRaw), "ImGuiViewport.PlatformHandleRaw");
+static_assert(sizeof(::ImGuiPlatformIO) == sizeof(cimgui::ImGuiPlatformIO), "ImGuiPlatformIO size");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_GetClipboardTextFn) == offsetof(cimgui::ImGuiPlatformIO, Platform_GetClipboardTextFn), "ImGuiPlatformIO.Platform_GetClipboardTextFn");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_SetClipboardTextFn) == offsetof(cimgui::ImGuiPlatformIO, Platform_SetClipboardTextFn), "ImGuiPlatformIO.Platform_SetClipboardTextFn");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_ClipboardUserData) == offsetof(cimgui::ImGuiPlatformIO, Platform_ClipboardUserData), "ImGuiPlatformIO.Platform_ClipboardUserData");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_OpenInShellFn) == offsetof(cimgui::ImGuiPlatformIO, Platform_OpenInShellFn), "ImGuiPlatformIO.Platform_OpenInShellFn");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_OpenInShellUserData) == offsetof(cimgui::ImGuiPlatformIO, Platform_OpenInShellUserData), "ImGuiPlatformIO.Platform_OpenInShellUserData");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_SetImeDataFn) == offsetof(cimgui::ImGuiPlatformIO, Platform_SetImeDataFn), "ImGuiPlatformIO.Platform_SetImeDataFn");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_ImeUserData) == offsetof(cimgui::ImGuiPlatformIO, Platform_ImeUserData), "ImGuiPlatformIO.Platform_ImeUserData");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_LocaleDecimalPoint) == offsetof(cimgui::ImGuiPlatformIO, Platform_LocaleDecimalPoint), "ImGuiPlatformIO.Platform_LocaleDecimalPoint");
+static_assert(offsetof(::ImGuiPlatformIO, Platform_SessionDate) == offsetof(cimgui::ImGuiPlatformIO, Platform_SessionDate), "ImGuiPlatformIO.Platform_SessionDate");
+static_assert(offsetof(::ImGuiPlatformIO, Renderer_TextureMaxWidth) == offsetof(cimgui::ImGuiPlatformIO, Renderer_TextureMaxWidth), "ImGuiPlatformIO.Renderer_TextureMaxWidth");
+static_assert(offsetof(::ImGuiPlatformIO, Renderer_TextureMaxHeight) == offsetof(cimgui::ImGuiPlatformIO, Renderer_TextureMaxHeight), "ImGuiPlatformIO.Renderer_TextureMaxHeight");
+static_assert(offsetof(::ImGuiPlatformIO, Renderer_RenderState) == offsetof(cimgui::ImGuiPlatformIO, Renderer_RenderState), "ImGuiPlatformIO.Renderer_RenderState");
+static_assert(offsetof(::ImGuiPlatformIO, DrawCallback_ResetRenderState) == offsetof(cimgui::ImGuiPlatformIO, DrawCallback_ResetRenderState), "ImGuiPlatformIO.DrawCallback_ResetRenderState");
+static_assert(offsetof(::ImGuiPlatformIO, DrawCallback_SetSamplerLinear) == offsetof(cimgui::ImGuiPlatformIO, DrawCallback_SetSamplerLinear), "ImGuiPlatformIO.DrawCallback_SetSamplerLinear");
+static_assert(offsetof(::ImGuiPlatformIO, DrawCallback_SetSamplerNearest) == offsetof(cimgui::ImGuiPlatformIO, DrawCallback_SetSamplerNearest), "ImGuiPlatformIO.DrawCallback_SetSamplerNearest");
+static_assert(offsetof(::ImGuiPlatformIO, DrawCallback_SetSamplerFromTex) == offsetof(cimgui::ImGuiPlatformIO, DrawCallback_SetSamplerFromTex), "ImGuiPlatformIO.DrawCallback_SetSamplerFromTex");
+static_assert(offsetof(::ImGuiPlatformIO, Textures) == offsetof(cimgui::ImGuiPlatformIO, Textures), "ImGuiPlatformIO.Textures");
+static_assert(sizeof(::ImGuiPlatformImeData) == sizeof(cimgui::ImGuiPlatformImeData), "ImGuiPlatformImeData size");
+static_assert(offsetof(::ImGuiPlatformImeData, WantVisible) == offsetof(cimgui::ImGuiPlatformImeData, WantVisible), "ImGuiPlatformImeData.WantVisible");
+static_assert(offsetof(::ImGuiPlatformImeData, WantTextInput) == offsetof(cimgui::ImGuiPlatformImeData, WantTextInput), "ImGuiPlatformImeData.WantTextInput");
+static_assert(offsetof(::ImGuiPlatformImeData, InputPos) == offsetof(cimgui::ImGuiPlatformImeData, InputPos), "ImGuiPlatformImeData.InputPos");
+static_assert(offsetof(::ImGuiPlatformImeData, InputLineHeight) == offsetof(cimgui::ImGuiPlatformImeData, InputLineHeight), "ImGuiPlatformImeData.InputLineHeight");
+static_assert(offsetof(::ImGuiPlatformImeData, ViewportId) == offsetof(cimgui::ImGuiPlatformImeData, ViewportId), "ImGuiPlatformImeData.ViewportId");
+
+namespace cimgui {
+extern "C" {
+
+CIMGUI_API ImGuiContext* ImGui_CreateContext(void)
+{
+ return reinterpret_cast<cimgui::ImGuiContext*>(ImGui::CreateContext());
+}
+CIMGUI_API ImGuiContext* ImGui_CreateContextEx(ImFontAtlas* shared_font_atlas)
+{
+ return reinterpret_cast<cimgui::ImGuiContext*>(ImGui::CreateContext(reinterpret_cast<::ImFontAtlas*>(shared_font_atlas)));
+}
+CIMGUI_API void ImGui_DestroyContext(void)
+{
+ ImGui::DestroyContext();
+}
+CIMGUI_API void ImGui_DestroyContextEx(ImGuiContext* ctx)
+{
+ ImGui::DestroyContext(reinterpret_cast<::ImGuiContext*>(ctx));
+}
+CIMGUI_API ImGuiContext* ImGui_GetCurrentContext(void)
+{
+ return reinterpret_cast<cimgui::ImGuiContext*>(ImGui::GetCurrentContext());
+}
+CIMGUI_API void ImGui_SetCurrentContext(ImGuiContext* ctx)
+{
+ ImGui::SetCurrentContext(reinterpret_cast<::ImGuiContext*>(ctx));
+}
+CIMGUI_API ImGuiIO* ImGui_GetIO(void)
+{
+ return reinterpret_cast<cimgui::ImGuiIO*>(&ImGui::GetIO());
+}
+CIMGUI_API ImGuiPlatformIO* ImGui_GetPlatformIO(void)
+{
+ return reinterpret_cast<cimgui::ImGuiPlatformIO*>(&ImGui::GetPlatformIO());
+}
+CIMGUI_API ImGuiStyle* ImGui_GetStyle(void)
+{
+ return reinterpret_cast<cimgui::ImGuiStyle*>(&ImGui::GetStyle());
+}
+CIMGUI_API void ImGui_NewFrame(void)
+{
+ ImGui::NewFrame();
+}
+CIMGUI_API void ImGui_EndFrame(void)
+{
+ ImGui::EndFrame();
+}
+CIMGUI_API void ImGui_Render(void)
+{
+ ImGui::Render();
+}
+CIMGUI_API ImDrawData* ImGui_GetDrawData(void)
+{
+ return reinterpret_cast<cimgui::ImDrawData*>(ImGui::GetDrawData());
+}
+CIMGUI_API void ImGui_ShowDemoWindow(void)
+{
+ ImGui::ShowDemoWindow();
+}
+CIMGUI_API void ImGui_ShowDemoWindowEx(bool* p_open)
+{
+ ImGui::ShowDemoWindow(p_open);
+}
+CIMGUI_API void ImGui_ShowMetricsWindow(void)
+{
+ ImGui::ShowMetricsWindow();
+}
+CIMGUI_API void ImGui_ShowMetricsWindowEx(bool* p_open)
+{
+ ImGui::ShowMetricsWindow(p_open);
+}
+CIMGUI_API void ImGui_ShowDebugLogWindow(void)
+{
+ ImGui::ShowDebugLogWindow();
+}
+CIMGUI_API void ImGui_ShowDebugLogWindowEx(bool* p_open)
+{
+ ImGui::ShowDebugLogWindow(p_open);
+}
+CIMGUI_API void ImGui_ShowIDStackToolWindow(void)
+{
+ ImGui::ShowIDStackToolWindow();
+}
+CIMGUI_API void ImGui_ShowIDStackToolWindowEx(bool* p_open)
+{
+ ImGui::ShowIDStackToolWindow(p_open);
+}
+CIMGUI_API void ImGui_ShowAboutWindow(void)
+{
+ ImGui::ShowAboutWindow();
+}
+CIMGUI_API void ImGui_ShowAboutWindowEx(bool* p_open)
+{
+ ImGui::ShowAboutWindow(p_open);
+}
+CIMGUI_API void ImGui_ShowStyleEditor(void)
+{
+ ImGui::ShowStyleEditor();
+}
+CIMGUI_API void ImGui_ShowStyleEditorEx(ImGuiStyle* ref)
+{
+ ImGui::ShowStyleEditor(reinterpret_cast<::ImGuiStyle*>(ref));
+}
+CIMGUI_API bool ImGui_ShowStyleSelector(const char* label)
+{
+ return ImGui::ShowStyleSelector(label);
+}
+CIMGUI_API void ImGui_ShowFontSelector(const char* label)
+{
+ ImGui::ShowFontSelector(label);
+}
+CIMGUI_API void ImGui_ShowUserGuide(void)
+{
+ ImGui::ShowUserGuide();
+}
+CIMGUI_API const char* ImGui_GetVersion(void)
+{
+ return ImGui::GetVersion();
+}
+CIMGUI_API void ImGui_StyleColorsDark(void)
+{
+ ImGui::StyleColorsDark();
+}
+CIMGUI_API void ImGui_StyleColorsDarkEx(ImGuiStyle* dst)
+{
+ ImGui::StyleColorsDark(reinterpret_cast<::ImGuiStyle*>(dst));
+}
+CIMGUI_API void ImGui_StyleColorsLight(void)
+{
+ ImGui::StyleColorsLight();
+}
+CIMGUI_API void ImGui_StyleColorsLightEx(ImGuiStyle* dst)
+{
+ ImGui::StyleColorsLight(reinterpret_cast<::ImGuiStyle*>(dst));
+}
+CIMGUI_API void ImGui_StyleColorsClassic(void)
+{
+ ImGui::StyleColorsClassic();
+}
+CIMGUI_API void ImGui_StyleColorsClassicEx(ImGuiStyle* dst)
+{
+ ImGui::StyleColorsClassic(reinterpret_cast<::ImGuiStyle*>(dst));
+}
+CIMGUI_API bool ImGui_Begin(const char* name)
+{
+ return ImGui::Begin(name);
+}
+CIMGUI_API bool ImGui_BeginEx(const char* name, bool* p_open, ImGuiWindowFlags flags)
+{
+ return ImGui::Begin(name, p_open, flags);
+}
+CIMGUI_API void ImGui_End(void)
+{
+ ImGui::End();
+}
+CIMGUI_API bool ImGui_BeginChild(const char* str_id)
+{
+ return ImGui::BeginChild(str_id);
+}
+CIMGUI_API bool ImGui_BeginChildEx(const char* str_id, ImVec2 size, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags)
+{
+ return ImGui::BeginChild(str_id, cimgui_cast<::ImVec2>(size), child_flags, window_flags);
+}
+CIMGUI_API bool ImGui_BeginChildID(ImGuiID id)
+{
+ return ImGui::BeginChild(id);
+}
+CIMGUI_API bool ImGui_BeginChildIDEx(ImGuiID id, ImVec2 size, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags)
+{
+ return ImGui::BeginChild(id, cimgui_cast<::ImVec2>(size), child_flags, window_flags);
+}
+CIMGUI_API void ImGui_EndChild(void)
+{
+ ImGui::EndChild();
+}
+CIMGUI_API bool ImGui_IsWindowAppearing(void)
+{
+ return ImGui::IsWindowAppearing();
+}
+CIMGUI_API bool ImGui_IsWindowCollapsed(void)
+{
+ return ImGui::IsWindowCollapsed();
+}
+CIMGUI_API bool ImGui_IsWindowFocused(void)
+{
+ return ImGui::IsWindowFocused();
+}
+CIMGUI_API bool ImGui_IsWindowFocusedEx(ImGuiFocusedFlags flags)
+{
+ return ImGui::IsWindowFocused(flags);
+}
+CIMGUI_API bool ImGui_IsWindowHovered(void)
+{
+ return ImGui::IsWindowHovered();
+}
+CIMGUI_API bool ImGui_IsWindowHoveredEx(ImGuiHoveredFlags flags)
+{
+ return ImGui::IsWindowHovered(flags);
+}
+CIMGUI_API ImDrawList* ImGui_GetWindowDrawList(void)
+{
+ return reinterpret_cast<cimgui::ImDrawList*>(ImGui::GetWindowDrawList());
+}
+CIMGUI_API ImVec2 ImGui_GetWindowPos(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetWindowPos());
+}
+CIMGUI_API ImVec2 ImGui_GetWindowSize(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetWindowSize());
+}
+CIMGUI_API float ImGui_GetWindowWidth(void)
+{
+ return ImGui::GetWindowWidth();
+}
+CIMGUI_API float ImGui_GetWindowHeight(void)
+{
+ return ImGui::GetWindowHeight();
+}
+CIMGUI_API void ImGui_SetNextWindowPos(ImVec2 pos)
+{
+ ImGui::SetNextWindowPos(cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API void ImGui_SetNextWindowPosEx(ImVec2 pos, ImGuiCond cond, ImVec2 pivot)
+{
+ ImGui::SetNextWindowPos(cimgui_cast<::ImVec2>(pos), cond, cimgui_cast<::ImVec2>(pivot));
+}
+CIMGUI_API void ImGui_SetNextWindowSize(ImVec2 size)
+{
+ ImGui::SetNextWindowSize(cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_SetNextWindowSizeEx(ImVec2 size, ImGuiCond cond)
+{
+ ImGui::SetNextWindowSize(cimgui_cast<::ImVec2>(size), cond);
+}
+CIMGUI_API void ImGui_SetNextWindowSizeConstraints(ImVec2 size_min, ImVec2 size_max)
+{
+ ImGui::SetNextWindowSizeConstraints(cimgui_cast<::ImVec2>(size_min), cimgui_cast<::ImVec2>(size_max));
+}
+CIMGUI_API void ImGui_SetNextWindowSizeConstraintsEx(ImVec2 size_min, ImVec2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data)
+{
+ ImGui::SetNextWindowSizeConstraints(cimgui_cast<::ImVec2>(size_min), cimgui_cast<::ImVec2>(size_max), reinterpret_cast<::ImGuiSizeCallback>(custom_callback), custom_callback_data);
+}
+CIMGUI_API void ImGui_SetNextWindowContentSize(ImVec2 size)
+{
+ ImGui::SetNextWindowContentSize(cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_SetNextWindowCollapsed(bool collapsed)
+{
+ ImGui::SetNextWindowCollapsed(collapsed);
+}
+CIMGUI_API void ImGui_SetNextWindowCollapsedEx(bool collapsed, ImGuiCond cond)
+{
+ ImGui::SetNextWindowCollapsed(collapsed, cond);
+}
+CIMGUI_API void ImGui_SetNextWindowFocus(void)
+{
+ ImGui::SetNextWindowFocus();
+}
+CIMGUI_API void ImGui_SetNextWindowScroll(ImVec2 scroll)
+{
+ ImGui::SetNextWindowScroll(cimgui_cast<::ImVec2>(scroll));
+}
+CIMGUI_API void ImGui_SetNextWindowBgAlpha(float alpha)
+{
+ ImGui::SetNextWindowBgAlpha(alpha);
+}
+CIMGUI_API void ImGui_SetWindowPos(ImVec2 pos)
+{
+ ImGui::SetWindowPos(cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API void ImGui_SetWindowPosEx(ImVec2 pos, ImGuiCond cond)
+{
+ ImGui::SetWindowPos(cimgui_cast<::ImVec2>(pos), cond);
+}
+CIMGUI_API void ImGui_SetWindowSize(ImVec2 size)
+{
+ ImGui::SetWindowSize(cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_SetWindowSizeEx(ImVec2 size, ImGuiCond cond)
+{
+ ImGui::SetWindowSize(cimgui_cast<::ImVec2>(size), cond);
+}
+CIMGUI_API void ImGui_SetWindowCollapsed(bool collapsed)
+{
+ ImGui::SetWindowCollapsed(collapsed);
+}
+CIMGUI_API void ImGui_SetWindowCollapsedEx(bool collapsed, ImGuiCond cond)
+{
+ ImGui::SetWindowCollapsed(collapsed, cond);
+}
+CIMGUI_API void ImGui_SetWindowFocus(void)
+{
+ ImGui::SetWindowFocus();
+}
+CIMGUI_API void ImGui_SetWindowPosStr(const char* name, ImVec2 pos)
+{
+ ImGui::SetWindowPos(name, cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API void ImGui_SetWindowPosStrEx(const char* name, ImVec2 pos, ImGuiCond cond)
+{
+ ImGui::SetWindowPos(name, cimgui_cast<::ImVec2>(pos), cond);
+}
+CIMGUI_API void ImGui_SetWindowSizeStr(const char* name, ImVec2 size)
+{
+ ImGui::SetWindowSize(name, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_SetWindowSizeStrEx(const char* name, ImVec2 size, ImGuiCond cond)
+{
+ ImGui::SetWindowSize(name, cimgui_cast<::ImVec2>(size), cond);
+}
+CIMGUI_API void ImGui_SetWindowCollapsedStr(const char* name, bool collapsed)
+{
+ ImGui::SetWindowCollapsed(name, collapsed);
+}
+CIMGUI_API void ImGui_SetWindowCollapsedStrEx(const char* name, bool collapsed, ImGuiCond cond)
+{
+ ImGui::SetWindowCollapsed(name, collapsed, cond);
+}
+CIMGUI_API void ImGui_SetWindowFocusStr(const char* name)
+{
+ ImGui::SetWindowFocus(name);
+}
+CIMGUI_API float ImGui_GetScrollX(void)
+{
+ return ImGui::GetScrollX();
+}
+CIMGUI_API float ImGui_GetScrollY(void)
+{
+ return ImGui::GetScrollY();
+}
+CIMGUI_API void ImGui_SetScrollX(float scroll_x)
+{
+ ImGui::SetScrollX(scroll_x);
+}
+CIMGUI_API void ImGui_SetScrollY(float scroll_y)
+{
+ ImGui::SetScrollY(scroll_y);
+}
+CIMGUI_API float ImGui_GetScrollMaxX(void)
+{
+ return ImGui::GetScrollMaxX();
+}
+CIMGUI_API float ImGui_GetScrollMaxY(void)
+{
+ return ImGui::GetScrollMaxY();
+}
+CIMGUI_API void ImGui_SetScrollHereX(void)
+{
+ ImGui::SetScrollHereX();
+}
+CIMGUI_API void ImGui_SetScrollHereXEx(float center_x_ratio)
+{
+ ImGui::SetScrollHereX(center_x_ratio);
+}
+CIMGUI_API void ImGui_SetScrollHereY(void)
+{
+ ImGui::SetScrollHereY();
+}
+CIMGUI_API void ImGui_SetScrollHereYEx(float center_y_ratio)
+{
+ ImGui::SetScrollHereY(center_y_ratio);
+}
+CIMGUI_API void ImGui_SetScrollFromPosX(float local_x)
+{
+ ImGui::SetScrollFromPosX(local_x);
+}
+CIMGUI_API void ImGui_SetScrollFromPosXEx(float local_x, float center_x_ratio)
+{
+ ImGui::SetScrollFromPosX(local_x, center_x_ratio);
+}
+CIMGUI_API void ImGui_SetScrollFromPosY(float local_y)
+{
+ ImGui::SetScrollFromPosY(local_y);
+}
+CIMGUI_API void ImGui_SetScrollFromPosYEx(float local_y, float center_y_ratio)
+{
+ ImGui::SetScrollFromPosY(local_y, center_y_ratio);
+}
+CIMGUI_API void ImGui_PushFont(ImFont* font, float font_size_base_unscaled)
+{
+ ImGui::PushFont(reinterpret_cast<::ImFont*>(font), font_size_base_unscaled);
+}
+CIMGUI_API void ImGui_PopFont(void)
+{
+ ImGui::PopFont();
+}
+CIMGUI_API ImFont* ImGui_GetFont(void)
+{
+ return reinterpret_cast<cimgui::ImFont*>(ImGui::GetFont());
+}
+CIMGUI_API float ImGui_GetFontSize(void)
+{
+ return ImGui::GetFontSize();
+}
+CIMGUI_API ImFontBaked* ImGui_GetFontBaked(void)
+{
+ return reinterpret_cast<cimgui::ImFontBaked*>(ImGui::GetFontBaked());
+}
+CIMGUI_API void ImGui_PushStyleColor(ImGuiCol idx, ImU32 col)
+{
+ ImGui::PushStyleColor(idx, col);
+}
+CIMGUI_API void ImGui_PushStyleColorVec4(ImGuiCol idx, ImVec4 col)
+{
+ ImGui::PushStyleColor(idx, cimgui_cast<::ImVec4>(col));
+}
+CIMGUI_API void ImGui_PopStyleColor(void)
+{
+ ImGui::PopStyleColor();
+}
+CIMGUI_API void ImGui_PopStyleColorEx(int count)
+{
+ ImGui::PopStyleColor(count);
+}
+CIMGUI_API void ImGui_PushStyleVar(ImGuiStyleVar idx, float val)
+{
+ ImGui::PushStyleVar(idx, val);
+}
+CIMGUI_API void ImGui_PushStyleVarVec2(ImGuiStyleVar idx, ImVec2 val)
+{
+ ImGui::PushStyleVar(idx, cimgui_cast<::ImVec2>(val));
+}
+CIMGUI_API void ImGui_PushStyleVarX(ImGuiStyleVar idx, float val_x)
+{
+ ImGui::PushStyleVarX(idx, val_x);
+}
+CIMGUI_API void ImGui_PushStyleVarY(ImGuiStyleVar idx, float val_y)
+{
+ ImGui::PushStyleVarY(idx, val_y);
+}
+CIMGUI_API void ImGui_PopStyleVar(void)
+{
+ ImGui::PopStyleVar();
+}
+CIMGUI_API void ImGui_PopStyleVarEx(int count)
+{
+ ImGui::PopStyleVar(count);
+}
+CIMGUI_API void ImGui_PushItemFlag(ImGuiItemFlags option, bool enabled)
+{
+ ImGui::PushItemFlag(option, enabled);
+}
+CIMGUI_API void ImGui_PopItemFlag(void)
+{
+ ImGui::PopItemFlag();
+}
+CIMGUI_API void ImGui_PushItemWidth(float item_width)
+{
+ ImGui::PushItemWidth(item_width);
+}
+CIMGUI_API void ImGui_PopItemWidth(void)
+{
+ ImGui::PopItemWidth();
+}
+CIMGUI_API void ImGui_SetNextItemWidth(float item_width)
+{
+ ImGui::SetNextItemWidth(item_width);
+}
+CIMGUI_API float ImGui_CalcItemWidth(void)
+{
+ return ImGui::CalcItemWidth();
+}
+CIMGUI_API void ImGui_PushTextWrapPos(void)
+{
+ ImGui::PushTextWrapPos();
+}
+CIMGUI_API void ImGui_PushTextWrapPosEx(float wrap_local_pos_x)
+{
+ ImGui::PushTextWrapPos(wrap_local_pos_x);
+}
+CIMGUI_API void ImGui_PopTextWrapPos(void)
+{
+ ImGui::PopTextWrapPos();
+}
+CIMGUI_API ImVec2 ImGui_GetFontTexUvWhitePixel(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetFontTexUvWhitePixel());
+}
+CIMGUI_API ImU32 ImGui_GetColorU32(ImGuiCol idx)
+{
+ return ImGui::GetColorU32(idx);
+}
+CIMGUI_API ImU32 ImGui_GetColorU32Ex(ImGuiCol idx, float alpha_mul)
+{
+ return ImGui::GetColorU32(idx, alpha_mul);
+}
+CIMGUI_API ImU32 ImGui_GetColorU32Vec4(ImVec4 col)
+{
+ return ImGui::GetColorU32(cimgui_cast<::ImVec4>(col));
+}
+CIMGUI_API ImU32 ImGui_GetColorU32U32(ImU32 col)
+{
+ return ImGui::GetColorU32(col);
+}
+CIMGUI_API ImU32 ImGui_GetColorU32U32Ex(ImU32 col, float alpha_mul)
+{
+ return ImGui::GetColorU32(col, alpha_mul);
+}
+CIMGUI_API const ImVec4* ImGui_GetStyleColorVec4(ImGuiCol idx)
+{
+ return reinterpret_cast<const cimgui::ImVec4*>(&ImGui::GetStyleColorVec4(idx));
+}
+CIMGUI_API ImVec2 ImGui_GetCursorScreenPos(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetCursorScreenPos());
+}
+CIMGUI_API void ImGui_SetCursorScreenPos(ImVec2 pos)
+{
+ ImGui::SetCursorScreenPos(cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API ImVec2 ImGui_GetContentRegionAvail(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetContentRegionAvail());
+}
+CIMGUI_API ImVec2 ImGui_GetCursorPos(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetCursorPos());
+}
+CIMGUI_API float ImGui_GetCursorPosX(void)
+{
+ return ImGui::GetCursorPosX();
+}
+CIMGUI_API float ImGui_GetCursorPosY(void)
+{
+ return ImGui::GetCursorPosY();
+}
+CIMGUI_API void ImGui_SetCursorPos(ImVec2 local_pos)
+{
+ ImGui::SetCursorPos(cimgui_cast<::ImVec2>(local_pos));
+}
+CIMGUI_API void ImGui_SetCursorPosX(float local_x)
+{
+ ImGui::SetCursorPosX(local_x);
+}
+CIMGUI_API void ImGui_SetCursorPosY(float local_y)
+{
+ ImGui::SetCursorPosY(local_y);
+}
+CIMGUI_API ImVec2 ImGui_GetCursorStartPos(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetCursorStartPos());
+}
+CIMGUI_API void ImGui_Separator(void)
+{
+ ImGui::Separator();
+}
+CIMGUI_API void ImGui_SameLine(void)
+{
+ ImGui::SameLine();
+}
+CIMGUI_API void ImGui_SameLineEx(float offset_from_start_x, float spacing)
+{
+ ImGui::SameLine(offset_from_start_x, spacing);
+}
+CIMGUI_API void ImGui_NewLine(void)
+{
+ ImGui::NewLine();
+}
+CIMGUI_API void ImGui_Spacing(void)
+{
+ ImGui::Spacing();
+}
+CIMGUI_API void ImGui_Dummy(ImVec2 size)
+{
+ ImGui::Dummy(cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_Indent(void)
+{
+ ImGui::Indent();
+}
+CIMGUI_API void ImGui_IndentEx(float indent_w)
+{
+ ImGui::Indent(indent_w);
+}
+CIMGUI_API void ImGui_Unindent(void)
+{
+ ImGui::Unindent();
+}
+CIMGUI_API void ImGui_UnindentEx(float indent_w)
+{
+ ImGui::Unindent(indent_w);
+}
+CIMGUI_API void ImGui_BeginGroup(void)
+{
+ ImGui::BeginGroup();
+}
+CIMGUI_API void ImGui_EndGroup(void)
+{
+ ImGui::EndGroup();
+}
+CIMGUI_API void ImGui_AlignTextToFramePadding(void)
+{
+ ImGui::AlignTextToFramePadding();
+}
+CIMGUI_API float ImGui_GetTextLineHeight(void)
+{
+ return ImGui::GetTextLineHeight();
+}
+CIMGUI_API float ImGui_GetTextLineHeightWithSpacing(void)
+{
+ return ImGui::GetTextLineHeightWithSpacing();
+}
+CIMGUI_API float ImGui_GetFrameHeight(void)
+{
+ return ImGui::GetFrameHeight();
+}
+CIMGUI_API float ImGui_GetFrameHeightWithSpacing(void)
+{
+ return ImGui::GetFrameHeightWithSpacing();
+}
+CIMGUI_API void ImGui_PushID(const char* str_id)
+{
+ ImGui::PushID(str_id);
+}
+CIMGUI_API void ImGui_PushIDStr(const char* str_id_begin, const char* str_id_end)
+{
+ ImGui::PushID(str_id_begin, str_id_end);
+}
+CIMGUI_API void ImGui_PushIDPtr(const void* ptr_id)
+{
+ ImGui::PushID(ptr_id);
+}
+CIMGUI_API void ImGui_PushIDInt(int int_id)
+{
+ ImGui::PushID(int_id);
+}
+CIMGUI_API void ImGui_PopID(void)
+{
+ ImGui::PopID();
+}
+CIMGUI_API ImGuiID ImGui_GetID(const char* str_id)
+{
+ return ImGui::GetID(str_id);
+}
+CIMGUI_API ImGuiID ImGui_GetIDStr(const char* str_id_begin, const char* str_id_end)
+{
+ return ImGui::GetID(str_id_begin, str_id_end);
+}
+CIMGUI_API ImGuiID ImGui_GetIDPtr(const void* ptr_id)
+{
+ return ImGui::GetID(ptr_id);
+}
+CIMGUI_API ImGuiID ImGui_GetIDInt(int int_id)
+{
+ return ImGui::GetID(int_id);
+}
+CIMGUI_API void ImGui_TextUnformatted(const char* text)
+{
+ ImGui::TextUnformatted(text);
+}
+CIMGUI_API void ImGui_TextUnformattedEx(const char* text, const char* text_end)
+{
+ ImGui::TextUnformatted(text, text_end);
+}
+CIMGUI_API void ImGui_Text(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::TextV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_TextV(const char* fmt, va_list args)
+{
+ ImGui::TextV(fmt, args);
+}
+CIMGUI_API void ImGui_TextColored(ImVec4 col, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::TextColoredV(cimgui_cast<::ImVec4>(col), fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_TextColoredV(ImVec4 col, const char* fmt, va_list args)
+{
+ ImGui::TextColoredV(cimgui_cast<::ImVec4>(col), fmt, args);
+}
+CIMGUI_API void ImGui_TextDisabled(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::TextDisabledV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_TextDisabledV(const char* fmt, va_list args)
+{
+ ImGui::TextDisabledV(fmt, args);
+}
+CIMGUI_API void ImGui_TextWrapped(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::TextWrappedV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_TextWrappedV(const char* fmt, va_list args)
+{
+ ImGui::TextWrappedV(fmt, args);
+}
+CIMGUI_API void ImGui_LabelText(const char* label, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::LabelTextV(label, fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_LabelTextV(const char* label, const char* fmt, va_list args)
+{
+ ImGui::LabelTextV(label, fmt, args);
+}
+CIMGUI_API void ImGui_BulletText(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::BulletTextV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_BulletTextV(const char* fmt, va_list args)
+{
+ ImGui::BulletTextV(fmt, args);
+}
+CIMGUI_API void ImGui_SeparatorText(const char* label)
+{
+ ImGui::SeparatorText(label);
+}
+CIMGUI_API bool ImGui_Button(const char* label)
+{
+ return ImGui::Button(label);
+}
+CIMGUI_API bool ImGui_ButtonEx(const char* label, ImVec2 size)
+{
+ return ImGui::Button(label, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API bool ImGui_SmallButton(const char* label)
+{
+ return ImGui::SmallButton(label);
+}
+CIMGUI_API bool ImGui_InvisibleButton(const char* str_id, ImVec2 size)
+{
+ return ImGui::InvisibleButton(str_id, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API bool ImGui_InvisibleButtonEx(const char* str_id, ImVec2 size, ImGuiButtonFlags flags)
+{
+ return ImGui::InvisibleButton(str_id, cimgui_cast<::ImVec2>(size), flags);
+}
+CIMGUI_API bool ImGui_ArrowButton(const char* str_id, ImGuiDir dir)
+{
+ return ImGui::ArrowButton(str_id, (::ImGuiDir)dir);
+}
+CIMGUI_API bool ImGui_Checkbox(const char* label, bool* v)
+{
+ return ImGui::Checkbox(label, v);
+}
+CIMGUI_API bool ImGui_CheckboxFlags(const char* label, int* flags, int flags_value)
+{
+ return ImGui::CheckboxFlags(label, flags, flags_value);
+}
+CIMGUI_API bool ImGui_CheckboxFlagsUIntPtr(const char* label, unsigned int* flags, unsigned int flags_value)
+{
+ return ImGui::CheckboxFlags(label, flags, flags_value);
+}
+CIMGUI_API bool ImGui_RadioButton(const char* label, bool active)
+{
+ return ImGui::RadioButton(label, active);
+}
+CIMGUI_API bool ImGui_RadioButtonIntPtr(const char* label, int* v, int v_button)
+{
+ return ImGui::RadioButton(label, v, v_button);
+}
+CIMGUI_API void ImGui_ProgressBar(float fraction)
+{
+ ImGui::ProgressBar(fraction);
+}
+CIMGUI_API void ImGui_ProgressBarEx(float fraction, ImVec2 size_arg, const char* overlay)
+{
+ ImGui::ProgressBar(fraction, cimgui_cast<::ImVec2>(size_arg), overlay);
+}
+CIMGUI_API void ImGui_Bullet(void)
+{
+ ImGui::Bullet();
+}
+CIMGUI_API bool ImGui_TextLink(const char* label)
+{
+ return ImGui::TextLink(label);
+}
+CIMGUI_API bool ImGui_TextLinkOpenURL(const char* label)
+{
+ return ImGui::TextLinkOpenURL(label);
+}
+CIMGUI_API bool ImGui_TextLinkOpenURLEx(const char* label, const char* url)
+{
+ return ImGui::TextLinkOpenURL(label, url);
+}
+CIMGUI_API void ImGui_Image(ImTextureRef tex_ref, ImVec2 image_size)
+{
+ ImGui::Image(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size));
+}
+CIMGUI_API void ImGui_ImageEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1)
+{
+ ImGui::Image(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size), cimgui_cast<::ImVec2>(uv0), cimgui_cast<::ImVec2>(uv1));
+}
+CIMGUI_API void ImGui_ImageWithBg(ImTextureRef tex_ref, ImVec2 image_size)
+{
+ ImGui::ImageWithBg(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size));
+}
+CIMGUI_API void ImGui_ImageWithBgEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1, ImVec4 bg_col, ImVec4 tint_col)
+{
+ ImGui::ImageWithBg(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size), cimgui_cast<::ImVec2>(uv0), cimgui_cast<::ImVec2>(uv1), cimgui_cast<::ImVec4>(bg_col), cimgui_cast<::ImVec4>(tint_col));
+}
+CIMGUI_API bool ImGui_ImageButton(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size)
+{
+ return ImGui::ImageButton(str_id, cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size));
+}
+CIMGUI_API bool ImGui_ImageButtonEx(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1, ImVec4 bg_col, ImVec4 tint_col)
+{
+ return ImGui::ImageButton(str_id, cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(image_size), cimgui_cast<::ImVec2>(uv0), cimgui_cast<::ImVec2>(uv1), cimgui_cast<::ImVec4>(bg_col), cimgui_cast<::ImVec4>(tint_col));
+}
+CIMGUI_API bool ImGui_BeginCombo(const char* label, const char* preview_value)
+{
+ return ImGui::BeginCombo(label, preview_value);
+}
+CIMGUI_API bool ImGui_BeginComboEx(const char* label, const char* preview_value, ImGuiComboFlags flags)
+{
+ return ImGui::BeginCombo(label, preview_value, flags);
+}
+CIMGUI_API void ImGui_EndCombo(void)
+{
+ ImGui::EndCombo();
+}
+CIMGUI_API bool ImGui_Combo(const char* label, int* current_item, const char* const items[], int items_count)
+{
+ return ImGui::Combo(label, current_item, items, items_count);
+}
+CIMGUI_API bool ImGui_ComboEx(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items)
+{
+ return ImGui::Combo(label, current_item, items, items_count, popup_max_height_in_items);
+}
+CIMGUI_API bool ImGui_ComboStr(const char* label, int* current_item, const char* items_separated_by_zeros)
+{
+ return ImGui::Combo(label, current_item, items_separated_by_zeros);
+}
+CIMGUI_API bool ImGui_ComboStrEx(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items)
+{
+ return ImGui::Combo(label, current_item, items_separated_by_zeros, popup_max_height_in_items);
+}
+CIMGUI_API bool ImGui_ComboCallback(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count)
+{
+ return ImGui::Combo(label, current_item, reinterpret_cast<const char* (*)(void*, int)>(getter), user_data, items_count);
+}
+CIMGUI_API bool ImGui_ComboCallbackEx(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items)
+{
+ return ImGui::Combo(label, current_item, reinterpret_cast<const char* (*)(void*, int)>(getter), user_data, items_count, popup_max_height_in_items);
+}
+CIMGUI_API bool ImGui_DragFloat(const char* label, float* v)
+{
+ return ImGui::DragFloat(label, v);
+}
+CIMGUI_API bool ImGui_DragFloatEx(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragFloat(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragFloat2(const char* label, float v[2])
+{
+ return ImGui::DragFloat2(label, v);
+}
+CIMGUI_API bool ImGui_DragFloat2Ex(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragFloat2(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragFloat3(const char* label, float v[3])
+{
+ return ImGui::DragFloat3(label, v);
+}
+CIMGUI_API bool ImGui_DragFloat3Ex(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragFloat3(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragFloat4(const char* label, float v[4])
+{
+ return ImGui::DragFloat4(label, v);
+}
+CIMGUI_API bool ImGui_DragFloat4Ex(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragFloat4(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragFloatRange2(const char* label, float* v_current_min, float* v_current_max)
+{
+ return ImGui::DragFloatRange2(label, v_current_min, v_current_max);
+}
+CIMGUI_API bool ImGui_DragFloatRange2Ex(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags)
+{
+ return ImGui::DragFloatRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags);
+}
+CIMGUI_API bool ImGui_DragInt(const char* label, int* v)
+{
+ return ImGui::DragInt(label, v);
+}
+CIMGUI_API bool ImGui_DragIntEx(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragInt(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragInt2(const char* label, int v[2])
+{
+ return ImGui::DragInt2(label, v);
+}
+CIMGUI_API bool ImGui_DragInt2Ex(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragInt2(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragInt3(const char* label, int v[3])
+{
+ return ImGui::DragInt3(label, v);
+}
+CIMGUI_API bool ImGui_DragInt3Ex(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragInt3(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragInt4(const char* label, int v[4])
+{
+ return ImGui::DragInt4(label, v);
+}
+CIMGUI_API bool ImGui_DragInt4Ex(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragInt4(label, v, v_speed, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragIntRange2(const char* label, int* v_current_min, int* v_current_max)
+{
+ return ImGui::DragIntRange2(label, v_current_min, v_current_max);
+}
+CIMGUI_API bool ImGui_DragIntRange2Ex(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags)
+{
+ return ImGui::DragIntRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags);
+}
+CIMGUI_API bool ImGui_DragScalar(const char* label, ImGuiDataType data_type, void* p_data)
+{
+ return ImGui::DragScalar(label, data_type, p_data);
+}
+CIMGUI_API bool ImGui_DragScalarEx(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, flags);
+}
+CIMGUI_API bool ImGui_DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components)
+{
+ return ImGui::DragScalarN(label, data_type, p_data, components);
+}
+CIMGUI_API bool ImGui_DragScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::DragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderFloat(const char* label, float* v, float v_min, float v_max)
+{
+ return ImGui::SliderFloat(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderFloatEx(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderFloat(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderFloat2(const char* label, float v[2], float v_min, float v_max)
+{
+ return ImGui::SliderFloat2(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderFloat2Ex(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderFloat2(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderFloat3(const char* label, float v[3], float v_min, float v_max)
+{
+ return ImGui::SliderFloat3(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderFloat3Ex(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderFloat3(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderFloat4(const char* label, float v[4], float v_min, float v_max)
+{
+ return ImGui::SliderFloat4(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderFloat4Ex(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderFloat4(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderAngle(const char* label, float* v_rad)
+{
+ return ImGui::SliderAngle(label, v_rad);
+}
+CIMGUI_API bool ImGui_SliderAngleEx(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderAngle(label, v_rad, v_degrees_min, v_degrees_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderInt(const char* label, int* v, int v_min, int v_max)
+{
+ return ImGui::SliderInt(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderIntEx(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderInt(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderInt2(const char* label, int v[2], int v_min, int v_max)
+{
+ return ImGui::SliderInt2(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderInt2Ex(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderInt2(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderInt3(const char* label, int v[3], int v_min, int v_max)
+{
+ return ImGui::SliderInt3(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderInt3Ex(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderInt3(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderInt4(const char* label, int v[4], int v_min, int v_max)
+{
+ return ImGui::SliderInt4(label, v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_SliderInt4Ex(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderInt4(label, v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max)
+{
+ return ImGui::SliderScalar(label, data_type, p_data, p_min, p_max);
+}
+CIMGUI_API bool ImGui_SliderScalarEx(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderScalar(label, data_type, p_data, p_min, p_max, format, flags);
+}
+CIMGUI_API bool ImGui_SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max)
+{
+ return ImGui::SliderScalarN(label, data_type, p_data, components, p_min, p_max);
+}
+CIMGUI_API bool ImGui_SliderScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::SliderScalarN(label, data_type, p_data, components, p_min, p_max, format, flags);
+}
+CIMGUI_API bool ImGui_VSliderFloat(const char* label, ImVec2 size, float* v, float v_min, float v_max)
+{
+ return ImGui::VSliderFloat(label, cimgui_cast<::ImVec2>(size), v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_VSliderFloatEx(const char* label, ImVec2 size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::VSliderFloat(label, cimgui_cast<::ImVec2>(size), v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_VSliderInt(const char* label, ImVec2 size, int* v, int v_min, int v_max)
+{
+ return ImGui::VSliderInt(label, cimgui_cast<::ImVec2>(size), v, v_min, v_max);
+}
+CIMGUI_API bool ImGui_VSliderIntEx(const char* label, ImVec2 size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::VSliderInt(label, cimgui_cast<::ImVec2>(size), v, v_min, v_max, format, flags);
+}
+CIMGUI_API bool ImGui_VSliderScalar(const char* label, ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max)
+{
+ return ImGui::VSliderScalar(label, cimgui_cast<::ImVec2>(size), data_type, p_data, p_min, p_max);
+}
+CIMGUI_API bool ImGui_VSliderScalarEx(const char* label, ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
+{
+ return ImGui::VSliderScalar(label, cimgui_cast<::ImVec2>(size), data_type, p_data, p_min, p_max, format, flags);
+}
+CIMGUI_API bool ImGui_InputText(const char* label, char* buf, size_t buf_size)
+{
+ return ImGui::InputText(label, buf, buf_size);
+}
+CIMGUI_API bool ImGui_InputTextEx(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
+{
+ return ImGui::InputText(label, buf, buf_size, flags, reinterpret_cast<::ImGuiInputTextCallback>(callback), user_data);
+}
+CIMGUI_API bool ImGui_InputTextMultiline(const char* label, char* buf, size_t buf_size)
+{
+ return ImGui::InputTextMultiline(label, buf, buf_size);
+}
+CIMGUI_API bool ImGui_InputTextMultilineEx(const char* label, char* buf, size_t buf_size, ImVec2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
+{
+ return ImGui::InputTextMultiline(label, buf, buf_size, cimgui_cast<::ImVec2>(size), flags, reinterpret_cast<::ImGuiInputTextCallback>(callback), user_data);
+}
+CIMGUI_API bool ImGui_InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size)
+{
+ return ImGui::InputTextWithHint(label, hint, buf, buf_size);
+}
+CIMGUI_API bool ImGui_InputTextWithHintEx(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
+{
+ return ImGui::InputTextWithHint(label, hint, buf, buf_size, flags, reinterpret_cast<::ImGuiInputTextCallback>(callback), user_data);
+}
+CIMGUI_API bool ImGui_InputFloat(const char* label, float* v)
+{
+ return ImGui::InputFloat(label, v);
+}
+CIMGUI_API bool ImGui_InputFloatEx(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputFloat(label, v, step, step_fast, format, flags);
+}
+CIMGUI_API bool ImGui_InputFloat2(const char* label, float v[2])
+{
+ return ImGui::InputFloat2(label, v);
+}
+CIMGUI_API bool ImGui_InputFloat2Ex(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputFloat2(label, v, format, flags);
+}
+CIMGUI_API bool ImGui_InputFloat3(const char* label, float v[3])
+{
+ return ImGui::InputFloat3(label, v);
+}
+CIMGUI_API bool ImGui_InputFloat3Ex(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputFloat3(label, v, format, flags);
+}
+CIMGUI_API bool ImGui_InputFloat4(const char* label, float v[4])
+{
+ return ImGui::InputFloat4(label, v);
+}
+CIMGUI_API bool ImGui_InputFloat4Ex(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputFloat4(label, v, format, flags);
+}
+CIMGUI_API bool ImGui_InputInt(const char* label, int* v)
+{
+ return ImGui::InputInt(label, v);
+}
+CIMGUI_API bool ImGui_InputIntEx(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputInt(label, v, step, step_fast, flags);
+}
+CIMGUI_API bool ImGui_InputInt2(const char* label, int v[2])
+{
+ return ImGui::InputInt2(label, v);
+}
+CIMGUI_API bool ImGui_InputInt2Ex(const char* label, int v[2], ImGuiInputTextFlags flags)
+{
+ return ImGui::InputInt2(label, v, flags);
+}
+CIMGUI_API bool ImGui_InputInt3(const char* label, int v[3])
+{
+ return ImGui::InputInt3(label, v);
+}
+CIMGUI_API bool ImGui_InputInt3Ex(const char* label, int v[3], ImGuiInputTextFlags flags)
+{
+ return ImGui::InputInt3(label, v, flags);
+}
+CIMGUI_API bool ImGui_InputInt4(const char* label, int v[4])
+{
+ return ImGui::InputInt4(label, v);
+}
+CIMGUI_API bool ImGui_InputInt4Ex(const char* label, int v[4], ImGuiInputTextFlags flags)
+{
+ return ImGui::InputInt4(label, v, flags);
+}
+CIMGUI_API bool ImGui_InputDouble(const char* label, double* v)
+{
+ return ImGui::InputDouble(label, v);
+}
+CIMGUI_API bool ImGui_InputDoubleEx(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputDouble(label, v, step, step_fast, format, flags);
+}
+CIMGUI_API bool ImGui_InputScalar(const char* label, ImGuiDataType data_type, void* p_data)
+{
+ return ImGui::InputScalar(label, data_type, p_data);
+}
+CIMGUI_API bool ImGui_InputScalarEx(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputScalar(label, data_type, p_data, p_step, p_step_fast, format, flags);
+}
+CIMGUI_API bool ImGui_InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components)
+{
+ return ImGui::InputScalarN(label, data_type, p_data, components);
+}
+CIMGUI_API bool ImGui_InputScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags)
+{
+ return ImGui::InputScalarN(label, data_type, p_data, components, p_step, p_step_fast, format, flags);
+}
+CIMGUI_API bool ImGui_ColorEdit3(const char* label, float col[3])
+{
+ return ImGui::ColorEdit3(label, col);
+}
+CIMGUI_API bool ImGui_ColorEdit3Ex(const char* label, float col[3], ImGuiColorEditFlags flags)
+{
+ return ImGui::ColorEdit3(label, col, flags);
+}
+CIMGUI_API bool ImGui_ColorEdit4(const char* label, float col[4])
+{
+ return ImGui::ColorEdit4(label, col);
+}
+CIMGUI_API bool ImGui_ColorEdit4Ex(const char* label, float col[4], ImGuiColorEditFlags flags)
+{
+ return ImGui::ColorEdit4(label, col, flags);
+}
+CIMGUI_API bool ImGui_ColorPicker3(const char* label, float col[3])
+{
+ return ImGui::ColorPicker3(label, col);
+}
+CIMGUI_API bool ImGui_ColorPicker3Ex(const char* label, float col[3], ImGuiColorEditFlags flags)
+{
+ return ImGui::ColorPicker3(label, col, flags);
+}
+CIMGUI_API bool ImGui_ColorPicker4(const char* label, float col[4])
+{
+ return ImGui::ColorPicker4(label, col);
+}
+CIMGUI_API bool ImGui_ColorPicker4Ex(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col)
+{
+ return ImGui::ColorPicker4(label, col, flags, ref_col);
+}
+CIMGUI_API bool ImGui_ColorButton(const char* desc_id, ImVec4 col)
+{
+ return ImGui::ColorButton(desc_id, cimgui_cast<::ImVec4>(col));
+}
+CIMGUI_API bool ImGui_ColorButtonEx(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags, ImVec2 size)
+{
+ return ImGui::ColorButton(desc_id, cimgui_cast<::ImVec4>(col), flags, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API bool ImGui_TreeNode(const char* label)
+{
+ return ImGui::TreeNode(label);
+}
+CIMGUI_API bool ImGui_TreeNodeStr(const char* str_id, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ auto ret = ImGui::TreeNodeV(str_id, fmt, args);
+ va_end(args);
+ return ret;
+}
+CIMGUI_API bool ImGui_TreeNodePtr(const void* ptr_id, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ auto ret = ImGui::TreeNodeV(ptr_id, fmt, args);
+ va_end(args);
+ return ret;
+}
+CIMGUI_API bool ImGui_TreeNodeV(const char* str_id, const char* fmt, va_list args)
+{
+ return ImGui::TreeNodeV(str_id, fmt, args);
+}
+CIMGUI_API bool ImGui_TreeNodeVPtr(const void* ptr_id, const char* fmt, va_list args)
+{
+ return ImGui::TreeNodeV(ptr_id, fmt, args);
+}
+CIMGUI_API bool ImGui_TreeNodeEx(const char* label)
+{
+ return ImGui::TreeNodeEx(label);
+}
+CIMGUI_API bool ImGui_TreeNodeExEx(const char* label, ImGuiTreeNodeFlags flags)
+{
+ return ImGui::TreeNodeEx(label, flags);
+}
+CIMGUI_API bool ImGui_TreeNodeExStr(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ auto ret = ImGui::TreeNodeExV(str_id, flags, fmt, args);
+ va_end(args);
+ return ret;
+}
+CIMGUI_API bool ImGui_TreeNodeExPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ auto ret = ImGui::TreeNodeExV(ptr_id, flags, fmt, args);
+ va_end(args);
+ return ret;
+}
+CIMGUI_API bool ImGui_TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
+{
+ return ImGui::TreeNodeExV(str_id, flags, fmt, args);
+}
+CIMGUI_API bool ImGui_TreeNodeExVPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
+{
+ return ImGui::TreeNodeExV(ptr_id, flags, fmt, args);
+}
+CIMGUI_API void ImGui_TreePush(const char* str_id)
+{
+ ImGui::TreePush(str_id);
+}
+CIMGUI_API void ImGui_TreePushPtr(const void* ptr_id)
+{
+ ImGui::TreePush(ptr_id);
+}
+CIMGUI_API void ImGui_TreePop(void)
+{
+ ImGui::TreePop();
+}
+CIMGUI_API float ImGui_GetTreeNodeToLabelSpacing(void)
+{
+ return ImGui::GetTreeNodeToLabelSpacing();
+}
+CIMGUI_API bool ImGui_CollapsingHeader(const char* label)
+{
+ return ImGui::CollapsingHeader(label);
+}
+CIMGUI_API bool ImGui_CollapsingHeaderEx(const char* label, ImGuiTreeNodeFlags flags)
+{
+ return ImGui::CollapsingHeader(label, flags);
+}
+CIMGUI_API bool ImGui_CollapsingHeaderBoolPtr(const char* label, bool* p_visible)
+{
+ return ImGui::CollapsingHeader(label, p_visible);
+}
+CIMGUI_API bool ImGui_CollapsingHeaderBoolPtrEx(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags)
+{
+ return ImGui::CollapsingHeader(label, p_visible, flags);
+}
+CIMGUI_API void ImGui_SetNextItemOpen(bool is_open)
+{
+ ImGui::SetNextItemOpen(is_open);
+}
+CIMGUI_API void ImGui_SetNextItemOpenEx(bool is_open, ImGuiCond cond)
+{
+ ImGui::SetNextItemOpen(is_open, cond);
+}
+CIMGUI_API void ImGui_SetNextItemStorageID(ImGuiID storage_id)
+{
+ ImGui::SetNextItemStorageID(storage_id);
+}
+CIMGUI_API bool ImGui_TreeNodeGetOpen(ImGuiID storage_id)
+{
+ return ImGui::TreeNodeGetOpen(storage_id);
+}
+CIMGUI_API bool ImGui_TreeNodeGetOpenEx(ImGuiID storage_id, ImGuiTreeNodeFlags flags)
+{
+ return ImGui::TreeNodeGetOpen(storage_id, flags);
+}
+CIMGUI_API bool ImGui_Selectable(const char* label)
+{
+ return ImGui::Selectable(label);
+}
+CIMGUI_API bool ImGui_SelectableEx(const char* label, bool selected, ImGuiSelectableFlags flags, ImVec2 size)
+{
+ return ImGui::Selectable(label, selected, flags, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API bool ImGui_SelectableBoolPtr(const char* label, bool* p_selected)
+{
+ return ImGui::Selectable(label, p_selected);
+}
+CIMGUI_API bool ImGui_SelectableBoolPtrEx(const char* label, bool* p_selected, ImGuiSelectableFlags flags, ImVec2 size)
+{
+ return ImGui::Selectable(label, p_selected, flags, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API ImGuiMultiSelectIO* ImGui_BeginMultiSelect(ImGuiMultiSelectFlags flags)
+{
+ return reinterpret_cast<cimgui::ImGuiMultiSelectIO*>(ImGui::BeginMultiSelect(flags));
+}
+CIMGUI_API ImGuiMultiSelectIO* ImGui_BeginMultiSelectEx(ImGuiMultiSelectFlags flags, int selection_size, int items_count)
+{
+ return reinterpret_cast<cimgui::ImGuiMultiSelectIO*>(ImGui::BeginMultiSelect(flags, selection_size, items_count));
+}
+CIMGUI_API ImGuiMultiSelectIO* ImGui_EndMultiSelect(void)
+{
+ return reinterpret_cast<cimgui::ImGuiMultiSelectIO*>(ImGui::EndMultiSelect());
+}
+CIMGUI_API void ImGui_SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data)
+{
+ ImGui::SetNextItemSelectionUserData(selection_user_data);
+}
+CIMGUI_API bool ImGui_IsItemToggledSelection(void)
+{
+ return ImGui::IsItemToggledSelection();
+}
+CIMGUI_API bool ImGui_BeginListBox(const char* label)
+{
+ return ImGui::BeginListBox(label);
+}
+CIMGUI_API bool ImGui_BeginListBoxEx(const char* label, ImVec2 size)
+{
+ return ImGui::BeginListBox(label, cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API void ImGui_EndListBox(void)
+{
+ ImGui::EndListBox();
+}
+CIMGUI_API bool ImGui_ListBox(const char* label, int* current_item, const char* const items[], int items_count)
+{
+ return ImGui::ListBox(label, current_item, items, items_count);
+}
+CIMGUI_API bool ImGui_ListBoxEx(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items)
+{
+ return ImGui::ListBox(label, current_item, items, items_count, height_in_items);
+}
+CIMGUI_API bool ImGui_ListBoxCallback(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count)
+{
+ return ImGui::ListBox(label, current_item, reinterpret_cast<const char* (*)(void*, int)>(getter), user_data, items_count);
+}
+CIMGUI_API bool ImGui_ListBoxCallbackEx(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items)
+{
+ return ImGui::ListBox(label, current_item, reinterpret_cast<const char* (*)(void*, int)>(getter), user_data, items_count, height_in_items);
+}
+CIMGUI_API void ImGui_PlotLines(const char* label, const float* values, int values_count)
+{
+ ImGui::PlotLines(label, values, values_count);
+}
+CIMGUI_API void ImGui_PlotLinesEx(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride)
+{
+ ImGui::PlotLines(label, values, values_count, values_offset, overlay_text, scale_min, scale_max, cimgui_cast<::ImVec2>(graph_size), stride);
+}
+CIMGUI_API void ImGui_PlotLinesCallback(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count)
+{
+ ImGui::PlotLines(label, reinterpret_cast<float (*)(void*, int)>(values_getter), data, values_count);
+}
+CIMGUI_API void ImGui_PlotLinesCallbackEx(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
+{
+ ImGui::PlotLines(label, reinterpret_cast<float (*)(void*, int)>(values_getter), data, values_count, values_offset, overlay_text, scale_min, scale_max, cimgui_cast<::ImVec2>(graph_size));
+}
+CIMGUI_API void ImGui_PlotHistogram(const char* label, const float* values, int values_count)
+{
+ ImGui::PlotHistogram(label, values, values_count);
+}
+CIMGUI_API void ImGui_PlotHistogramEx(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride)
+{
+ ImGui::PlotHistogram(label, values, values_count, values_offset, overlay_text, scale_min, scale_max, cimgui_cast<::ImVec2>(graph_size), stride);
+}
+CIMGUI_API void ImGui_PlotHistogramCallback(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count)
+{
+ ImGui::PlotHistogram(label, reinterpret_cast<float (*)(void*, int)>(values_getter), data, values_count);
+}
+CIMGUI_API void ImGui_PlotHistogramCallbackEx(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
+{
+ ImGui::PlotHistogram(label, reinterpret_cast<float (*)(void*, int)>(values_getter), data, values_count, values_offset, overlay_text, scale_min, scale_max, cimgui_cast<::ImVec2>(graph_size));
+}
+CIMGUI_API void ImGui_Value(const char* prefix, bool b)
+{
+ ImGui::Value(prefix, b);
+}
+CIMGUI_API void ImGui_ValueInt(const char* prefix, int v)
+{
+ ImGui::Value(prefix, v);
+}
+CIMGUI_API void ImGui_ValueUInt(const char* prefix, unsigned int v)
+{
+ ImGui::Value(prefix, v);
+}
+CIMGUI_API void ImGui_ValueFloat(const char* prefix, float v)
+{
+ ImGui::Value(prefix, v);
+}
+CIMGUI_API void ImGui_ValueFloatEx(const char* prefix, float v, const char* float_format)
+{
+ ImGui::Value(prefix, v, float_format);
+}
+CIMGUI_API bool ImGui_BeginMenuBar(void)
+{
+ return ImGui::BeginMenuBar();
+}
+CIMGUI_API void ImGui_EndMenuBar(void)
+{
+ ImGui::EndMenuBar();
+}
+CIMGUI_API bool ImGui_BeginMainMenuBar(void)
+{
+ return ImGui::BeginMainMenuBar();
+}
+CIMGUI_API void ImGui_EndMainMenuBar(void)
+{
+ ImGui::EndMainMenuBar();
+}
+CIMGUI_API bool ImGui_BeginMenu(const char* label)
+{
+ return ImGui::BeginMenu(label);
+}
+CIMGUI_API bool ImGui_BeginMenuEx(const char* label, bool enabled)
+{
+ return ImGui::BeginMenu(label, enabled);
+}
+CIMGUI_API void ImGui_EndMenu(void)
+{
+ ImGui::EndMenu();
+}
+CIMGUI_API bool ImGui_MenuItem(const char* label)
+{
+ return ImGui::MenuItem(label);
+}
+CIMGUI_API bool ImGui_MenuItemEx(const char* label, const char* shortcut, bool selected, bool enabled)
+{
+ return ImGui::MenuItem(label, shortcut, selected, enabled);
+}
+CIMGUI_API bool ImGui_MenuItemBoolPtr(const char* label, const char* shortcut, bool* p_selected)
+{
+ return ImGui::MenuItem(label, shortcut, p_selected);
+}
+CIMGUI_API bool ImGui_MenuItemBoolPtrEx(const char* label, const char* shortcut, bool* p_selected, bool enabled)
+{
+ return ImGui::MenuItem(label, shortcut, p_selected, enabled);
+}
+CIMGUI_API bool ImGui_BeginTooltip(void)
+{
+ return ImGui::BeginTooltip();
+}
+CIMGUI_API void ImGui_EndTooltip(void)
+{
+ ImGui::EndTooltip();
+}
+CIMGUI_API void ImGui_SetTooltip(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::SetTooltipV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_SetTooltipV(const char* fmt, va_list args)
+{
+ ImGui::SetTooltipV(fmt, args);
+}
+CIMGUI_API bool ImGui_BeginItemTooltip(void)
+{
+ return ImGui::BeginItemTooltip();
+}
+CIMGUI_API void ImGui_SetItemTooltip(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::SetItemTooltipV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_SetItemTooltipV(const char* fmt, va_list args)
+{
+ ImGui::SetItemTooltipV(fmt, args);
+}
+CIMGUI_API bool ImGui_BeginPopup(const char* str_id)
+{
+ return ImGui::BeginPopup(str_id);
+}
+CIMGUI_API bool ImGui_BeginPopupEx(const char* str_id, ImGuiWindowFlags flags)
+{
+ return ImGui::BeginPopup(str_id, flags);
+}
+CIMGUI_API bool ImGui_BeginPopupModal(const char* name)
+{
+ return ImGui::BeginPopupModal(name);
+}
+CIMGUI_API bool ImGui_BeginPopupModalEx(const char* name, bool* p_open, ImGuiWindowFlags flags)
+{
+ return ImGui::BeginPopupModal(name, p_open, flags);
+}
+CIMGUI_API void ImGui_EndPopup(void)
+{
+ ImGui::EndPopup();
+}
+CIMGUI_API bool ImGui_OpenPopup(const char* str_id)
+{
+ return ImGui::OpenPopup(str_id);
+}
+CIMGUI_API bool ImGui_OpenPopupEx(const char* str_id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::OpenPopup(str_id, popup_flags);
+}
+CIMGUI_API bool ImGui_OpenPopupID(ImGuiID id)
+{
+ return ImGui::OpenPopup(id);
+}
+CIMGUI_API bool ImGui_OpenPopupIDEx(ImGuiID id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::OpenPopup(id, popup_flags);
+}
+CIMGUI_API bool ImGui_OpenPopupOnItemClick(void)
+{
+ return ImGui::OpenPopupOnItemClick();
+}
+CIMGUI_API bool ImGui_OpenPopupOnItemClickEx(const char* str_id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::OpenPopupOnItemClick(str_id, popup_flags);
+}
+CIMGUI_API void ImGui_CloseCurrentPopup(void)
+{
+ ImGui::CloseCurrentPopup();
+}
+CIMGUI_API bool ImGui_BeginPopupContextItem(void)
+{
+ return ImGui::BeginPopupContextItem();
+}
+CIMGUI_API bool ImGui_BeginPopupContextItemEx(const char* str_id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::BeginPopupContextItem(str_id, popup_flags);
+}
+CIMGUI_API bool ImGui_BeginPopupContextWindow(void)
+{
+ return ImGui::BeginPopupContextWindow();
+}
+CIMGUI_API bool ImGui_BeginPopupContextWindowEx(const char* str_id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::BeginPopupContextWindow(str_id, popup_flags);
+}
+CIMGUI_API bool ImGui_BeginPopupContextVoid(void)
+{
+ return ImGui::BeginPopupContextVoid();
+}
+CIMGUI_API bool ImGui_BeginPopupContextVoidEx(const char* str_id, ImGuiPopupFlags popup_flags)
+{
+ return ImGui::BeginPopupContextVoid(str_id, popup_flags);
+}
+CIMGUI_API bool ImGui_IsPopupOpen(const char* str_id)
+{
+ return ImGui::IsPopupOpen(str_id);
+}
+CIMGUI_API bool ImGui_IsPopupOpenEx(const char* str_id, ImGuiPopupFlags flags)
+{
+ return ImGui::IsPopupOpen(str_id, flags);
+}
+CIMGUI_API bool ImGui_BeginTable(const char* str_id, int columns)
+{
+ return ImGui::BeginTable(str_id, columns);
+}
+CIMGUI_API bool ImGui_BeginTableEx(const char* str_id, int columns, ImGuiTableFlags flags, ImVec2 outer_size, float inner_width)
+{
+ return ImGui::BeginTable(str_id, columns, flags, cimgui_cast<::ImVec2>(outer_size), inner_width);
+}
+CIMGUI_API void ImGui_EndTable(void)
+{
+ ImGui::EndTable();
+}
+CIMGUI_API void ImGui_TableNextRow(void)
+{
+ ImGui::TableNextRow();
+}
+CIMGUI_API void ImGui_TableNextRowEx(ImGuiTableRowFlags row_flags, float min_row_height)
+{
+ ImGui::TableNextRow(row_flags, min_row_height);
+}
+CIMGUI_API bool ImGui_TableNextColumn(void)
+{
+ return ImGui::TableNextColumn();
+}
+CIMGUI_API bool ImGui_TableSetColumnIndex(int column_n)
+{
+ return ImGui::TableSetColumnIndex(column_n);
+}
+CIMGUI_API void ImGui_TableSetupColumn(const char* label)
+{
+ ImGui::TableSetupColumn(label);
+}
+CIMGUI_API void ImGui_TableSetupColumnEx(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_data)
+{
+ ImGui::TableSetupColumn(label, flags, init_width_or_weight, user_data);
+}
+CIMGUI_API void ImGui_TableSetupScrollFreeze(int cols, int rows)
+{
+ ImGui::TableSetupScrollFreeze(cols, rows);
+}
+CIMGUI_API void ImGui_TableHeader(const char* label)
+{
+ ImGui::TableHeader(label);
+}
+CIMGUI_API void ImGui_TableHeadersRow(void)
+{
+ ImGui::TableHeadersRow();
+}
+CIMGUI_API void ImGui_TableAngledHeadersRow(void)
+{
+ ImGui::TableAngledHeadersRow();
+}
+CIMGUI_API ImGuiTableSortSpecs* ImGui_TableGetSortSpecs(void)
+{
+ return reinterpret_cast<cimgui::ImGuiTableSortSpecs*>(ImGui::TableGetSortSpecs());
+}
+CIMGUI_API int ImGui_TableGetColumnCount(void)
+{
+ return ImGui::TableGetColumnCount();
+}
+CIMGUI_API int ImGui_TableGetColumnIndex(void)
+{
+ return ImGui::TableGetColumnIndex();
+}
+CIMGUI_API int ImGui_TableGetRowIndex(void)
+{
+ return ImGui::TableGetRowIndex();
+}
+CIMGUI_API const char* ImGui_TableGetColumnName(void)
+{
+ return ImGui::TableGetColumnName();
+}
+CIMGUI_API const char* ImGui_TableGetColumnNameEx(int column_n)
+{
+ return ImGui::TableGetColumnName(column_n);
+}
+CIMGUI_API ImGuiTableColumnFlags ImGui_TableGetColumnFlags(void)
+{
+ return ImGui::TableGetColumnFlags();
+}
+CIMGUI_API ImGuiTableColumnFlags ImGui_TableGetColumnFlagsEx(int column_n)
+{
+ return ImGui::TableGetColumnFlags(column_n);
+}
+CIMGUI_API void ImGui_TableSetColumnEnabled(int column_n, bool v)
+{
+ ImGui::TableSetColumnEnabled(column_n, v);
+}
+CIMGUI_API int ImGui_TableGetHoveredColumn(void)
+{
+ return ImGui::TableGetHoveredColumn();
+}
+CIMGUI_API void ImGui_TableSetBgColor(ImGuiTableBgTarget target, ImU32 color)
+{
+ ImGui::TableSetBgColor(target, color);
+}
+CIMGUI_API void ImGui_TableSetBgColorEx(ImGuiTableBgTarget target, ImU32 color, int column_n)
+{
+ ImGui::TableSetBgColor(target, color, column_n);
+}
+CIMGUI_API void ImGui_Columns(void)
+{
+ ImGui::Columns();
+}
+CIMGUI_API void ImGui_ColumnsEx(int count, const char* id, bool borders)
+{
+ ImGui::Columns(count, id, borders);
+}
+CIMGUI_API void ImGui_NextColumn(void)
+{
+ ImGui::NextColumn();
+}
+CIMGUI_API int ImGui_GetColumnIndex(void)
+{
+ return ImGui::GetColumnIndex();
+}
+CIMGUI_API float ImGui_GetColumnWidth(void)
+{
+ return ImGui::GetColumnWidth();
+}
+CIMGUI_API float ImGui_GetColumnWidthEx(int column_index)
+{
+ return ImGui::GetColumnWidth(column_index);
+}
+CIMGUI_API void ImGui_SetColumnWidth(int column_index, float width)
+{
+ ImGui::SetColumnWidth(column_index, width);
+}
+CIMGUI_API float ImGui_GetColumnOffset(void)
+{
+ return ImGui::GetColumnOffset();
+}
+CIMGUI_API float ImGui_GetColumnOffsetEx(int column_index)
+{
+ return ImGui::GetColumnOffset(column_index);
+}
+CIMGUI_API void ImGui_SetColumnOffset(int column_index, float offset_x)
+{
+ ImGui::SetColumnOffset(column_index, offset_x);
+}
+CIMGUI_API int ImGui_GetColumnsCount(void)
+{
+ return ImGui::GetColumnsCount();
+}
+CIMGUI_API bool ImGui_BeginTabBar(const char* str_id)
+{
+ return ImGui::BeginTabBar(str_id);
+}
+CIMGUI_API bool ImGui_BeginTabBarEx(const char* str_id, ImGuiTabBarFlags flags)
+{
+ return ImGui::BeginTabBar(str_id, flags);
+}
+CIMGUI_API void ImGui_EndTabBar(void)
+{
+ ImGui::EndTabBar();
+}
+CIMGUI_API bool ImGui_BeginTabItem(const char* label)
+{
+ return ImGui::BeginTabItem(label);
+}
+CIMGUI_API bool ImGui_BeginTabItemEx(const char* label, bool* p_open, ImGuiTabItemFlags flags)
+{
+ return ImGui::BeginTabItem(label, p_open, flags);
+}
+CIMGUI_API void ImGui_EndTabItem(void)
+{
+ ImGui::EndTabItem();
+}
+CIMGUI_API bool ImGui_TabItemButton(const char* label)
+{
+ return ImGui::TabItemButton(label);
+}
+CIMGUI_API bool ImGui_TabItemButtonEx(const char* label, ImGuiTabItemFlags flags)
+{
+ return ImGui::TabItemButton(label, flags);
+}
+CIMGUI_API void ImGui_SetTabItemClosed(const char* tab_or_docked_window_label)
+{
+ ImGui::SetTabItemClosed(tab_or_docked_window_label);
+}
+CIMGUI_API void ImGui_LogToTTY(void)
+{
+ ImGui::LogToTTY();
+}
+CIMGUI_API void ImGui_LogToTTYEx(int auto_open_depth)
+{
+ ImGui::LogToTTY(auto_open_depth);
+}
+CIMGUI_API void ImGui_LogToFile(void)
+{
+ ImGui::LogToFile();
+}
+CIMGUI_API void ImGui_LogToFileEx(int auto_open_depth, const char* filename)
+{
+ ImGui::LogToFile(auto_open_depth, filename);
+}
+CIMGUI_API void ImGui_LogToClipboard(void)
+{
+ ImGui::LogToClipboard();
+}
+CIMGUI_API void ImGui_LogToClipboardEx(int auto_open_depth)
+{
+ ImGui::LogToClipboard(auto_open_depth);
+}
+CIMGUI_API void ImGui_LogFinish(void)
+{
+ ImGui::LogFinish();
+}
+CIMGUI_API void ImGui_LogButtons(void)
+{
+ ImGui::LogButtons();
+}
+CIMGUI_API void ImGui_LogText(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::LogTextV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_LogTextV(const char* fmt, va_list args)
+{
+ ImGui::LogTextV(fmt, args);
+}
+CIMGUI_API bool ImGui_BeginDragDropSource(void)
+{
+ return ImGui::BeginDragDropSource();
+}
+CIMGUI_API bool ImGui_BeginDragDropSourceEx(ImGuiDragDropFlags flags)
+{
+ return ImGui::BeginDragDropSource(flags);
+}
+CIMGUI_API bool ImGui_SetDragDropPayload(const char* type, const void* data, size_t sz)
+{
+ return ImGui::SetDragDropPayload(type, data, sz);
+}
+CIMGUI_API bool ImGui_SetDragDropPayloadEx(const char* type, const void* data, size_t sz, ImGuiCond cond)
+{
+ return ImGui::SetDragDropPayload(type, data, sz, cond);
+}
+CIMGUI_API void ImGui_EndDragDropSource(void)
+{
+ ImGui::EndDragDropSource();
+}
+CIMGUI_API bool ImGui_BeginDragDropTarget(void)
+{
+ return ImGui::BeginDragDropTarget();
+}
+CIMGUI_API const ImGuiPayload* ImGui_AcceptDragDropPayload(const char* type)
+{
+ return reinterpret_cast<const cimgui::ImGuiPayload*>(ImGui::AcceptDragDropPayload(type));
+}
+CIMGUI_API const ImGuiPayload* ImGui_AcceptDragDropPayloadEx(const char* type, ImGuiDragDropFlags flags)
+{
+ return reinterpret_cast<const cimgui::ImGuiPayload*>(ImGui::AcceptDragDropPayload(type, flags));
+}
+CIMGUI_API void ImGui_EndDragDropTarget(void)
+{
+ ImGui::EndDragDropTarget();
+}
+CIMGUI_API const ImGuiPayload* ImGui_GetDragDropPayload(void)
+{
+ return reinterpret_cast<const cimgui::ImGuiPayload*>(ImGui::GetDragDropPayload());
+}
+CIMGUI_API void ImGui_BeginDisabled(void)
+{
+ ImGui::BeginDisabled();
+}
+CIMGUI_API void ImGui_BeginDisabledEx(bool disabled)
+{
+ ImGui::BeginDisabled(disabled);
+}
+CIMGUI_API void ImGui_EndDisabled(void)
+{
+ ImGui::EndDisabled();
+}
+CIMGUI_API void ImGui_PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect)
+{
+ ImGui::PushClipRect(cimgui_cast<::ImVec2>(clip_rect_min), cimgui_cast<::ImVec2>(clip_rect_max), intersect_with_current_clip_rect);
+}
+CIMGUI_API void ImGui_PopClipRect(void)
+{
+ ImGui::PopClipRect();
+}
+CIMGUI_API void ImGui_SetItemDefaultFocus(void)
+{
+ ImGui::SetItemDefaultFocus();
+}
+CIMGUI_API void ImGui_SetKeyboardFocusHere(void)
+{
+ ImGui::SetKeyboardFocusHere();
+}
+CIMGUI_API void ImGui_SetKeyboardFocusHereEx(int offset)
+{
+ ImGui::SetKeyboardFocusHere(offset);
+}
+CIMGUI_API void ImGui_SetNavCursorVisible(bool visible)
+{
+ ImGui::SetNavCursorVisible(visible);
+}
+CIMGUI_API void ImGui_SetNextItemAllowOverlap(void)
+{
+ ImGui::SetNextItemAllowOverlap();
+}
+CIMGUI_API bool ImGui_IsItemHovered(void)
+{
+ return ImGui::IsItemHovered();
+}
+CIMGUI_API bool ImGui_IsItemHoveredEx(ImGuiHoveredFlags flags)
+{
+ return ImGui::IsItemHovered(flags);
+}
+CIMGUI_API bool ImGui_IsItemActive(void)
+{
+ return ImGui::IsItemActive();
+}
+CIMGUI_API bool ImGui_IsItemFocused(void)
+{
+ return ImGui::IsItemFocused();
+}
+CIMGUI_API bool ImGui_IsItemClicked(void)
+{
+ return ImGui::IsItemClicked();
+}
+CIMGUI_API bool ImGui_IsItemClickedEx(ImGuiMouseButton mouse_button)
+{
+ return ImGui::IsItemClicked(mouse_button);
+}
+CIMGUI_API bool ImGui_IsItemVisible(void)
+{
+ return ImGui::IsItemVisible();
+}
+CIMGUI_API bool ImGui_IsItemEdited(void)
+{
+ return ImGui::IsItemEdited();
+}
+CIMGUI_API bool ImGui_IsItemActivated(void)
+{
+ return ImGui::IsItemActivated();
+}
+CIMGUI_API bool ImGui_IsItemDeactivated(void)
+{
+ return ImGui::IsItemDeactivated();
+}
+CIMGUI_API bool ImGui_IsItemDeactivatedAfterEdit(void)
+{
+ return ImGui::IsItemDeactivatedAfterEdit();
+}
+CIMGUI_API bool ImGui_IsItemToggledOpen(void)
+{
+ return ImGui::IsItemToggledOpen();
+}
+CIMGUI_API bool ImGui_IsAnyItemHovered(void)
+{
+ return ImGui::IsAnyItemHovered();
+}
+CIMGUI_API bool ImGui_IsAnyItemActive(void)
+{
+ return ImGui::IsAnyItemActive();
+}
+CIMGUI_API bool ImGui_IsAnyItemFocused(void)
+{
+ return ImGui::IsAnyItemFocused();
+}
+CIMGUI_API ImGuiID ImGui_GetItemID(void)
+{
+ return ImGui::GetItemID();
+}
+CIMGUI_API ImVec2 ImGui_GetItemRectMin(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetItemRectMin());
+}
+CIMGUI_API ImVec2 ImGui_GetItemRectMax(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetItemRectMax());
+}
+CIMGUI_API ImVec2 ImGui_GetItemRectSize(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetItemRectSize());
+}
+CIMGUI_API ImGuiItemFlags ImGui_GetItemFlags(void)
+{
+ return ImGui::GetItemFlags();
+}
+CIMGUI_API int ImGui_GetItemClickedCountWithSingleClickDelay(void)
+{
+ return ImGui::GetItemClickedCountWithSingleClickDelay();
+}
+CIMGUI_API int ImGui_GetItemClickedCountWithSingleClickDelayEx(ImGuiMouseButton mouse_button, float delay)
+{
+ return ImGui::GetItemClickedCountWithSingleClickDelay(mouse_button, delay);
+}
+CIMGUI_API ImGuiViewport* ImGui_GetMainViewport(void)
+{
+ return reinterpret_cast<cimgui::ImGuiViewport*>(ImGui::GetMainViewport());
+}
+CIMGUI_API ImDrawList* ImGui_GetBackgroundDrawList(void)
+{
+ return reinterpret_cast<cimgui::ImDrawList*>(ImGui::GetBackgroundDrawList());
+}
+CIMGUI_API ImDrawList* ImGui_GetForegroundDrawList(void)
+{
+ return reinterpret_cast<cimgui::ImDrawList*>(ImGui::GetForegroundDrawList());
+}
+CIMGUI_API bool ImGui_IsRectVisible(ImVec2 size)
+{
+ return ImGui::IsRectVisible(cimgui_cast<::ImVec2>(size));
+}
+CIMGUI_API bool ImGui_IsRectVisibleVec2(ImVec2 rect_min, ImVec2 rect_max)
+{
+ return ImGui::IsRectVisible(cimgui_cast<::ImVec2>(rect_min), cimgui_cast<::ImVec2>(rect_max));
+}
+CIMGUI_API double ImGui_GetTime(void)
+{
+ return ImGui::GetTime();
+}
+CIMGUI_API int ImGui_GetFrameCount(void)
+{
+ return ImGui::GetFrameCount();
+}
+CIMGUI_API ImDrawListSharedData* ImGui_GetDrawListSharedData(void)
+{
+ return reinterpret_cast<cimgui::ImDrawListSharedData*>(ImGui::GetDrawListSharedData());
+}
+CIMGUI_API const char* ImGui_GetStyleColorName(ImGuiCol idx)
+{
+ return ImGui::GetStyleColorName(idx);
+}
+CIMGUI_API void ImGui_SetStateStorage(ImGuiStorage* storage)
+{
+ ImGui::SetStateStorage(reinterpret_cast<::ImGuiStorage*>(storage));
+}
+CIMGUI_API ImGuiStorage* ImGui_GetStateStorage(void)
+{
+ return reinterpret_cast<cimgui::ImGuiStorage*>(ImGui::GetStateStorage());
+}
+CIMGUI_API ImVec2 ImGui_CalcTextSize(const char* text)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::CalcTextSize(text));
+}
+CIMGUI_API ImVec2 ImGui_CalcTextSizeEx(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::CalcTextSize(text, text_end, hide_text_after_double_hash, wrap_width));
+}
+CIMGUI_API ImVec4 ImGui_ColorConvertU32ToFloat4(ImU32 in)
+{
+ return cimgui_cast<cimgui::ImVec4>(ImGui::ColorConvertU32ToFloat4(in));
+}
+CIMGUI_API ImU32 ImGui_ColorConvertFloat4ToU32(ImVec4 in)
+{
+ return ImGui::ColorConvertFloat4ToU32(cimgui_cast<::ImVec4>(in));
+}
+CIMGUI_API void ImGui_ColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v)
+{
+ ImGui::ColorConvertRGBtoHSV(r, g, b, *reinterpret_cast<float*>(out_h), *reinterpret_cast<float*>(out_s), *reinterpret_cast<float*>(out_v));
+}
+CIMGUI_API void ImGui_ColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b)
+{
+ ImGui::ColorConvertHSVtoRGB(h, s, v, *reinterpret_cast<float*>(out_r), *reinterpret_cast<float*>(out_g), *reinterpret_cast<float*>(out_b));
+}
+CIMGUI_API bool ImGui_IsKeyDown(ImGuiKey key)
+{
+ return ImGui::IsKeyDown((::ImGuiKey)key);
+}
+CIMGUI_API bool ImGui_IsKeyPressed(ImGuiKey key)
+{
+ return ImGui::IsKeyPressed((::ImGuiKey)key);
+}
+CIMGUI_API bool ImGui_IsKeyPressedEx(ImGuiKey key, bool repeat)
+{
+ return ImGui::IsKeyPressed((::ImGuiKey)key, repeat);
+}
+CIMGUI_API bool ImGui_IsKeyReleased(ImGuiKey key)
+{
+ return ImGui::IsKeyReleased((::ImGuiKey)key);
+}
+CIMGUI_API bool ImGui_IsKeyChordPressed(ImGuiKeyChord key_chord)
+{
+ return ImGui::IsKeyChordPressed(key_chord);
+}
+CIMGUI_API int ImGui_GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate)
+{
+ return ImGui::GetKeyPressedAmount((::ImGuiKey)key, repeat_delay, rate);
+}
+CIMGUI_API const char* ImGui_GetKeyName(ImGuiKey key)
+{
+ return ImGui::GetKeyName((::ImGuiKey)key);
+}
+CIMGUI_API void ImGui_SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard)
+{
+ ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard);
+}
+CIMGUI_API bool ImGui_Shortcut(ImGuiKeyChord key_chord)
+{
+ return ImGui::Shortcut(key_chord);
+}
+CIMGUI_API bool ImGui_ShortcutEx(ImGuiKeyChord key_chord, ImGuiInputFlags flags)
+{
+ return ImGui::Shortcut(key_chord, flags);
+}
+CIMGUI_API void ImGui_SetNextItemShortcut(ImGuiKeyChord key_chord)
+{
+ ImGui::SetNextItemShortcut(key_chord);
+}
+CIMGUI_API void ImGui_SetNextItemShortcutEx(ImGuiKeyChord key_chord, ImGuiInputFlags flags)
+{
+ ImGui::SetNextItemShortcut(key_chord, flags);
+}
+CIMGUI_API bool ImGui_SetItemKeyOwner(ImGuiKey key)
+{
+ return ImGui::SetItemKeyOwner((::ImGuiKey)key);
+}
+CIMGUI_API bool ImGui_IsMouseDown(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseDown(button);
+}
+CIMGUI_API bool ImGui_IsMouseClicked(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseClicked(button);
+}
+CIMGUI_API bool ImGui_IsMouseClickedEx(ImGuiMouseButton button, bool repeat)
+{
+ return ImGui::IsMouseClicked(button, repeat);
+}
+CIMGUI_API bool ImGui_IsMouseReleased(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseReleased(button);
+}
+CIMGUI_API bool ImGui_IsMouseDoubleClicked(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseDoubleClicked(button);
+}
+CIMGUI_API bool ImGui_IsMouseReleasedWithDelay(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseReleasedWithDelay(button);
+}
+CIMGUI_API bool ImGui_IsMouseReleasedWithDelayEx(ImGuiMouseButton button, float delay)
+{
+ return ImGui::IsMouseReleasedWithDelay(button, delay);
+}
+CIMGUI_API int ImGui_GetMouseClickedCount(ImGuiMouseButton button)
+{
+ return ImGui::GetMouseClickedCount(button);
+}
+CIMGUI_API bool ImGui_IsMouseHoveringRect(ImVec2 r_min, ImVec2 r_max)
+{
+ return ImGui::IsMouseHoveringRect(cimgui_cast<::ImVec2>(r_min), cimgui_cast<::ImVec2>(r_max));
+}
+CIMGUI_API bool ImGui_IsMouseHoveringRectEx(ImVec2 r_min, ImVec2 r_max, bool clip)
+{
+ return ImGui::IsMouseHoveringRect(cimgui_cast<::ImVec2>(r_min), cimgui_cast<::ImVec2>(r_max), clip);
+}
+CIMGUI_API bool ImGui_IsMousePosValid(void)
+{
+ return ImGui::IsMousePosValid();
+}
+CIMGUI_API bool ImGui_IsMousePosValidEx(const ImVec2* mouse_pos)
+{
+ return ImGui::IsMousePosValid(reinterpret_cast<const ::ImVec2*>(mouse_pos));
+}
+CIMGUI_API bool ImGui_IsAnyMouseDown(void)
+{
+ return ImGui::IsAnyMouseDown();
+}
+CIMGUI_API ImVec2 ImGui_GetMousePos(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetMousePos());
+}
+CIMGUI_API ImVec2 ImGui_GetMousePosOnOpeningCurrentPopup(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetMousePosOnOpeningCurrentPopup());
+}
+CIMGUI_API bool ImGui_IsMouseDragging(ImGuiMouseButton button)
+{
+ return ImGui::IsMouseDragging(button);
+}
+CIMGUI_API bool ImGui_IsMouseDraggingEx(ImGuiMouseButton button, float lock_threshold)
+{
+ return ImGui::IsMouseDragging(button, lock_threshold);
+}
+CIMGUI_API ImVec2 ImGui_GetMouseDragDelta(void)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetMouseDragDelta());
+}
+CIMGUI_API ImVec2 ImGui_GetMouseDragDeltaEx(ImGuiMouseButton button, float lock_threshold)
+{
+ return cimgui_cast<cimgui::ImVec2>(ImGui::GetMouseDragDelta(button, lock_threshold));
+}
+CIMGUI_API void ImGui_ResetMouseDragDelta(void)
+{
+ ImGui::ResetMouseDragDelta();
+}
+CIMGUI_API void ImGui_ResetMouseDragDeltaEx(ImGuiMouseButton button)
+{
+ ImGui::ResetMouseDragDelta(button);
+}
+CIMGUI_API ImGuiMouseCursor ImGui_GetMouseCursor(void)
+{
+ return ImGui::GetMouseCursor();
+}
+CIMGUI_API void ImGui_SetMouseCursor(ImGuiMouseCursor cursor_type)
+{
+ ImGui::SetMouseCursor(cursor_type);
+}
+CIMGUI_API void ImGui_SetNextFrameWantCaptureMouse(bool want_capture_mouse)
+{
+ ImGui::SetNextFrameWantCaptureMouse(want_capture_mouse);
+}
+CIMGUI_API const char* ImGui_GetClipboardText(void)
+{
+ return ImGui::GetClipboardText();
+}
+CIMGUI_API void ImGui_SetClipboardText(const char* text)
+{
+ ImGui::SetClipboardText(text);
+}
+CIMGUI_API void ImGui_LoadIniSettingsFromDisk(const char* ini_filename)
+{
+ ImGui::LoadIniSettingsFromDisk(ini_filename);
+}
+CIMGUI_API void ImGui_LoadIniSettingsFromMemory(const char* ini_data)
+{
+ ImGui::LoadIniSettingsFromMemory(ini_data);
+}
+CIMGUI_API void ImGui_LoadIniSettingsFromMemoryEx(const char* ini_data, size_t ini_size)
+{
+ ImGui::LoadIniSettingsFromMemory(ini_data, ini_size);
+}
+CIMGUI_API void ImGui_SaveIniSettingsToDisk(const char* ini_filename)
+{
+ ImGui::SaveIniSettingsToDisk(ini_filename);
+}
+CIMGUI_API const char* ImGui_SaveIniSettingsToMemory(void)
+{
+ return ImGui::SaveIniSettingsToMemory();
+}
+CIMGUI_API const char* ImGui_SaveIniSettingsToMemoryEx(size_t* out_ini_size)
+{
+ return ImGui::SaveIniSettingsToMemory(out_ini_size);
+}
+CIMGUI_API void ImGui_DebugTextEncoding(const char* text)
+{
+ ImGui::DebugTextEncoding(text);
+}
+CIMGUI_API void ImGui_DebugFlashStyleColor(ImGuiCol idx)
+{
+ ImGui::DebugFlashStyleColor(idx);
+}
+CIMGUI_API void ImGui_DebugStartItemPicker(void)
+{
+ ImGui::DebugStartItemPicker();
+}
+CIMGUI_API bool ImGui_DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx)
+{
+ return ImGui::DebugCheckVersionAndDataLayout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx);
+}
+CIMGUI_API void ImGui_DebugLog(const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ ImGui::DebugLogV(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGui_DebugLogV(const char* fmt, va_list args)
+{
+ ImGui::DebugLogV(fmt, args);
+}
+CIMGUI_API void ImGui_SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func)
+{
+ ImGui::SetAllocatorFunctions(reinterpret_cast<::ImGuiMemAllocFunc>(alloc_func), reinterpret_cast<::ImGuiMemFreeFunc>(free_func));
+}
+CIMGUI_API void ImGui_SetAllocatorFunctionsEx(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data)
+{
+ ImGui::SetAllocatorFunctions(reinterpret_cast<::ImGuiMemAllocFunc>(alloc_func), reinterpret_cast<::ImGuiMemFreeFunc>(free_func), user_data);
+}
+CIMGUI_API void ImGui_GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data)
+{
+ ImGui::GetAllocatorFunctions(reinterpret_cast<::ImGuiMemAllocFunc*>(p_alloc_func), reinterpret_cast<::ImGuiMemFreeFunc*>(p_free_func), p_user_data);
+}
+CIMGUI_API void* ImGui_MemAlloc(size_t size)
+{
+ return ImGui::MemAlloc(size);
+}
+CIMGUI_API void ImGui_MemFree(void* ptr)
+{
+ ImGui::MemFree(ptr);
+}
+CIMGUI_API ImVec2* ImVec2_New(void)
+{
+ return reinterpret_cast<cimgui::ImVec2*>(IM_NEW(::ImVec2)());
+}
+CIMGUI_API ImVec2* ImVec2_NewFloat(float _x, float _y)
+{
+ return reinterpret_cast<cimgui::ImVec2*>(IM_NEW(::ImVec2)(_x, _y));
+}
+CIMGUI_API ImVec4* ImVec4_New(void)
+{
+ return reinterpret_cast<cimgui::ImVec4*>(IM_NEW(::ImVec4)());
+}
+CIMGUI_API ImVec4* ImVec4_NewFloat(float _x, float _y, float _z, float _w)
+{
+ return reinterpret_cast<cimgui::ImVec4*>(IM_NEW(::ImVec4)(_x, _y, _z, _w));
+}
+CIMGUI_API ImTextureRef* ImTextureRef_New(void)
+{
+ return reinterpret_cast<cimgui::ImTextureRef*>(IM_NEW(::ImTextureRef)());
+}
+CIMGUI_API ImTextureRef* ImTextureRef_NewTextureID(ImTextureID tex_id)
+{
+ return reinterpret_cast<cimgui::ImTextureRef*>(IM_NEW(::ImTextureRef)(tex_id));
+}
+CIMGUI_API ImTextureID ImTextureRef_GetTexID(const ImTextureRef* self)
+{
+ return reinterpret_cast<const ::ImTextureRef*>(self)->GetTexID();
+}
+CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiTableSortSpecs*>(IM_NEW(::ImGuiTableSortSpecs)());
+}
+CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiTableColumnSortSpecs*>(IM_NEW(::ImGuiTableColumnSortSpecs)());
+}
+CIMGUI_API ImGuiStyle* ImGuiStyle_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiStyle*>(IM_NEW(::ImGuiStyle)());
+}
+CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor)
+{
+ reinterpret_cast<::ImGuiStyle*>(self)->ScaleAllSizes(scale_factor);
+}
+CIMGUI_API ImGuiKeyData* ImGuiKeyData_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiKeyData*>(IM_NEW(::ImGuiKeyData)());
+}
+CIMGUI_API ImGuiIO* ImGuiIO_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiIO*>(IM_NEW(::ImGuiIO)());
+}
+CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self, ImGuiKey key, bool down)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddKeyEvent((::ImGuiKey)key, down);
+}
+CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, bool down, float v)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddKeyAnalogEvent((::ImGuiKey)key, down, v);
+}
+CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self, float x, float y)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddMousePosEvent(x, y);
+}
+CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self, int button, bool down)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddMouseButtonEvent(button, down);
+}
+CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self, float wheel_x, float wheel_y)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddMouseWheelEvent(wheel_x, wheel_y);
+}
+CIMGUI_API void ImGuiIO_AddMouseSourceEvent(ImGuiIO* self, ImGuiMouseSource source)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddMouseSourceEvent((::ImGuiMouseSource)source);
+}
+CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self, bool focused)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddFocusEvent(focused);
+}
+CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self, unsigned int c)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddInputCharacter(c);
+}
+CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self, ImWchar16 c)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddInputCharacterUTF16(c);
+}
+CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, const char* str)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->AddInputCharactersUTF8(str);
+}
+CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->SetKeyEventNativeData((::ImGuiKey)key, native_keycode, native_scancode);
+}
+CIMGUI_API void ImGuiIO_SetKeyEventNativeDataEx(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->SetKeyEventNativeData((::ImGuiKey)key, native_keycode, native_scancode, native_legacy_index);
+}
+CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self, bool accepting_events)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->SetAppAcceptingEvents(accepting_events);
+}
+CIMGUI_API void ImGuiIO_ClearEventsQueue(ImGuiIO* self)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->ClearEventsQueue();
+}
+CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->ClearInputKeys();
+}
+CIMGUI_API void ImGuiIO_ClearInputMouse(ImGuiIO* self)
+{
+ reinterpret_cast<::ImGuiIO*>(self)->ClearInputMouse();
+}
+CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiInputTextCallbackData*>(IM_NEW(::ImGuiInputTextCallbackData)());
+}
+CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->DeleteChars(pos, bytes_count);
+}
+CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, const char* text)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->InsertChars(pos, text);
+}
+CIMGUI_API void ImGuiInputTextCallbackData_InsertCharsEx(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->InsertChars(pos, text, text_end);
+}
+CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->SelectAll();
+}
+CIMGUI_API void ImGuiInputTextCallbackData_SetSelection(ImGuiInputTextCallbackData* self, int s, int e)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->SetSelection(s, e);
+}
+CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self)
+{
+ reinterpret_cast<::ImGuiInputTextCallbackData*>(self)->ClearSelection();
+}
+CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(const ImGuiInputTextCallbackData* self)
+{
+ return reinterpret_cast<const ::ImGuiInputTextCallbackData*>(self)->HasSelection();
+}
+CIMGUI_API ImGuiSizeCallbackData* ImGuiSizeCallbackData_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiSizeCallbackData*>(IM_NEW(::ImGuiSizeCallbackData)());
+}
+CIMGUI_API ImGuiPayload* ImGuiPayload_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiPayload*>(IM_NEW(::ImGuiPayload)());
+}
+CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self)
+{
+ reinterpret_cast<::ImGuiPayload*>(self)->Clear();
+}
+CIMGUI_API bool ImGuiPayload_IsDataType(const ImGuiPayload* self, const char* type)
+{
+ return reinterpret_cast<const ::ImGuiPayload*>(self)->IsDataType(type);
+}
+CIMGUI_API bool ImGuiPayload_IsPreview(const ImGuiPayload* self)
+{
+ return reinterpret_cast<const ::ImGuiPayload*>(self)->IsPreview();
+}
+CIMGUI_API bool ImGuiPayload_IsDelivery(const ImGuiPayload* self)
+{
+ return reinterpret_cast<const ::ImGuiPayload*>(self)->IsDelivery();
+}
+CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiOnceUponAFrame*>(IM_NEW(::ImGuiOnceUponAFrame)());
+}
+CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiTextFilter*>(IM_NEW(::ImGuiTextFilter)());
+}
+CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_NewEx(const char* default_filter)
+{
+ return reinterpret_cast<cimgui::ImGuiTextFilter*>(IM_NEW(::ImGuiTextFilter)(default_filter));
+}
+CIMGUI_API bool ImGuiTextFilter_PassFilter(const ImGuiTextFilter* self, const char* text)
+{
+ return reinterpret_cast<const ::ImGuiTextFilter*>(self)->PassFilter(text);
+}
+CIMGUI_API bool ImGuiTextFilter_PassFilterEx(const ImGuiTextFilter* self, const char* text, const char* text_end)
+{
+ return reinterpret_cast<const ::ImGuiTextFilter*>(self)->PassFilter(text, text_end);
+}
+CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self)
+{
+ reinterpret_cast<::ImGuiTextFilter*>(self)->Build();
+}
+CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self)
+{
+ reinterpret_cast<::ImGuiTextFilter*>(self)->Clear();
+}
+CIMGUI_API bool ImGuiTextFilter_IsActive(const ImGuiTextFilter* self)
+{
+ return reinterpret_cast<const ::ImGuiTextFilter*>(self)->IsActive();
+}
+CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self)
+{
+ return reinterpret_cast<::ImGuiTextFilter*>(self)->Draw();
+}
+CIMGUI_API bool ImGuiTextFilter_DrawEx(ImGuiTextFilter* self, const char* label)
+{
+ return reinterpret_cast<::ImGuiTextFilter*>(self)->Draw(label);
+}
+CIMGUI_API bool ImGuiTextFilter_DrawWithHint(ImGuiTextFilter* self)
+{
+ return reinterpret_cast<::ImGuiTextFilter*>(self)->DrawWithHint();
+}
+CIMGUI_API bool ImGuiTextFilter_DrawWithHintEx(ImGuiTextFilter* self, const char* label, const char* hint)
+{
+ return reinterpret_cast<::ImGuiTextFilter*>(self)->DrawWithHint(label, hint);
+}
+CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiTextBuffer*>(IM_NEW(::ImGuiTextBuffer)());
+}
+CIMGUI_API const char* ImGuiTextBuffer_begin(const ImGuiTextBuffer* self)
+{
+ return reinterpret_cast<const ::ImGuiTextBuffer*>(self)->begin();
+}
+CIMGUI_API const char* ImGuiTextBuffer_end(const ImGuiTextBuffer* self)
+{
+ return reinterpret_cast<const ::ImGuiTextBuffer*>(self)->end();
+}
+CIMGUI_API int ImGuiTextBuffer_size(const ImGuiTextBuffer* self)
+{
+ return reinterpret_cast<const ::ImGuiTextBuffer*>(self)->size();
+}
+CIMGUI_API bool ImGuiTextBuffer_empty(const ImGuiTextBuffer* self)
+{
+ return reinterpret_cast<const ::ImGuiTextBuffer*>(self)->empty();
+}
+CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->clear();
+}
+CIMGUI_API void ImGuiTextBuffer_resize(ImGuiTextBuffer* self, int size)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->resize(size);
+}
+CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->reserve(capacity);
+}
+CIMGUI_API const char* ImGuiTextBuffer_c_str(const ImGuiTextBuffer* self)
+{
+ return reinterpret_cast<const ::ImGuiTextBuffer*>(self)->c_str();
+}
+CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self, const char* str)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->append(str);
+}
+CIMGUI_API void ImGuiTextBuffer_appendEx(ImGuiTextBuffer* self, const char* str, const char* str_end)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->append(str, str_end);
+}
+CIMGUI_API void ImGuiTextBuffer_appendf(ImGuiTextBuffer* self, const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->appendfv(fmt, args);
+ va_end(args);
+}
+CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, const char* fmt, va_list args)
+{
+ reinterpret_cast<::ImGuiTextBuffer*>(self)->appendfv(fmt, args);
+}
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_New(ImGuiID _key, int _val)
+{
+ return reinterpret_cast<cimgui::ImGuiStoragePair*>(IM_NEW(::ImGuiStoragePair)(_key, _val));
+}
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_NewFloat(ImGuiID _key, float _val)
+{
+ return reinterpret_cast<cimgui::ImGuiStoragePair*>(IM_NEW(::ImGuiStoragePair)(_key, _val));
+}
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_NewPtr(ImGuiID _key, void* _val)
+{
+ return reinterpret_cast<cimgui::ImGuiStoragePair*>(IM_NEW(::ImGuiStoragePair)(_key, _val));
+}
+CIMGUI_API ImGuiStorage* ImGuiStorage_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiStorage*>(IM_NEW(::ImGuiStorage)());
+}
+CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->Clear();
+}
+CIMGUI_API int ImGuiStorage_GetInt(const ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetInt(key);
+}
+CIMGUI_API int ImGuiStorage_GetIntEx(const ImGuiStorage* self, ImGuiID key, int default_val)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetInt(key, default_val);
+}
+CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self, ImGuiID key, int val)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->SetInt(key, val);
+}
+CIMGUI_API bool ImGuiStorage_GetBool(const ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetBool(key);
+}
+CIMGUI_API bool ImGuiStorage_GetBoolEx(const ImGuiStorage* self, ImGuiID key, bool default_val)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetBool(key, default_val);
+}
+CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self, ImGuiID key, bool val)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->SetBool(key, val);
+}
+CIMGUI_API float ImGuiStorage_GetFloat(const ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetFloat(key);
+}
+CIMGUI_API float ImGuiStorage_GetFloatEx(const ImGuiStorage* self, ImGuiID key, float default_val)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetFloat(key, default_val);
+}
+CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self, ImGuiID key, float val)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->SetFloat(key, val);
+}
+CIMGUI_API void* ImGuiStorage_GetVoidPtr(const ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<const ::ImGuiStorage*>(self)->GetVoidPtr(key);
+}
+CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self, ImGuiID key, void* val)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->SetVoidPtr(key, val);
+}
+CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetIntRef(key);
+}
+CIMGUI_API int* ImGuiStorage_GetIntRefEx(ImGuiStorage* self, ImGuiID key, int default_val)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetIntRef(key, default_val);
+}
+CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetBoolRef(key);
+}
+CIMGUI_API bool* ImGuiStorage_GetBoolRefEx(ImGuiStorage* self, ImGuiID key, bool default_val)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetBoolRef(key, default_val);
+}
+CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetFloatRef(key);
+}
+CIMGUI_API float* ImGuiStorage_GetFloatRefEx(ImGuiStorage* self, ImGuiID key, float default_val)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetFloatRef(key, default_val);
+}
+CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self, ImGuiID key)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetVoidPtrRef(key);
+}
+CIMGUI_API void** ImGuiStorage_GetVoidPtrRefEx(ImGuiStorage* self, ImGuiID key, void* default_val)
+{
+ return reinterpret_cast<::ImGuiStorage*>(self)->GetVoidPtrRef(key, default_val);
+}
+CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->BuildSortByKey();
+}
+CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val)
+{
+ reinterpret_cast<::ImGuiStorage*>(self)->SetAllInt(val);
+}
+CIMGUI_API ImGuiListClipper* ImGuiListClipper_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiListClipper*>(IM_NEW(::ImGuiListClipper)());
+}
+CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->Begin(items_count);
+}
+CIMGUI_API void ImGuiListClipper_BeginEx(ImGuiListClipper* self, int items_count, float items_height)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->Begin(items_count, items_height);
+}
+CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->End();
+}
+CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self)
+{
+ return reinterpret_cast<::ImGuiListClipper*>(self)->Step();
+}
+CIMGUI_API void ImGuiListClipper_IncludeItemByIndex(ImGuiListClipper* self, int item_index)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->IncludeItemByIndex(item_index);
+}
+CIMGUI_API void ImGuiListClipper_IncludeItemsByIndex(ImGuiListClipper* self, int item_begin, int item_end)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->IncludeItemsByIndex(item_begin, item_end);
+}
+CIMGUI_API void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* self, int item_index)
+{
+ reinterpret_cast<::ImGuiListClipper*>(self)->SeekCursorForItem(item_index);
+}
+CIMGUI_API ImColor* ImColor_New(void)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)());
+}
+CIMGUI_API ImColor* ImColor_NewFloat(float r, float g, float b)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(r, g, b));
+}
+CIMGUI_API ImColor* ImColor_NewFloatEx(float r, float g, float b, float a)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(r, g, b, a));
+}
+CIMGUI_API ImColor* ImColor_NewVec4(ImVec4 col)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(cimgui_cast<::ImVec4>(col)));
+}
+CIMGUI_API ImColor* ImColor_NewInt(int r, int g, int b)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(r, g, b));
+}
+CIMGUI_API ImColor* ImColor_NewIntEx(int r, int g, int b, int a)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(r, g, b, a));
+}
+CIMGUI_API ImColor* ImColor_NewU32(ImU32 rgba)
+{
+ return reinterpret_cast<cimgui::ImColor*>(IM_NEW(::ImColor)(rgba));
+}
+CIMGUI_API void ImColor_SetHSV(ImColor* self, float h, float s, float v)
+{
+ reinterpret_cast<::ImColor*>(self)->SetHSV(h, s, v);
+}
+CIMGUI_API void ImColor_SetHSVEx(ImColor* self, float h, float s, float v, float a)
+{
+ reinterpret_cast<::ImColor*>(self)->SetHSV(h, s, v, a);
+}
+CIMGUI_API ImColor ImColor_HSV(float h, float s, float v)
+{
+ return cimgui_cast<cimgui::ImColor>(::ImColor::HSV(h, s, v));
+}
+CIMGUI_API ImColor ImColor_HSVEx(float h, float s, float v, float a)
+{
+ return cimgui_cast<cimgui::ImColor>(::ImColor::HSV(h, s, v, a));
+}
+CIMGUI_API ImGuiMultiSelectIO* ImGuiMultiSelectIO_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiMultiSelectIO*>(IM_NEW(::ImGuiMultiSelectIO)());
+}
+CIMGUI_API ImGuiSelectionRequest* ImGuiSelectionRequest_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiSelectionRequest*>(IM_NEW(::ImGuiSelectionRequest)());
+}
+CIMGUI_API ImGuiSelectionBasicStorage* ImGuiSelectionBasicStorage_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiSelectionBasicStorage*>(IM_NEW(::ImGuiSelectionBasicStorage)());
+}
+CIMGUI_API void ImGuiSelectionBasicStorage_ApplyRequests(ImGuiSelectionBasicStorage* self, ImGuiMultiSelectIO* ms_io)
+{
+ reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->ApplyRequests(reinterpret_cast<::ImGuiMultiSelectIO*>(ms_io));
+}
+CIMGUI_API bool ImGuiSelectionBasicStorage_Contains(const ImGuiSelectionBasicStorage* self, ImGuiID id)
+{
+ return reinterpret_cast<const ::ImGuiSelectionBasicStorage*>(self)->Contains(id);
+}
+CIMGUI_API void ImGuiSelectionBasicStorage_Clear(ImGuiSelectionBasicStorage* self)
+{
+ reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->Clear();
+}
+CIMGUI_API void ImGuiSelectionBasicStorage_Swap(ImGuiSelectionBasicStorage* self, ImGuiSelectionBasicStorage* r)
+{
+ reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->Swap(*reinterpret_cast<::ImGuiSelectionBasicStorage*>(r));
+}
+CIMGUI_API void ImGuiSelectionBasicStorage_SetItemSelected(ImGuiSelectionBasicStorage* self, ImGuiID id, bool selected)
+{
+ reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->SetItemSelected(id, selected);
+}
+CIMGUI_API bool ImGuiSelectionBasicStorage_GetNextSelectedItem(ImGuiSelectionBasicStorage* self, void** opaque_it, ImGuiID* out_id)
+{
+ return reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->GetNextSelectedItem(opaque_it, out_id);
+}
+CIMGUI_API ImGuiID ImGuiSelectionBasicStorage_GetStorageIdFromIndex(ImGuiSelectionBasicStorage* self, int idx)
+{
+ return reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)->GetStorageIdFromIndex(idx);
+}
+CIMGUI_API ImGuiSelectionExternalStorage* ImGuiSelectionExternalStorage_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiSelectionExternalStorage*>(IM_NEW(::ImGuiSelectionExternalStorage)());
+}
+CIMGUI_API void ImGuiSelectionExternalStorage_ApplyRequests(ImGuiSelectionExternalStorage* self, ImGuiMultiSelectIO* ms_io)
+{
+ reinterpret_cast<::ImGuiSelectionExternalStorage*>(self)->ApplyRequests(reinterpret_cast<::ImGuiMultiSelectIO*>(ms_io));
+}
+CIMGUI_API ImDrawCmd* ImDrawCmd_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawCmd*>(IM_NEW(::ImDrawCmd)());
+}
+CIMGUI_API ImTextureID ImDrawCmd_GetTexID(const ImDrawCmd* self)
+{
+ return reinterpret_cast<const ::ImDrawCmd*>(self)->GetTexID();
+}
+CIMGUI_API ImDrawVert* ImDrawVert_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawVert*>(IM_NEW(::ImDrawVert)());
+}
+CIMGUI_API ImDrawCmdHeader* ImDrawCmdHeader_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawCmdHeader*>(IM_NEW(::ImDrawCmdHeader)());
+}
+CIMGUI_API ImDrawChannel* ImDrawChannel_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawChannel*>(IM_NEW(::ImDrawChannel)());
+}
+CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawListSplitter*>(IM_NEW(::ImDrawListSplitter)());
+}
+CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self)
+{
+ reinterpret_cast<::ImDrawListSplitter*>(self)->Clear();
+}
+CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self)
+{
+ reinterpret_cast<::ImDrawListSplitter*>(self)->ClearFreeMemory();
+}
+CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count)
+{
+ reinterpret_cast<::ImDrawListSplitter*>(self)->Split(reinterpret_cast<::ImDrawList*>(draw_list), count);
+}
+CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self, ImDrawList* draw_list)
+{
+ reinterpret_cast<::ImDrawListSplitter*>(self)->Merge(reinterpret_cast<::ImDrawList*>(draw_list));
+}
+CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx)
+{
+ reinterpret_cast<::ImDrawListSplitter*>(self)->SetCurrentChannel(reinterpret_cast<::ImDrawList*>(draw_list), channel_idx);
+}
+CIMGUI_API ImDrawList* ImDrawList_New(ImDrawListSharedData* shared_data)
+{
+ return reinterpret_cast<cimgui::ImDrawList*>(IM_NEW(::ImDrawList)(reinterpret_cast<::ImDrawListSharedData*>(shared_data)));
+}
+CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PushClipRect(cimgui_cast<::ImVec2>(clip_rect_min), cimgui_cast<::ImVec2>(clip_rect_max));
+}
+CIMGUI_API void ImDrawList_PushClipRectEx(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PushClipRect(cimgui_cast<::ImVec2>(clip_rect_min), cimgui_cast<::ImVec2>(clip_rect_max), intersect_with_current_clip_rect);
+}
+CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PushClipRectFullScreen();
+}
+CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PopClipRect();
+}
+CIMGUI_API void ImDrawList_PushTexture(ImDrawList* self, ImTextureRef tex_ref)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PushTexture(cimgui_cast<::ImTextureRef>(tex_ref));
+}
+CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PopTexture();
+}
+CIMGUI_API void ImDrawList_PushDrawFlag(ImDrawList* self, ImDrawFlags flags, bool enabled)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PushDrawFlag(flags, enabled);
+}
+CIMGUI_API void ImDrawList_PopDrawFlag(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PopDrawFlag();
+}
+CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(const ImDrawList* self)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<const ::ImDrawList*>(self)->GetClipRectMin());
+}
+CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(const ImDrawList* self)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<const ::ImDrawList*>(self)->GetClipRectMax());
+}
+CIMGUI_API void ImDrawList_AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLine(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), col);
+}
+CIMGUI_API void ImDrawList_AddLineEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLine(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddLineH(ImDrawList* self, float min_x, float max_x, float y, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLineH(min_x, max_x, y, col);
+}
+CIMGUI_API void ImDrawList_AddLineHEx(ImDrawList* self, float min_x, float max_x, float y, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLineH(min_x, max_x, y, col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddLineV(ImDrawList* self, float x, float min_y, float max_y, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLineV(x, min_y, max_y, col);
+}
+CIMGUI_API void ImDrawList_AddLineVEx(ImDrawList* self, float x, float min_y, float max_y, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddLineV(x, min_y, max_y, col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddRect(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddRect(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col);
+}
+CIMGUI_API void ImDrawList_AddRectEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddRect(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col, rounding, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddRectFilled(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col);
+}
+CIMGUI_API void ImDrawList_AddRectFilledEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddRectFilled(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col, rounding, flags);
+}
+CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddRectFilledMultiColor(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col_upr_left, col_upr_right, col_bot_right, col_bot_left);
+}
+CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddQuad(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), col);
+}
+CIMGUI_API void ImDrawList_AddQuadEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddQuad(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddQuadFilled(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), col);
+}
+CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddTriangle(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), col);
+}
+CIMGUI_API void ImDrawList_AddTriangleEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddTriangle(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddTriangleFilled(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), col);
+}
+CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self, ImVec2 center, float radius, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCircle(cimgui_cast<::ImVec2>(center), radius, col);
+}
+CIMGUI_API void ImDrawList_AddCircleEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCircle(cimgui_cast<::ImVec2>(center), radius, col, num_segments, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCircleFilled(cimgui_cast<::ImVec2>(center), radius, col);
+}
+CIMGUI_API void ImDrawList_AddCircleFilledEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCircleFilled(cimgui_cast<::ImVec2>(center), radius, col, num_segments);
+}
+CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddNgon(cimgui_cast<::ImVec2>(center), radius, col, num_segments);
+}
+CIMGUI_API void ImDrawList_AddNgonEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddNgon(cimgui_cast<::ImVec2>(center), radius, col, num_segments, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddNgonFilled(cimgui_cast<::ImVec2>(center), radius, col, num_segments);
+}
+CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddEllipse(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), col);
+}
+CIMGUI_API void ImDrawList_AddEllipseEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot, int num_segments, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddEllipse(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), col, rot, num_segments, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddEllipseFilled(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), col);
+}
+CIMGUI_API void ImDrawList_AddEllipseFilledEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddEllipseFilled(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), col, rot, num_segments);
+}
+CIMGUI_API void ImDrawList_AddText(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddText(cimgui_cast<::ImVec2>(pos), col, text_begin);
+}
+CIMGUI_API void ImDrawList_AddTextEx(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddText(cimgui_cast<::ImVec2>(pos), col, text_begin, text_end);
+}
+CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast<::ImFont*>(font), font_size, cimgui_cast<::ImVec2>(pos), col, text_begin);
+}
+CIMGUI_API void ImDrawList_AddTextFontPtrEx(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast<::ImFont*>(font), font_size, cimgui_cast<::ImVec2>(pos), col, text_begin, text_end, wrap_width, reinterpret_cast<const ::ImVec4*>(cpu_fine_clip_rect));
+}
+CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddBezierCubic(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), col, thickness);
+}
+CIMGUI_API void ImDrawList_AddBezierCubicEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness, int num_segments, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddBezierCubic(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), col, thickness, num_segments, flags);
+}
+CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddBezierQuadratic(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), col, thickness);
+}
+CIMGUI_API void ImDrawList_AddBezierQuadraticEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, int num_segments, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddBezierQuadratic(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), col, thickness, num_segments, flags);
+}
+CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddPolyline(reinterpret_cast<const ::ImVec2*>(points), num_points, col, thickness);
+}
+CIMGUI_API void ImDrawList_AddPolylineEx(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddPolyline(reinterpret_cast<const ::ImVec2*>(points), num_points, col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddConvexPolyFilled(reinterpret_cast<const ::ImVec2*>(points), num_points, col);
+}
+CIMGUI_API void ImDrawList_AddConvexPolyFilledEx(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddConvexPolyFilled(reinterpret_cast<const ::ImVec2*>(points), num_points, col, flags);
+}
+CIMGUI_API void ImDrawList_AddConcavePolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddConcavePolyFilled(reinterpret_cast<const ::ImVec2*>(points), num_points, col);
+}
+CIMGUI_API void ImDrawList_AddImage(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImage(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max));
+}
+CIMGUI_API void ImDrawList_AddImageEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImage(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), cimgui_cast<::ImVec2>(uv_min), cimgui_cast<::ImVec2>(uv_max), col);
+}
+CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4));
+}
+CIMGUI_API void ImDrawList_AddImageQuadEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImVec2 uv1, ImVec2 uv2, ImVec2 uv3, ImVec2 uv4, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), cimgui_cast<::ImVec2>(uv1), cimgui_cast<::ImVec2>(uv2), cimgui_cast<::ImVec2>(uv3), cimgui_cast<::ImVec2>(uv4), col);
+}
+CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImageRounded(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), cimgui_cast<::ImVec2>(uv_min), cimgui_cast<::ImVec2>(uv_max), col, rounding);
+}
+CIMGUI_API void ImDrawList_AddImageRoundedEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddImageRounded(cimgui_cast<::ImTextureRef>(tex_ref), cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), cimgui_cast<::ImVec2>(uv_min), cimgui_cast<::ImVec2>(uv_max), col, rounding, flags);
+}
+CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathClear();
+}
+CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self, ImVec2 pos)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathLineTo(cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self, ImVec2 pos)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathLineToMergeDuplicate(cimgui_cast<::ImVec2>(pos));
+}
+CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathFillConvex(col);
+}
+CIMGUI_API void ImDrawList_PathFillConvexEx(ImDrawList* self, ImU32 col, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathFillConvex(col, flags);
+}
+CIMGUI_API void ImDrawList_PathFillConcave(ImDrawList* self, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathFillConcave(col);
+}
+CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathStroke(col);
+}
+CIMGUI_API void ImDrawList_PathStrokeEx(ImDrawList* self, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathStroke(col, thickness, flags);
+}
+CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathArcTo(cimgui_cast<::ImVec2>(center), radius, a_min, a_max);
+}
+CIMGUI_API void ImDrawList_PathArcToEx(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathArcTo(cimgui_cast<::ImVec2>(center), radius, a_min, a_max, num_segments);
+}
+CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self, ImVec2 center, float radius, int a_min_of_12, int a_max_of_12)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathArcToFast(cimgui_cast<::ImVec2>(center), radius, a_min_of_12, a_max_of_12);
+}
+CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathEllipticalArcTo(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), rot, a_min, a_max);
+}
+CIMGUI_API void ImDrawList_PathEllipticalArcToEx(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathEllipticalArcTo(cimgui_cast<::ImVec2>(center), cimgui_cast<::ImVec2>(radius), rot, a_min, a_max, num_segments);
+}
+CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathBezierCubicCurveTo(cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4));
+}
+CIMGUI_API void ImDrawList_PathBezierCubicCurveToEx(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathBezierCubicCurveTo(cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), cimgui_cast<::ImVec2>(p4), num_segments);
+}
+CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathBezierQuadraticCurveTo(cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3));
+}
+CIMGUI_API void ImDrawList_PathBezierQuadraticCurveToEx(ImDrawList* self, ImVec2 p2, ImVec2 p3, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathBezierQuadraticCurveTo(cimgui_cast<::ImVec2>(p2), cimgui_cast<::ImVec2>(p3), num_segments);
+}
+CIMGUI_API void ImDrawList_PathRect(ImDrawList* self, ImVec2 rect_min, ImVec2 rect_max)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathRect(cimgui_cast<::ImVec2>(rect_min), cimgui_cast<::ImVec2>(rect_max));
+}
+CIMGUI_API void ImDrawList_PathRectEx(ImDrawList* self, ImVec2 rect_min, ImVec2 rect_max, float rounding, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PathRect(cimgui_cast<::ImVec2>(rect_min), cimgui_cast<::ImVec2>(rect_max), rounding, flags);
+}
+CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCallback(reinterpret_cast<::ImDrawCallback>(callback));
+}
+CIMGUI_API void ImDrawList_AddCallbackEx(ImDrawList* self, ImDrawCallback callback, void* userdata, size_t userdata_size)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddCallback(reinterpret_cast<::ImDrawCallback>(callback), userdata, userdata_size);
+}
+CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->AddDrawCmd();
+}
+CIMGUI_API ImDrawList* ImDrawList_CloneOutput(const ImDrawList* self)
+{
+ return reinterpret_cast<cimgui::ImDrawList*>(reinterpret_cast<const ::ImDrawList*>(self)->CloneOutput());
+}
+CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self, int count)
+{
+ reinterpret_cast<::ImDrawList*>(self)->ChannelsSplit(count);
+}
+CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->ChannelsMerge();
+}
+CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n)
+{
+ reinterpret_cast<::ImDrawList*>(self)->ChannelsSetCurrent(n);
+}
+CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimReserve(idx_count, vtx_count);
+}
+CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimUnreserve(idx_count, vtx_count);
+}
+CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self, ImVec2 a, ImVec2 b, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimRect(cimgui_cast<::ImVec2>(a), cimgui_cast<::ImVec2>(b), col);
+}
+CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 uv_a, ImVec2 uv_b, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimRectUV(cimgui_cast<::ImVec2>(a), cimgui_cast<::ImVec2>(b), cimgui_cast<::ImVec2>(uv_a), cimgui_cast<::ImVec2>(uv_b), col);
+}
+CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 c, ImVec2 d, ImVec2 uv_a, ImVec2 uv_b, ImVec2 uv_c, ImVec2 uv_d, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimQuadUV(cimgui_cast<::ImVec2>(a), cimgui_cast<::ImVec2>(b), cimgui_cast<::ImVec2>(c), cimgui_cast<::ImVec2>(d), cimgui_cast<::ImVec2>(uv_a), cimgui_cast<::ImVec2>(uv_b), cimgui_cast<::ImVec2>(uv_c), cimgui_cast<::ImVec2>(uv_d), col);
+}
+CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimWriteVtx(cimgui_cast<::ImVec2>(pos), cimgui_cast<::ImVec2>(uv), col);
+}
+CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimWriteIdx(idx);
+}
+CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col)
+{
+ reinterpret_cast<::ImDrawList*>(self)->PrimVtx(cimgui_cast<::ImVec2>(pos), cimgui_cast<::ImVec2>(uv), col);
+}
+CIMGUI_API void ImDrawList__SetDrawListSharedData(ImDrawList* self, ImDrawListSharedData* data)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_SetDrawListSharedData(reinterpret_cast<::ImDrawListSharedData*>(data));
+}
+CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_ResetForNewFrame();
+}
+CIMGUI_API void ImDrawList__SetPixelDensity(ImDrawList* self, float pixel_density)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_SetPixelDensity(pixel_density);
+}
+CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_ClearFreeMemory();
+}
+CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_PopUnusedDrawCmd();
+}
+CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_TryMergeDrawCmds();
+}
+CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_OnChangedClipRect();
+}
+CIMGUI_API void ImDrawList__OnChangedTexture(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_OnChangedTexture();
+}
+CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_OnChangedVtxOffset();
+}
+CIMGUI_API void ImDrawList__SetTexture(ImDrawList* self, ImTextureRef tex_ref)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_SetTexture(cimgui_cast<::ImTextureRef>(tex_ref));
+}
+CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(const ImDrawList* self, float radius)
+{
+ return reinterpret_cast<const ::ImDrawList*>(self)->_CalcCircleAutoSegmentCount(radius);
+}
+CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self, ImVec2 center, float radius, int a_min_sample, int a_max_sample, int a_step)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_PathArcToFastEx(cimgui_cast<::ImVec2>(center), radius, a_min_sample, a_max_sample, a_step);
+}
+CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_PathArcToN(cimgui_cast<::ImVec2>(center), radius, a_min, a_max, num_segments);
+}
+CIMGUI_API void ImDrawList__AddRectFilledBaked(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float r, ImVec4 tex_uvs, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_AddRectFilledBaked(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col, r, cimgui_cast<::ImVec4>(tex_uvs), flags);
+}
+CIMGUI_API void ImDrawList__AddRectBaked(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float r, float t, ImVec4 tex_uvs, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_AddRectBaked(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col, r, t, cimgui_cast<::ImVec4>(tex_uvs), flags);
+}
+CIMGUI_API void ImDrawList__AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_AddLine(cimgui_cast<::ImVec2>(p1), cimgui_cast<::ImVec2>(p2), col, thickness, flags);
+}
+CIMGUI_API void ImDrawList__AddRectTinyRounding(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, float thickness, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_AddRectTinyRounding(cimgui_cast<::ImVec2>(p_min), cimgui_cast<::ImVec2>(p_max), col, rounding, thickness, flags);
+}
+CIMGUI_API void ImDrawList__SelectLineTexture(ImDrawList* self, float screen_thickness, ImVec2* out_uv0, ImVec2* out_uv1, float* out_fringe, ImDrawFlags flags)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_SelectLineTexture(screen_thickness, reinterpret_cast<::ImVec2*>(out_uv0), reinterpret_cast<::ImVec2*>(out_uv1), out_fringe, flags);
+}
+CIMGUI_API float ImDrawList__CalculateCenterBiasedOffset(ImDrawList* self, float thickness)
+{
+ return reinterpret_cast<::ImDrawList*>(self)->_CalculateCenterBiasedOffset(thickness);
+}
+CIMGUI_API void ImDrawList__AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags, float max_inner_offset)
+{
+ reinterpret_cast<::ImDrawList*>(self)->_AddPolyline(reinterpret_cast<const ::ImVec2*>(points), num_points, col, thickness, flags, max_inner_offset);
+}
+CIMGUI_API ImDrawData* ImDrawData_New(void)
+{
+ return reinterpret_cast<cimgui::ImDrawData*>(IM_NEW(::ImDrawData)());
+}
+CIMGUI_API void ImDrawData_Clear(ImDrawData* self)
+{
+ reinterpret_cast<::ImDrawData*>(self)->Clear();
+}
+CIMGUI_API void ImDrawData_AddDrawList(ImDrawData* self, ImDrawList* draw_list)
+{
+ reinterpret_cast<::ImDrawData*>(self)->AddDrawList(reinterpret_cast<::ImDrawList*>(draw_list));
+}
+CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self)
+{
+ reinterpret_cast<::ImDrawData*>(self)->DeIndexAllBuffers();
+}
+CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self, ImVec2 fb_scale)
+{
+ reinterpret_cast<::ImDrawData*>(self)->ScaleClipRects(cimgui_cast<::ImVec2>(fb_scale));
+}
+CIMGUI_API ImTextureRect* ImTextureRect_New(void)
+{
+ return reinterpret_cast<cimgui::ImTextureRect*>(IM_NEW(::ImTextureRect)());
+}
+CIMGUI_API ImTextureData* ImTextureData_New(void)
+{
+ return reinterpret_cast<cimgui::ImTextureData*>(IM_NEW(::ImTextureData)());
+}
+CIMGUI_API void ImTextureData_Create(ImTextureData* self, ImTextureFormat format, int w, int h)
+{
+ reinterpret_cast<::ImTextureData*>(self)->Create((::ImTextureFormat)format, w, h);
+}
+CIMGUI_API void ImTextureData_DestroyPixels(ImTextureData* self)
+{
+ reinterpret_cast<::ImTextureData*>(self)->DestroyPixels();
+}
+CIMGUI_API void* ImTextureData_GetPixels(ImTextureData* self)
+{
+ return reinterpret_cast<::ImTextureData*>(self)->GetPixels();
+}
+CIMGUI_API void* ImTextureData_GetPixelsAt(ImTextureData* self, int x, int y)
+{
+ return reinterpret_cast<::ImTextureData*>(self)->GetPixelsAt(x, y);
+}
+CIMGUI_API int ImTextureData_GetSizeInBytes(const ImTextureData* self)
+{
+ return reinterpret_cast<const ::ImTextureData*>(self)->GetSizeInBytes();
+}
+CIMGUI_API int ImTextureData_GetPitch(const ImTextureData* self)
+{
+ return reinterpret_cast<const ::ImTextureData*>(self)->GetPitch();
+}
+CIMGUI_API ImTextureRef ImTextureData_GetTexRef(ImTextureData* self)
+{
+ return cimgui_cast<cimgui::ImTextureRef>(reinterpret_cast<::ImTextureData*>(self)->GetTexRef());
+}
+CIMGUI_API ImTextureID ImTextureData_GetTexID(const ImTextureData* self)
+{
+ return reinterpret_cast<const ::ImTextureData*>(self)->GetTexID();
+}
+CIMGUI_API void ImTextureData_SetTexID(ImTextureData* self, ImTextureID tex_id)
+{
+ reinterpret_cast<::ImTextureData*>(self)->SetTexID(tex_id);
+}
+CIMGUI_API void ImTextureData_SetStatus(ImTextureData* self, ImTextureStatus status)
+{
+ reinterpret_cast<::ImTextureData*>(self)->SetStatus((::ImTextureStatus)status);
+}
+CIMGUI_API ImFontConfig* ImFontConfig_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontConfig*>(IM_NEW(::ImFontConfig)());
+}
+CIMGUI_API ImFontGlyph* ImFontGlyph_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontGlyph*>(IM_NEW(::ImFontGlyph)());
+}
+CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontGlyphRangesBuilder*>(IM_NEW(::ImFontGlyphRangesBuilder)());
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->Clear();
+}
+CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(const ImFontGlyphRangesBuilder* self, size_t n)
+{
+ return reinterpret_cast<const ::ImFontGlyphRangesBuilder*>(self)->GetBit(n);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, size_t n)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->SetBit(n);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self, ImWchar c)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->AddChar(c);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, const char* text)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->AddText(text);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_AddTextEx(ImFontGlyphRangesBuilder* self, const char* text, const char* text_end)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->AddText(text, text_end);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, const ImWchar* ranges)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->AddRanges(ranges);
+}
+CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges)
+{
+ reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->BuildRanges(reinterpret_cast<::ImVector<::ImWchar>*>(out_ranges));
+}
+CIMGUI_API ImFontAtlasRect* ImFontAtlasRect_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontAtlasRect*>(IM_NEW(::ImFontAtlasRect)());
+}
+CIMGUI_API ImFontAtlas* ImFontAtlas_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontAtlas*>(IM_NEW(::ImFontAtlas)());
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFont(reinterpret_cast<const ::ImFontConfig*>(font_cfg)));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefault());
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultEx(ImFontAtlas* self, const ImFontConfig* font_cfg)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefault(reinterpret_cast<const ::ImFontConfig*>(font_cfg)));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultVector(ImFontAtlas* self)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefaultVector());
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultVectorEx(ImFontAtlas* self, const ImFontConfig* font_cfg)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefaultVector(reinterpret_cast<const ::ImFontConfig*>(font_cfg)));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultBitmap(ImFontAtlas* self)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefaultBitmap());
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultBitmapEx(ImFontAtlas* self, const ImFontConfig* font_cfg)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefaultBitmap(reinterpret_cast<const ::ImFontConfig*>(font_cfg)));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromFileTTF(filename));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTFEx(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromFileTTF(filename, size_pixels, reinterpret_cast<const ::ImFontConfig*>(font_cfg), glyph_ranges));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_data_size)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryTTF(font_data, font_data_size));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTFEx(ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryTTF(font_data, font_data_size, size_pixels, reinterpret_cast<const ::ImFontConfig*>(font_cfg), glyph_ranges));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTFEx(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size, size_pixels, reinterpret_cast<const ::ImFontConfig*>(font_cfg), glyph_ranges));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85));
+}
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
+{
+ return reinterpret_cast<cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85, size_pixels, reinterpret_cast<const ::ImFontConfig*>(font_cfg), glyph_ranges));
+}
+CIMGUI_API void ImFontAtlas_RemoveFont(ImFontAtlas* self, ImFont* font)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->RemoveFont(reinterpret_cast<::ImFont*>(font));
+}
+CIMGUI_API void ImFontAtlas_CompactCache(ImFontAtlas* self)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->CompactCache();
+}
+CIMGUI_API void ImFontAtlas_SetFontLoader(ImFontAtlas* self, const ImFontLoader* font_loader)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->SetFontLoader(reinterpret_cast<const ::ImFontLoader*>(font_loader));
+}
+CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->Clear();
+}
+CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->ClearFonts();
+}
+CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->ClearInputData();
+}
+CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->ClearTexData();
+}
+CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self)
+{
+ return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesDefault();
+}
+CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRect(ImFontAtlas* self, int width, int height)
+{
+ return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRect(width, height);
+}
+CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRectEx(ImFontAtlas* self, int width, int height, ImFontAtlasRect* out_r)
+{
+ return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRect(width, height, reinterpret_cast<::ImFontAtlasRect*>(out_r));
+}
+CIMGUI_API void ImFontAtlas_RemoveCustomRect(ImFontAtlas* self, ImFontAtlasRectId id)
+{
+ reinterpret_cast<::ImFontAtlas*>(self)->RemoveCustomRect(id);
+}
+CIMGUI_API bool ImFontAtlas_GetCustomRect(const ImFontAtlas* self, ImFontAtlasRectId id, ImFontAtlasRect* out_r)
+{
+ return reinterpret_cast<const ::ImFontAtlas*>(self)->GetCustomRect(id, reinterpret_cast<::ImFontAtlasRect*>(out_r));
+}
+CIMGUI_API ImFontBaked* ImFontBaked_New(void)
+{
+ return reinterpret_cast<cimgui::ImFontBaked*>(IM_NEW(::ImFontBaked)());
+}
+CIMGUI_API void ImFontBaked_ClearOutputData(ImFontBaked* self)
+{
+ reinterpret_cast<::ImFontBaked*>(self)->ClearOutputData();
+}
+CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyph(ImFontBaked* self, ImWchar c)
+{
+ return reinterpret_cast<cimgui::ImFontGlyph*>(reinterpret_cast<::ImFontBaked*>(self)->FindGlyph(c));
+}
+CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyphNoFallback(ImFontBaked* self, ImWchar c)
+{
+ return reinterpret_cast<cimgui::ImFontGlyph*>(reinterpret_cast<::ImFontBaked*>(self)->FindGlyphNoFallback(c));
+}
+CIMGUI_API float ImFontBaked_GetCharAdvance(ImFontBaked* self, ImWchar c)
+{
+ return reinterpret_cast<::ImFontBaked*>(self)->GetCharAdvance(c);
+}
+CIMGUI_API bool ImFontBaked_IsGlyphLoaded(ImFontBaked* self, ImWchar c)
+{
+ return reinterpret_cast<::ImFontBaked*>(self)->IsGlyphLoaded(c);
+}
+CIMGUI_API ImFont* ImFont_New(void)
+{
+ return reinterpret_cast<cimgui::ImFont*>(IM_NEW(::ImFont)());
+}
+CIMGUI_API bool ImFont_IsGlyphInFont(ImFont* self, ImWchar c)
+{
+ return reinterpret_cast<::ImFont*>(self)->IsGlyphInFont(c);
+}
+CIMGUI_API bool ImFont_IsLoaded(const ImFont* self)
+{
+ return reinterpret_cast<const ::ImFont*>(self)->IsLoaded();
+}
+CIMGUI_API const char* ImFont_GetDebugName(const ImFont* self)
+{
+ return reinterpret_cast<const ::ImFont*>(self)->GetDebugName();
+}
+CIMGUI_API ImFontBaked* ImFont_GetFontBaked(ImFont* self, float font_size)
+{
+ return reinterpret_cast<cimgui::ImFontBaked*>(reinterpret_cast<::ImFont*>(self)->GetFontBaked(font_size));
+}
+CIMGUI_API ImFontBaked* ImFont_GetFontBakedEx(ImFont* self, float font_size, float density)
+{
+ return reinterpret_cast<cimgui::ImFontBaked*>(reinterpret_cast<::ImFont*>(self)->GetFontBaked(font_size, density));
+}
+CIMGUI_API ImVec2 ImFont_CalcTextSizeA(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<::ImFont*>(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin));
+}
+CIMGUI_API ImVec2 ImFont_CalcTextSizeAEx(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** out_remaining)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<::ImFont*>(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin, text_end, out_remaining));
+}
+CIMGUI_API const char* ImFont_CalcWordWrapPosition(ImFont* self, float size, const char* text, const char* text_end, float wrap_width)
+{
+ return reinterpret_cast<::ImFont*>(self)->CalcWordWrapPosition(size, text, text_end, wrap_width);
+}
+CIMGUI_API void ImFont_RenderChar(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c)
+{
+ reinterpret_cast<::ImFont*>(self)->RenderChar(reinterpret_cast<::ImDrawList*>(draw_list), size, cimgui_cast<::ImVec2>(pos), col, c);
+}
+CIMGUI_API void ImFont_RenderCharEx(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c, const ImVec4* cpu_fine_clip)
+{
+ reinterpret_cast<::ImFont*>(self)->RenderChar(reinterpret_cast<::ImDrawList*>(draw_list), size, cimgui_cast<::ImVec2>(pos), col, c, reinterpret_cast<const ::ImVec4*>(cpu_fine_clip));
+}
+CIMGUI_API void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end)
+{
+ reinterpret_cast<::ImFont*>(self)->RenderText(reinterpret_cast<::ImDrawList*>(draw_list), size, cimgui_cast<::ImVec2>(pos), col, cimgui_cast<::ImVec4>(clip_rect), text_begin, text_end);
+}
+CIMGUI_API void ImFont_RenderTextEx(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, ImDrawTextFlags flags)
+{
+ reinterpret_cast<::ImFont*>(self)->RenderText(reinterpret_cast<::ImDrawList*>(draw_list), size, cimgui_cast<::ImVec2>(pos), col, cimgui_cast<::ImVec4>(clip_rect), text_begin, text_end, wrap_width, flags);
+}
+CIMGUI_API void ImFont_ClearOutputData(ImFont* self)
+{
+ reinterpret_cast<::ImFont*>(self)->ClearOutputData();
+}
+CIMGUI_API void ImFont_AddRemapCodepoint(ImFont* self, ImWchar from_codepoint, ImWchar to_codepoint)
+{
+ reinterpret_cast<::ImFont*>(self)->AddRemapCodepoint(from_codepoint, to_codepoint);
+}
+CIMGUI_API void ImFont_AddRemapCodepointToGlyphIndex(ImFont* self, ImWchar from_codepoint, int font_src_idx, int glyph_idx)
+{
+ reinterpret_cast<::ImFont*>(self)->AddRemapCodepointToGlyphIndex(from_codepoint, font_src_idx, glyph_idx);
+}
+CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self, unsigned int c_begin, unsigned int c_last)
+{
+ return reinterpret_cast<::ImFont*>(self)->IsGlyphRangeUnused(c_begin, c_last);
+}
+CIMGUI_API ImGuiViewport* ImGuiViewport_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiViewport*>(IM_NEW(::ImGuiViewport)());
+}
+CIMGUI_API ImVec2 ImGuiViewport_GetCenter(const ImGuiViewport* self)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<const ::ImGuiViewport*>(self)->GetCenter());
+}
+CIMGUI_API ImVec2 ImGuiViewport_GetWorkCenter(const ImGuiViewport* self)
+{
+ return cimgui_cast<cimgui::ImVec2>(reinterpret_cast<const ::ImGuiViewport*>(self)->GetWorkCenter());
+}
+CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiPlatformIO*>(IM_NEW(::ImGuiPlatformIO)());
+}
+CIMGUI_API void ImGuiPlatformIO_ClearPlatformHandlers(ImGuiPlatformIO* self)
+{
+ reinterpret_cast<::ImGuiPlatformIO*>(self)->ClearPlatformHandlers();
+}
+CIMGUI_API void ImGuiPlatformIO_ClearRendererHandlers(ImGuiPlatformIO* self)
+{
+ reinterpret_cast<::ImGuiPlatformIO*>(self)->ClearRendererHandlers();
+}
+CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_New(void)
+{
+ return reinterpret_cast<cimgui::ImGuiPlatformImeData*>(IM_NEW(::ImGuiPlatformImeData)());
+}
+CIMGUI_API void ImVec2_Delete(ImVec2* self) { IM_DELETE(reinterpret_cast<::ImVec2*>(self)); }
+CIMGUI_API void ImVec4_Delete(ImVec4* self) { IM_DELETE(reinterpret_cast<::ImVec4*>(self)); }
+CIMGUI_API void ImTextureRef_Delete(ImTextureRef* self) { IM_DELETE(reinterpret_cast<::ImTextureRef*>(self)); }
+CIMGUI_API void ImGuiTableSortSpecs_Delete(ImGuiTableSortSpecs* self) { IM_DELETE(reinterpret_cast<::ImGuiTableSortSpecs*>(self)); }
+CIMGUI_API void ImGuiTableColumnSortSpecs_Delete(ImGuiTableColumnSortSpecs* self) { IM_DELETE(reinterpret_cast<::ImGuiTableColumnSortSpecs*>(self)); }
+CIMGUI_API void ImGuiStyle_Delete(ImGuiStyle* self) { IM_DELETE(reinterpret_cast<::ImGuiStyle*>(self)); }
+CIMGUI_API void ImGuiKeyData_Delete(ImGuiKeyData* self) { IM_DELETE(reinterpret_cast<::ImGuiKeyData*>(self)); }
+CIMGUI_API void ImGuiIO_Delete(ImGuiIO* self) { IM_DELETE(reinterpret_cast<::ImGuiIO*>(self)); }
+CIMGUI_API void ImGuiInputTextCallbackData_Delete(ImGuiInputTextCallbackData* self) { IM_DELETE(reinterpret_cast<::ImGuiInputTextCallbackData*>(self)); }
+CIMGUI_API void ImGuiSizeCallbackData_Delete(ImGuiSizeCallbackData* self) { IM_DELETE(reinterpret_cast<::ImGuiSizeCallbackData*>(self)); }
+CIMGUI_API void ImGuiPayload_Delete(ImGuiPayload* self) { IM_DELETE(reinterpret_cast<::ImGuiPayload*>(self)); }
+CIMGUI_API void ImGuiOnceUponAFrame_Delete(ImGuiOnceUponAFrame* self) { IM_DELETE(reinterpret_cast<::ImGuiOnceUponAFrame*>(self)); }
+CIMGUI_API void ImGuiTextFilter_Delete(ImGuiTextFilter* self) { IM_DELETE(reinterpret_cast<::ImGuiTextFilter*>(self)); }
+CIMGUI_API void ImGuiTextBuffer_Delete(ImGuiTextBuffer* self) { IM_DELETE(reinterpret_cast<::ImGuiTextBuffer*>(self)); }
+CIMGUI_API void ImGuiStoragePair_Delete(ImGuiStoragePair* self) { IM_DELETE(reinterpret_cast<::ImGuiStoragePair*>(self)); }
+CIMGUI_API void ImGuiStorage_Delete(ImGuiStorage* self) { IM_DELETE(reinterpret_cast<::ImGuiStorage*>(self)); }
+CIMGUI_API void ImGuiListClipper_Delete(ImGuiListClipper* self) { IM_DELETE(reinterpret_cast<::ImGuiListClipper*>(self)); }
+CIMGUI_API void ImColor_Delete(ImColor* self) { IM_DELETE(reinterpret_cast<::ImColor*>(self)); }
+CIMGUI_API void ImGuiMultiSelectIO_Delete(ImGuiMultiSelectIO* self) { IM_DELETE(reinterpret_cast<::ImGuiMultiSelectIO*>(self)); }
+CIMGUI_API void ImGuiSelectionRequest_Delete(ImGuiSelectionRequest* self) { IM_DELETE(reinterpret_cast<::ImGuiSelectionRequest*>(self)); }
+CIMGUI_API void ImGuiSelectionBasicStorage_Delete(ImGuiSelectionBasicStorage* self) { IM_DELETE(reinterpret_cast<::ImGuiSelectionBasicStorage*>(self)); }
+CIMGUI_API void ImGuiSelectionExternalStorage_Delete(ImGuiSelectionExternalStorage* self) { IM_DELETE(reinterpret_cast<::ImGuiSelectionExternalStorage*>(self)); }
+CIMGUI_API void ImDrawCmd_Delete(ImDrawCmd* self) { IM_DELETE(reinterpret_cast<::ImDrawCmd*>(self)); }
+CIMGUI_API void ImDrawVert_Delete(ImDrawVert* self) { IM_DELETE(reinterpret_cast<::ImDrawVert*>(self)); }
+CIMGUI_API void ImDrawCmdHeader_Delete(ImDrawCmdHeader* self) { IM_DELETE(reinterpret_cast<::ImDrawCmdHeader*>(self)); }
+CIMGUI_API void ImDrawChannel_Delete(ImDrawChannel* self) { IM_DELETE(reinterpret_cast<::ImDrawChannel*>(self)); }
+CIMGUI_API void ImDrawListSplitter_Delete(ImDrawListSplitter* self) { IM_DELETE(reinterpret_cast<::ImDrawListSplitter*>(self)); }
+CIMGUI_API void ImDrawList_Delete(ImDrawList* self) { IM_DELETE(reinterpret_cast<::ImDrawList*>(self)); }
+CIMGUI_API void ImDrawData_Delete(ImDrawData* self) { IM_DELETE(reinterpret_cast<::ImDrawData*>(self)); }
+CIMGUI_API void ImTextureRect_Delete(ImTextureRect* self) { IM_DELETE(reinterpret_cast<::ImTextureRect*>(self)); }
+CIMGUI_API void ImTextureData_Delete(ImTextureData* self) { IM_DELETE(reinterpret_cast<::ImTextureData*>(self)); }
+CIMGUI_API void ImFontConfig_Delete(ImFontConfig* self) { IM_DELETE(reinterpret_cast<::ImFontConfig*>(self)); }
+CIMGUI_API void ImFontGlyph_Delete(ImFontGlyph* self) { IM_DELETE(reinterpret_cast<::ImFontGlyph*>(self)); }
+CIMGUI_API void ImFontGlyphRangesBuilder_Delete(ImFontGlyphRangesBuilder* self) { IM_DELETE(reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)); }
+CIMGUI_API void ImFontAtlasRect_Delete(ImFontAtlasRect* self) { IM_DELETE(reinterpret_cast<::ImFontAtlasRect*>(self)); }
+CIMGUI_API void ImFontAtlas_Delete(ImFontAtlas* self) { IM_DELETE(reinterpret_cast<::ImFontAtlas*>(self)); }
+CIMGUI_API void ImFontBaked_Delete(ImFontBaked* self) { IM_DELETE(reinterpret_cast<::ImFontBaked*>(self)); }
+CIMGUI_API void ImFont_Delete(ImFont* self) { IM_DELETE(reinterpret_cast<::ImFont*>(self)); }
+CIMGUI_API void ImGuiViewport_Delete(ImGuiViewport* self) { IM_DELETE(reinterpret_cast<::ImGuiViewport*>(self)); }
+CIMGUI_API void ImGuiPlatformIO_Delete(ImGuiPlatformIO* self) { IM_DELETE(reinterpret_cast<::ImGuiPlatformIO*>(self)); }
+CIMGUI_API void ImGuiPlatformImeData_Delete(ImGuiPlatformImeData* self) { IM_DELETE(reinterpret_cast<::ImGuiPlatformImeData*>(self)); }
+CIMGUI_API ImTextureRef ImTextureRef_FromID(ImTextureID tex_id) { return cimgui_cast<ImTextureRef>(::ImTextureRef(tex_id)); }
+CIMGUI_API size_t cImGui_SizeOf(const char* n)
+{
+ if (strcmp(n, "ImVec2") == 0) return sizeof(::ImVec2);
+ if (strcmp(n, "ImVec4") == 0) return sizeof(::ImVec4);
+ if (strcmp(n, "ImTextureRef") == 0) return sizeof(::ImTextureRef);
+ if (strcmp(n, "ImGuiTableSortSpecs") == 0) return sizeof(::ImGuiTableSortSpecs);
+ if (strcmp(n, "ImGuiTableColumnSortSpecs") == 0) return sizeof(::ImGuiTableColumnSortSpecs);
+ if (strcmp(n, "ImGuiStyle") == 0) return sizeof(::ImGuiStyle);
+ if (strcmp(n, "ImGuiKeyData") == 0) return sizeof(::ImGuiKeyData);
+ if (strcmp(n, "ImGuiIO") == 0) return sizeof(::ImGuiIO);
+ if (strcmp(n, "ImGuiInputTextCallbackData") == 0) return sizeof(::ImGuiInputTextCallbackData);
+ if (strcmp(n, "ImGuiSizeCallbackData") == 0) return sizeof(::ImGuiSizeCallbackData);
+ if (strcmp(n, "ImGuiPayload") == 0) return sizeof(::ImGuiPayload);
+ if (strcmp(n, "ImGuiOnceUponAFrame") == 0) return sizeof(::ImGuiOnceUponAFrame);
+ if (strcmp(n, "ImGuiTextFilter") == 0) return sizeof(::ImGuiTextFilter);
+ if (strcmp(n, "ImGuiTextBuffer") == 0) return sizeof(::ImGuiTextBuffer);
+ if (strcmp(n, "ImGuiStoragePair") == 0) return sizeof(::ImGuiStoragePair);
+ if (strcmp(n, "ImGuiStorage") == 0) return sizeof(::ImGuiStorage);
+ if (strcmp(n, "ImGuiListClipper") == 0) return sizeof(::ImGuiListClipper);
+ if (strcmp(n, "ImColor") == 0) return sizeof(::ImColor);
+ if (strcmp(n, "ImGuiMultiSelectIO") == 0) return sizeof(::ImGuiMultiSelectIO);
+ if (strcmp(n, "ImGuiSelectionRequest") == 0) return sizeof(::ImGuiSelectionRequest);
+ if (strcmp(n, "ImGuiSelectionBasicStorage") == 0) return sizeof(::ImGuiSelectionBasicStorage);
+ if (strcmp(n, "ImGuiSelectionExternalStorage") == 0) return sizeof(::ImGuiSelectionExternalStorage);
+ if (strcmp(n, "ImDrawCmd") == 0) return sizeof(::ImDrawCmd);
+ if (strcmp(n, "ImDrawVert") == 0) return sizeof(::ImDrawVert);
+ if (strcmp(n, "ImDrawCmdHeader") == 0) return sizeof(::ImDrawCmdHeader);
+ if (strcmp(n, "ImDrawChannel") == 0) return sizeof(::ImDrawChannel);
+ if (strcmp(n, "ImDrawListSplitter") == 0) return sizeof(::ImDrawListSplitter);
+ if (strcmp(n, "ImDrawList") == 0) return sizeof(::ImDrawList);
+ if (strcmp(n, "ImDrawData") == 0) return sizeof(::ImDrawData);
+ if (strcmp(n, "ImTextureRect") == 0) return sizeof(::ImTextureRect);
+ if (strcmp(n, "ImTextureData") == 0) return sizeof(::ImTextureData);
+ if (strcmp(n, "ImFontConfig") == 0) return sizeof(::ImFontConfig);
+ if (strcmp(n, "ImFontGlyph") == 0) return sizeof(::ImFontGlyph);
+ if (strcmp(n, "ImFontGlyphRangesBuilder") == 0) return sizeof(::ImFontGlyphRangesBuilder);
+ if (strcmp(n, "ImFontAtlasRect") == 0) return sizeof(::ImFontAtlasRect);
+ if (strcmp(n, "ImFontAtlas") == 0) return sizeof(::ImFontAtlas);
+ if (strcmp(n, "ImFontBaked") == 0) return sizeof(::ImFontBaked);
+ if (strcmp(n, "ImFont") == 0) return sizeof(::ImFont);
+ if (strcmp(n, "ImGuiViewport") == 0) return sizeof(::ImGuiViewport);
+ if (strcmp(n, "ImGuiPlatformIO") == 0) return sizeof(::ImGuiPlatformIO);
+ if (strcmp(n, "ImGuiPlatformImeData") == 0) return sizeof(::ImGuiPlatformImeData);
+ return 0;
+}
+
+} // extern "C"
+} // namespace cimgui
diff --git a/bindings/imgui/c/cimgui.h b/bindings/imgui/c/cimgui.h
new file mode 100644
index 0000000..41664e5
--- /dev/null
+++ b/bindings/imgui/c/cimgui.h
@@ -0,0 +1,2633 @@
+// cimgui.h: the C API of Dear ImGui 1.93.1 WIP (as vendored in bindings/imgui/extern/imgui).
+// Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py).
+//
+// Naming: ImGui::Button -> ImGui_Button(label) (required arguments) and
+// ImGui_ButtonEx(label, size) (all arguments: C has no default arguments).
+// Methods take the object first: ImDrawList_AddLine(draw_list, p1, p2, col).
+// Overloads get a suffix from the differing parameter types: ImGui_PushIDInt, ImGui_MenuItemBoolPtr.
+// References become pointers (ImGui_GetIO() returns ImGuiIO*); const ImVec2& becomes ImVec2.
+// Constructors / destructors: X_New(...) / X_Delete(X*). Struct layouts match imgui.h
+// (checked by static_asserts in cimgui.cpp).
+//
+// SPDX-License-Identifier: MIT (Dear ImGui) / GPL-2.0-or-later (BUI)
+
+#pragma once
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdarg.h>
+
+#ifndef CIMGUI_API
+#define CIMGUI_API
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef IMGUI_VERSION
+#define IMGUI_VERSION "1.93.1 WIP"
+#endif
+#ifndef IMGUI_VERSION_NUM
+#define IMGUI_VERSION_NUM 19302
+#endif
+#ifndef IMGUI_PAYLOAD_TYPE_COLOR_3F
+#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F"
+#endif
+#ifndef IMGUI_PAYLOAD_TYPE_COLOR_4F
+#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F"
+#endif
+#ifndef IM_UNICODE_CODEPOINT_INVALID
+#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD
+#endif
+#ifndef IM_UNICODE_CODEPOINT_MAX
+#define IM_UNICODE_CODEPOINT_MAX 0xFFFF
+#endif
+#ifndef IM_COL32_R_SHIFT
+#define IM_COL32_R_SHIFT 0
+#endif
+#ifndef IM_COL32_G_SHIFT
+#define IM_COL32_G_SHIFT 8
+#endif
+#ifndef IM_COL32_B_SHIFT
+#define IM_COL32_B_SHIFT 16
+#endif
+#ifndef IM_COL32_A_SHIFT
+#define IM_COL32_A_SHIFT 24
+#endif
+#ifndef IM_COL32_A_MASK
+#define IM_COL32_A_MASK 0xFF000000
+#endif
+#define IM_COL32(R,G,B,A) (((ImU32)(A)<<IM_COL32_A_SHIFT) | ((ImU32)(B)<<IM_COL32_B_SHIFT) | ((ImU32)(G)<<IM_COL32_G_SHIFT) | ((ImU32)(R)<<IM_COL32_R_SHIFT))
+#define IM_COL32_WHITE IM_COL32(255,255,255,255)
+#define IM_COL32_BLACK IM_COL32(0,0,0,255)
+#define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0)
+
+// Opaque and forward-declared structs
+struct ImDrawListSharedData; typedef struct ImDrawListSharedData ImDrawListSharedData;
+struct ImFontAtlasBuilder; typedef struct ImFontAtlasBuilder ImFontAtlasBuilder;
+struct ImFontLoader; typedef struct ImFontLoader ImFontLoader;
+struct ImGuiContext; typedef struct ImGuiContext ImGuiContext;
+struct ImGuiTextFilterItem; typedef struct ImGuiTextFilterItem ImGuiTextFilterItem;
+struct ImVec2; typedef struct ImVec2 ImVec2;
+struct ImVec4; typedef struct ImVec4 ImVec4;
+struct ImTextureRef; typedef struct ImTextureRef ImTextureRef;
+struct ImGuiTableSortSpecs; typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs;
+struct ImGuiTableColumnSortSpecs; typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs;
+struct ImGuiStyle; typedef struct ImGuiStyle ImGuiStyle;
+struct ImGuiKeyData; typedef struct ImGuiKeyData ImGuiKeyData;
+struct ImGuiIO; typedef struct ImGuiIO ImGuiIO;
+struct ImGuiInputTextCallbackData; typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData;
+struct ImGuiSizeCallbackData; typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
+struct ImGuiPayload; typedef struct ImGuiPayload ImGuiPayload;
+struct ImGuiOnceUponAFrame; typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame;
+struct ImGuiTextFilter; typedef struct ImGuiTextFilter ImGuiTextFilter;
+struct ImGuiTextBuffer; typedef struct ImGuiTextBuffer ImGuiTextBuffer;
+struct ImGuiStoragePair; typedef struct ImGuiStoragePair ImGuiStoragePair;
+struct ImGuiStorage; typedef struct ImGuiStorage ImGuiStorage;
+struct ImGuiListClipper; typedef struct ImGuiListClipper ImGuiListClipper;
+struct ImColor; typedef struct ImColor ImColor;
+struct ImGuiMultiSelectIO; typedef struct ImGuiMultiSelectIO ImGuiMultiSelectIO;
+struct ImGuiSelectionRequest; typedef struct ImGuiSelectionRequest ImGuiSelectionRequest;
+struct ImGuiSelectionBasicStorage; typedef struct ImGuiSelectionBasicStorage ImGuiSelectionBasicStorage;
+struct ImGuiSelectionExternalStorage; typedef struct ImGuiSelectionExternalStorage ImGuiSelectionExternalStorage;
+struct ImDrawCmd; typedef struct ImDrawCmd ImDrawCmd;
+struct ImDrawVert; typedef struct ImDrawVert ImDrawVert;
+struct ImDrawCmdHeader; typedef struct ImDrawCmdHeader ImDrawCmdHeader;
+struct ImDrawChannel; typedef struct ImDrawChannel ImDrawChannel;
+struct ImDrawListSplitter; typedef struct ImDrawListSplitter ImDrawListSplitter;
+struct ImDrawList; typedef struct ImDrawList ImDrawList;
+struct ImDrawData; typedef struct ImDrawData ImDrawData;
+struct ImTextureRect; typedef struct ImTextureRect ImTextureRect;
+struct ImTextureData; typedef struct ImTextureData ImTextureData;
+struct ImFontConfig; typedef struct ImFontConfig ImFontConfig;
+struct ImFontGlyph; typedef struct ImFontGlyph ImFontGlyph;
+struct ImFontGlyphRangesBuilder; typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder;
+struct ImFontAtlasRect; typedef struct ImFontAtlasRect ImFontAtlasRect;
+struct ImFontAtlas; typedef struct ImFontAtlas ImFontAtlas;
+struct ImFontBaked; typedef struct ImFontBaked ImFontBaked;
+struct ImFont; typedef struct ImFont ImFont;
+struct ImGuiViewport; typedef struct ImGuiViewport ImGuiViewport;
+struct ImGuiPlatformIO; typedef struct ImGuiPlatformIO ImGuiPlatformIO;
+struct ImGuiPlatformImeData; typedef struct ImGuiPlatformImeData ImGuiPlatformImeData;
+
+// Scalar typedefs
+typedef unsigned int ImGuiID;
+typedef signed char ImS8;
+typedef unsigned char ImU8;
+typedef signed short ImS16;
+typedef unsigned short ImU16;
+typedef signed int ImS32;
+typedef unsigned int ImU32;
+typedef signed long long ImS64;
+typedef unsigned long long ImU64;
+typedef int ImGuiCol;
+typedef int ImGuiCond;
+typedef int ImGuiDataType;
+typedef int ImGuiMouseButton;
+typedef int ImGuiMouseCursor;
+typedef int ImGuiStyleVar;
+typedef int ImGuiTableBgTarget;
+typedef int ImDrawFlags;
+typedef int ImDrawTextFlags;
+typedef int ImFontFlags;
+typedef int ImFontAtlasFlags;
+typedef int ImGuiBackendFlags;
+typedef int ImGuiButtonFlags;
+typedef int ImGuiChildFlags;
+typedef int ImGuiColorEditFlags;
+typedef int ImGuiConfigFlags;
+typedef int ImGuiComboFlags;
+typedef int ImGuiDragDropFlags;
+typedef int ImGuiFocusedFlags;
+typedef int ImGuiHoveredFlags;
+typedef int ImGuiInputFlags;
+typedef int ImGuiInputTextFlags;
+typedef int ImGuiItemFlags;
+typedef int ImGuiKeyChord;
+typedef int ImGuiListClipperFlags;
+typedef int ImGuiPopupFlags;
+typedef int ImGuiMultiSelectFlags;
+typedef int ImGuiSelectableFlags;
+typedef int ImGuiSliderFlags;
+typedef int ImGuiTabBarFlags;
+typedef int ImGuiTabItemFlags;
+typedef int ImGuiTableFlags;
+typedef int ImGuiTableColumnFlags;
+typedef int ImGuiTableRowFlags;
+typedef int ImGuiTreeNodeFlags;
+typedef int ImGuiViewportFlags;
+typedef int ImGuiWindowFlags;
+typedef unsigned int ImWchar32;
+typedef unsigned short ImWchar16;
+typedef ImWchar16 ImWchar;
+typedef ImS64 ImGuiSelectionUserData;
+typedef ImU64 ImTextureID;
+typedef unsigned short ImDrawIdx;
+typedef int ImFontAtlasRectId;
+
+// Enums (values as integers; enum types are int-sized typedefs in C)
+enum ImGuiWindowFlags_ {
+ ImGuiWindowFlags_None = 0,
+ ImGuiWindowFlags_NoTitleBar = 1,
+ ImGuiWindowFlags_NoResize = 2,
+ ImGuiWindowFlags_NoMove = 4,
+ ImGuiWindowFlags_NoScrollbar = 8,
+ ImGuiWindowFlags_NoScrollWithMouse = 16,
+ ImGuiWindowFlags_NoCollapse = 32,
+ ImGuiWindowFlags_AlwaysAutoResize = 64,
+ ImGuiWindowFlags_NoBackground = 128,
+ ImGuiWindowFlags_NoSavedSettings = 256,
+ ImGuiWindowFlags_NoMouseInputs = 512,
+ ImGuiWindowFlags_MenuBar = 1024,
+ ImGuiWindowFlags_HorizontalScrollbar = 2048,
+ ImGuiWindowFlags_NoFocusOnAppearing = 4096,
+ ImGuiWindowFlags_NoBringToFrontOnFocus = 8192,
+ ImGuiWindowFlags_AlwaysVerticalScrollbar = 16384,
+ ImGuiWindowFlags_AlwaysHorizontalScrollbar = 32768,
+ ImGuiWindowFlags_NoNavInputs = 65536,
+ ImGuiWindowFlags_NoNavFocus = 131072,
+ ImGuiWindowFlags_UnsavedDocument = 262144,
+ ImGuiWindowFlags_NoNav = 196608,
+ ImGuiWindowFlags_NoDecoration = 43,
+ ImGuiWindowFlags_NoInputs = 197120,
+ ImGuiWindowFlags_ChildWindow = 16777216,
+ ImGuiWindowFlags_Tooltip = 33554432,
+ ImGuiWindowFlags_Popup = 67108864,
+ ImGuiWindowFlags_Modal = 134217728,
+ ImGuiWindowFlags_ChildMenu = 268435456,
+};
+enum ImGuiChildFlags_ {
+ ImGuiChildFlags_None = 0,
+ ImGuiChildFlags_Borders = 1,
+ ImGuiChildFlags_AlwaysUseWindowPadding = 2,
+ ImGuiChildFlags_ResizeX = 4,
+ ImGuiChildFlags_ResizeY = 8,
+ ImGuiChildFlags_AutoResizeX = 16,
+ ImGuiChildFlags_AutoResizeY = 32,
+ ImGuiChildFlags_AlwaysAutoResize = 64,
+ ImGuiChildFlags_FrameStyle = 128,
+ ImGuiChildFlags_NavFlattened = 256,
+};
+enum ImGuiItemFlags_ {
+ ImGuiItemFlags_None = 0,
+ ImGuiItemFlags_NoTabStop = 1,
+ ImGuiItemFlags_NoNav = 2,
+ ImGuiItemFlags_NoNavDefaultFocus = 4,
+ ImGuiItemFlags_ButtonRepeat = 8,
+ ImGuiItemFlags_AutoClosePopups = 16,
+ ImGuiItemFlags_AllowDuplicateId = 32,
+ ImGuiItemFlags_Disabled = 64,
+ ImGuiItemFlags_LiveEditOnInputText = 128,
+ ImGuiItemFlags_LiveEditOnInputScalar = 256,
+ ImGuiItemFlags_LiveEditOnInput = 384,
+ ImGuiItemFlags_MixedValue = 512,
+};
+enum ImGuiInputTextFlags_ {
+ ImGuiInputTextFlags_None = 0,
+ ImGuiInputTextFlags_CharsDecimal = 1,
+ ImGuiInputTextFlags_CharsHexadecimal = 2,
+ ImGuiInputTextFlags_CharsScientific = 4,
+ ImGuiInputTextFlags_CharsUppercase = 8,
+ ImGuiInputTextFlags_CharsNoBlank = 16,
+ ImGuiInputTextFlags_AllowTabInput = 32,
+ ImGuiInputTextFlags_EnterReturnsTrue = 64,
+ ImGuiInputTextFlags_EscapeClearsAll = 128,
+ ImGuiInputTextFlags_CtrlEnterForNewLine = 256,
+ ImGuiInputTextFlags_ReadOnly = 512,
+ ImGuiInputTextFlags_Password = 1024,
+ ImGuiInputTextFlags_AlwaysOverwrite = 2048,
+ ImGuiInputTextFlags_AutoSelectAll = 4096,
+ ImGuiInputTextFlags_ParseEmptyRefVal = 8192,
+ ImGuiInputTextFlags_DisplayEmptyRefVal = 16384,
+ ImGuiInputTextFlags_NoHorizontalScroll = 32768,
+ ImGuiInputTextFlags_NoUndoRedo = 65536,
+ ImGuiInputTextFlags_ElideLeft = 131072,
+ ImGuiInputTextFlags_CallbackCompletion = 262144,
+ ImGuiInputTextFlags_CallbackHistory = 524288,
+ ImGuiInputTextFlags_CallbackAlways = 1048576,
+ ImGuiInputTextFlags_CallbackCharFilter = 2097152,
+ ImGuiInputTextFlags_CallbackResize = 4194304,
+ ImGuiInputTextFlags_CallbackEdit = 8388608,
+ ImGuiInputTextFlags_WordWrap = 16777216,
+};
+enum ImGuiTreeNodeFlags_ {
+ ImGuiTreeNodeFlags_None = 0,
+ ImGuiTreeNodeFlags_Selected = 1,
+ ImGuiTreeNodeFlags_Framed = 2,
+ ImGuiTreeNodeFlags_AllowOverlap = 4,
+ ImGuiTreeNodeFlags_NoTreePushOnOpen = 8,
+ ImGuiTreeNodeFlags_NoAutoOpenOnLog = 16,
+ ImGuiTreeNodeFlags_DefaultOpen = 32,
+ ImGuiTreeNodeFlags_OpenOnDoubleClick = 64,
+ ImGuiTreeNodeFlags_OpenOnArrow = 128,
+ ImGuiTreeNodeFlags_Leaf = 256,
+ ImGuiTreeNodeFlags_Bullet = 512,
+ ImGuiTreeNodeFlags_FramePadding = 1024,
+ ImGuiTreeNodeFlags_SpanAvailWidth = 2048,
+ ImGuiTreeNodeFlags_SpanFullWidth = 4096,
+ ImGuiTreeNodeFlags_SpanLabelWidth = 8192,
+ ImGuiTreeNodeFlags_SpanAllColumns = 16384,
+ ImGuiTreeNodeFlags_LabelSpanAllColumns = 32768,
+ ImGuiTreeNodeFlags_NavLeftJumpsToParent = 131072,
+ ImGuiTreeNodeFlags_CollapsingHeader = 26,
+ ImGuiTreeNodeFlags_DrawLinesNone = 262144,
+ ImGuiTreeNodeFlags_DrawLinesFull = 524288,
+ ImGuiTreeNodeFlags_DrawLinesToNodes = 1048576,
+};
+enum ImGuiPopupFlags_ {
+ ImGuiPopupFlags_None = 0,
+ ImGuiPopupFlags_MouseButtonLeft = 4,
+ ImGuiPopupFlags_MouseButtonRight = 8,
+ ImGuiPopupFlags_MouseButtonMiddle = 12,
+ ImGuiPopupFlags_NoReopen = 32,
+ ImGuiPopupFlags_NoOpenOverExistingPopup = 128,
+ ImGuiPopupFlags_NoOpenOverItems = 256,
+ ImGuiPopupFlags_AnyPopupId = 1024,
+ ImGuiPopupFlags_AnyPopupLevel = 2048,
+ ImGuiPopupFlags_AnyPopup = 3072,
+ ImGuiPopupFlags_MouseButtonShift_ = 2,
+ ImGuiPopupFlags_MouseButtonMask_ = 12,
+ ImGuiPopupFlags_InvalidMask_ = 3,
+};
+enum ImGuiSelectableFlags_ {
+ ImGuiSelectableFlags_None = 0,
+ ImGuiSelectableFlags_NoAutoClosePopups = 1,
+ ImGuiSelectableFlags_SpanAllColumns = 2,
+ ImGuiSelectableFlags_AllowDoubleClick = 4,
+ ImGuiSelectableFlags_Disabled = 8,
+ ImGuiSelectableFlags_AllowOverlap = 16,
+ ImGuiSelectableFlags_Highlight = 32,
+ ImGuiSelectableFlags_SelectOnNav = 64,
+};
+enum ImGuiComboFlags_ {
+ ImGuiComboFlags_None = 0,
+ ImGuiComboFlags_PopupAlignLeft = 1,
+ ImGuiComboFlags_HeightSmall = 2,
+ ImGuiComboFlags_HeightRegular = 4,
+ ImGuiComboFlags_HeightLarge = 8,
+ ImGuiComboFlags_HeightLargest = 16,
+ ImGuiComboFlags_NoArrowButton = 32,
+ ImGuiComboFlags_NoPreview = 64,
+ ImGuiComboFlags_WidthFitPreview = 128,
+ ImGuiComboFlags_HeightMask_ = 30,
+};
+enum ImGuiTabBarFlags_ {
+ ImGuiTabBarFlags_None = 0,
+ ImGuiTabBarFlags_Reorderable = 1,
+ ImGuiTabBarFlags_AutoSelectNewTabs = 2,
+ ImGuiTabBarFlags_TabListPopupButton = 4,
+ ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 8,
+ ImGuiTabBarFlags_NoTabListScrollingButtons = 16,
+ ImGuiTabBarFlags_NoTooltip = 32,
+ ImGuiTabBarFlags_DrawSelectedOverline = 64,
+ ImGuiTabBarFlags_FittingPolicyMixed = 128,
+ ImGuiTabBarFlags_FittingPolicyShrink = 256,
+ ImGuiTabBarFlags_FittingPolicyScroll = 512,
+ ImGuiTabBarFlags_FittingPolicyMask_ = 896,
+ ImGuiTabBarFlags_FittingPolicyDefault_ = 128,
+};
+enum ImGuiTabItemFlags_ {
+ ImGuiTabItemFlags_None = 0,
+ ImGuiTabItemFlags_UnsavedDocument = 1,
+ ImGuiTabItemFlags_SetSelected = 2,
+ ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 4,
+ ImGuiTabItemFlags_NoPushId = 8,
+ ImGuiTabItemFlags_NoTooltip = 16,
+ ImGuiTabItemFlags_NoReorder = 32,
+ ImGuiTabItemFlags_Leading = 64,
+ ImGuiTabItemFlags_Trailing = 128,
+ ImGuiTabItemFlags_NoAssumedClosure = 256,
+};
+enum ImGuiFocusedFlags_ {
+ ImGuiFocusedFlags_None = 0,
+ ImGuiFocusedFlags_ChildWindows = 1,
+ ImGuiFocusedFlags_RootWindow = 2,
+ ImGuiFocusedFlags_AnyWindow = 4,
+ ImGuiFocusedFlags_NoPopupHierarchy = 8,
+ ImGuiFocusedFlags_RootAndChildWindows = 3,
+};
+enum ImGuiHoveredFlags_ {
+ ImGuiHoveredFlags_None = 0,
+ ImGuiHoveredFlags_ChildWindows = 1,
+ ImGuiHoveredFlags_RootWindow = 2,
+ ImGuiHoveredFlags_AnyWindow = 4,
+ ImGuiHoveredFlags_NoPopupHierarchy = 8,
+ ImGuiHoveredFlags_AllowWhenBlockedByPopup = 32,
+ ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 128,
+ ImGuiHoveredFlags_AllowWhenOverlappedByItem = 256,
+ ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 512,
+ ImGuiHoveredFlags_AllowWhenDisabled = 1024,
+ ImGuiHoveredFlags_NoNavOverride = 2048,
+ ImGuiHoveredFlags_AllowWhenOverlapped = 768,
+ ImGuiHoveredFlags_RectOnly = 928,
+ ImGuiHoveredFlags_RootAndChildWindows = 3,
+ ImGuiHoveredFlags_ForTooltip = 4096,
+ ImGuiHoveredFlags_Stationary = 8192,
+ ImGuiHoveredFlags_DelayNone = 16384,
+ ImGuiHoveredFlags_DelayShort = 32768,
+ ImGuiHoveredFlags_DelayNormal = 65536,
+ ImGuiHoveredFlags_NoSharedDelay = 131072,
+};
+enum ImGuiDragDropFlags_ {
+ ImGuiDragDropFlags_None = 0,
+ ImGuiDragDropFlags_SourceNoPreviewTooltip = 1,
+ ImGuiDragDropFlags_SourceNoDisableHover = 2,
+ ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 4,
+ ImGuiDragDropFlags_SourceAllowNullID = 8,
+ ImGuiDragDropFlags_SourceExtern = 16,
+ ImGuiDragDropFlags_PayloadAutoExpire = 32,
+ ImGuiDragDropFlags_PayloadNoCrossContext = 64,
+ ImGuiDragDropFlags_PayloadNoCrossProcess = 128,
+ ImGuiDragDropFlags_AcceptBeforeDelivery = 1024,
+ ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 2048,
+ ImGuiDragDropFlags_AcceptNoPreviewTooltip = 4096,
+ ImGuiDragDropFlags_AcceptDrawAsHovered = 8192,
+ ImGuiDragDropFlags_AcceptPeekOnly = 3072,
+};
+enum ImGuiDataType_ {
+ ImGuiDataType_S8 = 0,
+ ImGuiDataType_U8 = 1,
+ ImGuiDataType_S16 = 2,
+ ImGuiDataType_U16 = 3,
+ ImGuiDataType_S32 = 4,
+ ImGuiDataType_U32 = 5,
+ ImGuiDataType_S64 = 6,
+ ImGuiDataType_U64 = 7,
+ ImGuiDataType_Float = 8,
+ ImGuiDataType_Double = 9,
+ ImGuiDataType_Bool = 10,
+ ImGuiDataType_String = 11,
+ ImGuiDataType_COUNT = 12,
+};
+typedef int ImGuiDir;
+enum ImGuiDir_ {
+ ImGuiDir_None = -1,
+ ImGuiDir_Left = 0,
+ ImGuiDir_Right = 1,
+ ImGuiDir_Up = 2,
+ ImGuiDir_Down = 3,
+ ImGuiDir_COUNT = 4,
+};
+typedef ImU8 ImGuiSortDirection;
+enum ImGuiSortDirection_ {
+ ImGuiSortDirection_None = 0,
+ ImGuiSortDirection_Ascending = 1,
+ ImGuiSortDirection_Descending = 2,
+};
+typedef int ImGuiKey;
+enum ImGuiKey_ {
+ ImGuiKey_None = 0,
+ ImGuiKey_NamedKey_BEGIN = 512,
+ ImGuiKey_Tab = 512,
+ ImGuiKey_LeftArrow = 513,
+ ImGuiKey_RightArrow = 514,
+ ImGuiKey_UpArrow = 515,
+ ImGuiKey_DownArrow = 516,
+ ImGuiKey_PageUp = 517,
+ ImGuiKey_PageDown = 518,
+ ImGuiKey_Home = 519,
+ ImGuiKey_End = 520,
+ ImGuiKey_Insert = 521,
+ ImGuiKey_Delete = 522,
+ ImGuiKey_Backspace = 523,
+ ImGuiKey_Space = 524,
+ ImGuiKey_Enter = 525,
+ ImGuiKey_Escape = 526,
+ ImGuiKey_LeftCtrl = 527,
+ ImGuiKey_LeftShift = 528,
+ ImGuiKey_LeftAlt = 529,
+ ImGuiKey_LeftSuper = 530,
+ ImGuiKey_RightCtrl = 531,
+ ImGuiKey_RightShift = 532,
+ ImGuiKey_RightAlt = 533,
+ ImGuiKey_RightSuper = 534,
+ ImGuiKey_Menu = 535,
+ ImGuiKey_0 = 536,
+ ImGuiKey_1 = 537,
+ ImGuiKey_2 = 538,
+ ImGuiKey_3 = 539,
+ ImGuiKey_4 = 540,
+ ImGuiKey_5 = 541,
+ ImGuiKey_6 = 542,
+ ImGuiKey_7 = 543,
+ ImGuiKey_8 = 544,
+ ImGuiKey_9 = 545,
+ ImGuiKey_A = 546,
+ ImGuiKey_B = 547,
+ ImGuiKey_C = 548,
+ ImGuiKey_D = 549,
+ ImGuiKey_E = 550,
+ ImGuiKey_F = 551,
+ ImGuiKey_G = 552,
+ ImGuiKey_H = 553,
+ ImGuiKey_I = 554,
+ ImGuiKey_J = 555,
+ ImGuiKey_K = 556,
+ ImGuiKey_L = 557,
+ ImGuiKey_M = 558,
+ ImGuiKey_N = 559,
+ ImGuiKey_O = 560,
+ ImGuiKey_P = 561,
+ ImGuiKey_Q = 562,
+ ImGuiKey_R = 563,
+ ImGuiKey_S = 564,
+ ImGuiKey_T = 565,
+ ImGuiKey_U = 566,
+ ImGuiKey_V = 567,
+ ImGuiKey_W = 568,
+ ImGuiKey_X = 569,
+ ImGuiKey_Y = 570,
+ ImGuiKey_Z = 571,
+ ImGuiKey_F1 = 572,
+ ImGuiKey_F2 = 573,
+ ImGuiKey_F3 = 574,
+ ImGuiKey_F4 = 575,
+ ImGuiKey_F5 = 576,
+ ImGuiKey_F6 = 577,
+ ImGuiKey_F7 = 578,
+ ImGuiKey_F8 = 579,
+ ImGuiKey_F9 = 580,
+ ImGuiKey_F10 = 581,
+ ImGuiKey_F11 = 582,
+ ImGuiKey_F12 = 583,
+ ImGuiKey_F13 = 584,
+ ImGuiKey_F14 = 585,
+ ImGuiKey_F15 = 586,
+ ImGuiKey_F16 = 587,
+ ImGuiKey_F17 = 588,
+ ImGuiKey_F18 = 589,
+ ImGuiKey_F19 = 590,
+ ImGuiKey_F20 = 591,
+ ImGuiKey_F21 = 592,
+ ImGuiKey_F22 = 593,
+ ImGuiKey_F23 = 594,
+ ImGuiKey_F24 = 595,
+ ImGuiKey_Apostrophe = 596,
+ ImGuiKey_Comma = 597,
+ ImGuiKey_Minus = 598,
+ ImGuiKey_Period = 599,
+ ImGuiKey_Slash = 600,
+ ImGuiKey_Semicolon = 601,
+ ImGuiKey_Equal = 602,
+ ImGuiKey_LeftBracket = 603,
+ ImGuiKey_Backslash = 604,
+ ImGuiKey_RightBracket = 605,
+ ImGuiKey_GraveAccent = 606,
+ ImGuiKey_CapsLock = 607,
+ ImGuiKey_ScrollLock = 608,
+ ImGuiKey_NumLock = 609,
+ ImGuiKey_PrintScreen = 610,
+ ImGuiKey_Pause = 611,
+ ImGuiKey_Keypad0 = 612,
+ ImGuiKey_Keypad1 = 613,
+ ImGuiKey_Keypad2 = 614,
+ ImGuiKey_Keypad3 = 615,
+ ImGuiKey_Keypad4 = 616,
+ ImGuiKey_Keypad5 = 617,
+ ImGuiKey_Keypad6 = 618,
+ ImGuiKey_Keypad7 = 619,
+ ImGuiKey_Keypad8 = 620,
+ ImGuiKey_Keypad9 = 621,
+ ImGuiKey_KeypadDecimal = 622,
+ ImGuiKey_KeypadDivide = 623,
+ ImGuiKey_KeypadMultiply = 624,
+ ImGuiKey_KeypadSubtract = 625,
+ ImGuiKey_KeypadAdd = 626,
+ ImGuiKey_KeypadEnter = 627,
+ ImGuiKey_KeypadEqual = 628,
+ ImGuiKey_AppBack = 629,
+ ImGuiKey_AppForward = 630,
+ ImGuiKey_Oem102 = 631,
+ ImGuiKey_GamepadStart = 632,
+ ImGuiKey_GamepadBack = 633,
+ ImGuiKey_GamepadFaceLeft = 634,
+ ImGuiKey_GamepadFaceRight = 635,
+ ImGuiKey_GamepadFaceUp = 636,
+ ImGuiKey_GamepadFaceDown = 637,
+ ImGuiKey_GamepadDpadLeft = 638,
+ ImGuiKey_GamepadDpadRight = 639,
+ ImGuiKey_GamepadDpadUp = 640,
+ ImGuiKey_GamepadDpadDown = 641,
+ ImGuiKey_GamepadL1 = 642,
+ ImGuiKey_GamepadR1 = 643,
+ ImGuiKey_GamepadL2 = 644,
+ ImGuiKey_GamepadR2 = 645,
+ ImGuiKey_GamepadL3 = 646,
+ ImGuiKey_GamepadR3 = 647,
+ ImGuiKey_GamepadLStickLeft = 648,
+ ImGuiKey_GamepadLStickRight = 649,
+ ImGuiKey_GamepadLStickUp = 650,
+ ImGuiKey_GamepadLStickDown = 651,
+ ImGuiKey_GamepadRStickLeft = 652,
+ ImGuiKey_GamepadRStickRight = 653,
+ ImGuiKey_GamepadRStickUp = 654,
+ ImGuiKey_GamepadRStickDown = 655,
+ ImGuiKey_MouseLeft = 656,
+ ImGuiKey_MouseRight = 657,
+ ImGuiKey_MouseMiddle = 658,
+ ImGuiKey_MouseX1 = 659,
+ ImGuiKey_MouseX2 = 660,
+ ImGuiKey_MouseWheelX = 661,
+ ImGuiKey_MouseWheelY = 662,
+ ImGuiKey_ReservedForModCtrl = 663,
+ ImGuiKey_ReservedForModShift = 664,
+ ImGuiKey_ReservedForModAlt = 665,
+ ImGuiKey_ReservedForModSuper = 666,
+ ImGuiKey_NamedKey_END = 667,
+ ImGuiKey_NamedKey_COUNT = 155,
+ ImGuiMod_None = 0,
+ ImGuiMod_Ctrl = 4096,
+ ImGuiMod_Shift = 8192,
+ ImGuiMod_Alt = 16384,
+ ImGuiMod_Super = 32768,
+ ImGuiMod_Mask_ = 61440,
+};
+enum ImGuiInputFlags_ {
+ ImGuiInputFlags_None = 0,
+ ImGuiInputFlags_Repeat = 1,
+ ImGuiInputFlags_RouteActive = 1024,
+ ImGuiInputFlags_RouteFocused = 2048,
+ ImGuiInputFlags_RouteGlobal = 4096,
+ ImGuiInputFlags_RouteAlways = 8192,
+ ImGuiInputFlags_RouteOverFocused = 16384,
+ ImGuiInputFlags_RouteOverActive = 32768,
+ ImGuiInputFlags_RouteUnlessBgFocused = 65536,
+ ImGuiInputFlags_RouteFromRootWindow = 131072,
+ ImGuiInputFlags_Tooltip = 262144,
+};
+enum ImGuiConfigFlags_ {
+ ImGuiConfigFlags_None = 0,
+ ImGuiConfigFlags_NavEnableKeyboard = 1,
+ ImGuiConfigFlags_NavEnableGamepad = 2,
+ ImGuiConfigFlags_NoMouse = 16,
+ ImGuiConfigFlags_NoMouseCursorChange = 32,
+ ImGuiConfigFlags_NoKeyboard = 64,
+ ImGuiConfigFlags_IsSRGB = 1048576,
+ ImGuiConfigFlags_IsTouchScreen = 2097152,
+};
+enum ImGuiBackendFlags_ {
+ ImGuiBackendFlags_None = 0,
+ ImGuiBackendFlags_HasGamepad = 1,
+ ImGuiBackendFlags_HasMouseCursors = 2,
+ ImGuiBackendFlags_HasSetMousePos = 4,
+ ImGuiBackendFlags_RendererHasVtxOffset = 8,
+ ImGuiBackendFlags_RendererHasTextures = 16,
+};
+enum ImGuiCol_ {
+ ImGuiCol_Text = 0,
+ ImGuiCol_TextDisabled = 1,
+ ImGuiCol_WindowBg = 2,
+ ImGuiCol_ChildBg = 3,
+ ImGuiCol_PopupBg = 4,
+ ImGuiCol_Border = 5,
+ ImGuiCol_BorderShadow = 6,
+ ImGuiCol_FrameBg = 7,
+ ImGuiCol_FrameBgHovered = 8,
+ ImGuiCol_FrameBgActive = 9,
+ ImGuiCol_TitleBg = 10,
+ ImGuiCol_TitleBgActive = 11,
+ ImGuiCol_TitleBgCollapsed = 12,
+ ImGuiCol_MenuBarBg = 13,
+ ImGuiCol_ScrollbarBg = 14,
+ ImGuiCol_ScrollbarGrab = 15,
+ ImGuiCol_ScrollbarGrabHovered = 16,
+ ImGuiCol_ScrollbarGrabActive = 17,
+ ImGuiCol_CheckMark = 18,
+ ImGuiCol_CheckboxSelectedBg = 19,
+ ImGuiCol_SliderGrab = 20,
+ ImGuiCol_SliderGrabActive = 21,
+ ImGuiCol_Button = 22,
+ ImGuiCol_ButtonHovered = 23,
+ ImGuiCol_ButtonActive = 24,
+ ImGuiCol_Header = 25,
+ ImGuiCol_HeaderHovered = 26,
+ ImGuiCol_HeaderActive = 27,
+ ImGuiCol_Separator = 28,
+ ImGuiCol_SeparatorHovered = 29,
+ ImGuiCol_SeparatorActive = 30,
+ ImGuiCol_ResizeGrip = 31,
+ ImGuiCol_ResizeGripHovered = 32,
+ ImGuiCol_ResizeGripActive = 33,
+ ImGuiCol_InputTextCursor = 34,
+ ImGuiCol_TabHovered = 35,
+ ImGuiCol_Tab = 36,
+ ImGuiCol_TabSelected = 37,
+ ImGuiCol_TabSelectedOverline = 38,
+ ImGuiCol_TabDimmed = 39,
+ ImGuiCol_TabDimmedSelected = 40,
+ ImGuiCol_TabDimmedSelectedOverline = 41,
+ ImGuiCol_PlotLines = 42,
+ ImGuiCol_PlotLinesHovered = 43,
+ ImGuiCol_PlotHistogram = 44,
+ ImGuiCol_PlotHistogramHovered = 45,
+ ImGuiCol_TableHeaderBg = 46,
+ ImGuiCol_TableBorderStrong = 47,
+ ImGuiCol_TableBorderLight = 48,
+ ImGuiCol_TableRowBg = 49,
+ ImGuiCol_TableRowBgAlt = 50,
+ ImGuiCol_TextLink = 51,
+ ImGuiCol_TextSelectedBg = 52,
+ ImGuiCol_TreeLines = 53,
+ ImGuiCol_DragDropTarget = 54,
+ ImGuiCol_DragDropTargetBg = 55,
+ ImGuiCol_UnsavedMarker = 56,
+ ImGuiCol_NavCursor = 57,
+ ImGuiCol_NavWindowingHighlight = 58,
+ ImGuiCol_NavWindowingDimBg = 59,
+ ImGuiCol_ModalWindowDimBg = 60,
+ ImGuiCol_COUNT = 61,
+};
+enum ImGuiStyleVar_ {
+ ImGuiStyleVar_Alpha = 0,
+ ImGuiStyleVar_DisabledAlpha = 1,
+ ImGuiStyleVar_WindowPadding = 2,
+ ImGuiStyleVar_WindowRounding = 3,
+ ImGuiStyleVar_WindowBorderSize = 4,
+ ImGuiStyleVar_WindowMinSize = 5,
+ ImGuiStyleVar_WindowTitleAlign = 6,
+ ImGuiStyleVar_ChildRounding = 7,
+ ImGuiStyleVar_ChildBorderSize = 8,
+ ImGuiStyleVar_PopupRounding = 9,
+ ImGuiStyleVar_PopupBorderSize = 10,
+ ImGuiStyleVar_FramePadding = 11,
+ ImGuiStyleVar_FrameRounding = 12,
+ ImGuiStyleVar_FrameBorderSize = 13,
+ ImGuiStyleVar_ItemSpacing = 14,
+ ImGuiStyleVar_ItemInnerSpacing = 15,
+ ImGuiStyleVar_IndentSpacing = 16,
+ ImGuiStyleVar_CellPadding = 17,
+ ImGuiStyleVar_ScrollbarSize = 18,
+ ImGuiStyleVar_ScrollbarRounding = 19,
+ ImGuiStyleVar_ScrollbarPadding = 20,
+ ImGuiStyleVar_GrabMinSize = 21,
+ ImGuiStyleVar_GrabRounding = 22,
+ ImGuiStyleVar_ImageRounding = 23,
+ ImGuiStyleVar_ImageBorderSize = 24,
+ ImGuiStyleVar_TabRounding = 25,
+ ImGuiStyleVar_TabBorderSize = 26,
+ ImGuiStyleVar_TabMinWidthBase = 27,
+ ImGuiStyleVar_TabMinWidthShrink = 28,
+ ImGuiStyleVar_TabBarBorderSize = 29,
+ ImGuiStyleVar_TabBarOverlineSize = 30,
+ ImGuiStyleVar_TableAngledHeadersAngle = 31,
+ ImGuiStyleVar_TableAngledHeadersTextAlign = 32,
+ ImGuiStyleVar_TreeLinesSize = 33,
+ ImGuiStyleVar_TreeLinesRounding = 34,
+ ImGuiStyleVar_MenuItemRounding = 35,
+ ImGuiStyleVar_SelectableRounding = 36,
+ ImGuiStyleVar_DragDropTargetRounding = 37,
+ ImGuiStyleVar_ButtonTextAlign = 38,
+ ImGuiStyleVar_SelectableTextAlign = 39,
+ ImGuiStyleVar_SeparatorSize = 40,
+ ImGuiStyleVar_SeparatorTextBorderSize = 41,
+ ImGuiStyleVar_SeparatorTextAlign = 42,
+ ImGuiStyleVar_SeparatorTextPadding = 43,
+ ImGuiStyleVar_COUNT = 44,
+};
+enum ImGuiButtonFlags_ {
+ ImGuiButtonFlags_None = 0,
+ ImGuiButtonFlags_MouseButtonLeft = 1,
+ ImGuiButtonFlags_MouseButtonRight = 2,
+ ImGuiButtonFlags_MouseButtonMiddle = 4,
+ ImGuiButtonFlags_MouseButtonMask_ = 7,
+ ImGuiButtonFlags_EnableNav = 8,
+ ImGuiButtonFlags_AllowOverlap = 4096,
+};
+enum ImGuiColorEditFlags_ {
+ ImGuiColorEditFlags_None = 0,
+ ImGuiColorEditFlags_NoAlpha = 2,
+ ImGuiColorEditFlags_NoPicker = 4,
+ ImGuiColorEditFlags_NoOptions = 8,
+ ImGuiColorEditFlags_NoSmallPreview = 16,
+ ImGuiColorEditFlags_NoInputs = 32,
+ ImGuiColorEditFlags_NoTooltip = 64,
+ ImGuiColorEditFlags_NoLabel = 128,
+ ImGuiColorEditFlags_NoSidePreview = 256,
+ ImGuiColorEditFlags_NoDragDrop = 512,
+ ImGuiColorEditFlags_NoBorder = 1024,
+ ImGuiColorEditFlags_NoColorMarkers = 2048,
+ ImGuiColorEditFlags_AlphaOpaque = 4096,
+ ImGuiColorEditFlags_AlphaNoBg = 8192,
+ ImGuiColorEditFlags_AlphaPreviewHalf = 16384,
+ ImGuiColorEditFlags_AlphaBar = 262144,
+ ImGuiColorEditFlags_HDR = 524288,
+ ImGuiColorEditFlags_DisplayRGB = 1048576,
+ ImGuiColorEditFlags_DisplayHSV = 2097152,
+ ImGuiColorEditFlags_DisplayHex = 4194304,
+ ImGuiColorEditFlags_Uint8 = 8388608,
+ ImGuiColorEditFlags_Float = 16777216,
+ ImGuiColorEditFlags_PickerHueBar = 33554432,
+ ImGuiColorEditFlags_PickerHueWheel = 67108864,
+ ImGuiColorEditFlags_PickerNoRotate = 134217728,
+ ImGuiColorEditFlags_InputRGB = 268435456,
+ ImGuiColorEditFlags_InputHSV = 536870912,
+ ImGuiColorEditFlags_DefaultOptions_ = 311427072,
+ ImGuiColorEditFlags_AlphaMask_ = 28674,
+ ImGuiColorEditFlags_DisplayMask_ = 7340032,
+ ImGuiColorEditFlags_DataTypeMask_ = 25165824,
+ ImGuiColorEditFlags_PickerMask_ = 100663296,
+ ImGuiColorEditFlags_InputMask_ = 805306368,
+};
+enum ImGuiSliderFlags_ {
+ ImGuiSliderFlags_None = 0,
+ ImGuiSliderFlags_Logarithmic = 32,
+ ImGuiSliderFlags_NoRoundToFormat = 64,
+ ImGuiSliderFlags_NoInput = 128,
+ ImGuiSliderFlags_WrapAround = 256,
+ ImGuiSliderFlags_ClampOnInput = 512,
+ ImGuiSliderFlags_ClampZeroRange = 1024,
+ ImGuiSliderFlags_NoSpeedTweaks = 2048,
+ ImGuiSliderFlags_ColorMarkers = 4096,
+ ImGuiSliderFlags_AlwaysClamp = 1536,
+ ImGuiSliderFlags_InvalidMask_ = 1879048207,
+};
+enum ImGuiMouseButton_ {
+ ImGuiMouseButton_Left = 0,
+ ImGuiMouseButton_Right = 1,
+ ImGuiMouseButton_Middle = 2,
+ ImGuiMouseButton_COUNT = 5,
+};
+enum ImGuiMouseCursor_ {
+ ImGuiMouseCursor_None = -1,
+ ImGuiMouseCursor_Arrow = 0,
+ ImGuiMouseCursor_TextInput = 1,
+ ImGuiMouseCursor_ResizeAll = 2,
+ ImGuiMouseCursor_ResizeNS = 3,
+ ImGuiMouseCursor_ResizeEW = 4,
+ ImGuiMouseCursor_ResizeNESW = 5,
+ ImGuiMouseCursor_ResizeNWSE = 6,
+ ImGuiMouseCursor_Hand = 7,
+ ImGuiMouseCursor_Wait = 8,
+ ImGuiMouseCursor_Progress = 9,
+ ImGuiMouseCursor_NotAllowed = 10,
+ ImGuiMouseCursor_COUNT = 11,
+};
+typedef int ImGuiMouseSource;
+enum ImGuiMouseSource_ {
+ ImGuiMouseSource_Mouse = 0,
+ ImGuiMouseSource_TouchScreen = 1,
+ ImGuiMouseSource_Pen = 2,
+ ImGuiMouseSource_COUNT = 3,
+};
+enum ImGuiCond_ {
+ ImGuiCond_None = 0,
+ ImGuiCond_Always = 1,
+ ImGuiCond_Once = 2,
+ ImGuiCond_FirstUseEver = 4,
+ ImGuiCond_Appearing = 8,
+};
+enum ImGuiTableFlags_ {
+ ImGuiTableFlags_None = 0,
+ ImGuiTableFlags_Resizable = 1,
+ ImGuiTableFlags_Reorderable = 2,
+ ImGuiTableFlags_Hideable = 4,
+ ImGuiTableFlags_Sortable = 8,
+ ImGuiTableFlags_NoSavedSettings = 16,
+ ImGuiTableFlags_ContextMenuInBody = 32,
+ ImGuiTableFlags_RowBg = 64,
+ ImGuiTableFlags_BordersInnerH = 128,
+ ImGuiTableFlags_BordersOuterH = 256,
+ ImGuiTableFlags_BordersInnerV = 512,
+ ImGuiTableFlags_BordersOuterV = 1024,
+ ImGuiTableFlags_BordersH = 384,
+ ImGuiTableFlags_BordersV = 1536,
+ ImGuiTableFlags_BordersInner = 640,
+ ImGuiTableFlags_BordersOuter = 1280,
+ ImGuiTableFlags_Borders = 1920,
+ ImGuiTableFlags_NoBordersInBody = 2048,
+ ImGuiTableFlags_NoBordersInBodyUntilResize = 4096,
+ ImGuiTableFlags_SizingFixedFit = 8192,
+ ImGuiTableFlags_SizingFixedSame = 16384,
+ ImGuiTableFlags_SizingStretchProp = 24576,
+ ImGuiTableFlags_SizingStretchSame = 32768,
+ ImGuiTableFlags_NoHostExtendX = 65536,
+ ImGuiTableFlags_NoHostExtendY = 131072,
+ ImGuiTableFlags_NoKeepColumnsVisible = 262144,
+ ImGuiTableFlags_PreciseWidths = 524288,
+ ImGuiTableFlags_NoClip = 1048576,
+ ImGuiTableFlags_PadOuterX = 2097152,
+ ImGuiTableFlags_NoPadOuterX = 4194304,
+ ImGuiTableFlags_NoPadInnerX = 8388608,
+ ImGuiTableFlags_ScrollX = 16777216,
+ ImGuiTableFlags_ScrollY = 33554432,
+ ImGuiTableFlags_SortMulti = 67108864,
+ ImGuiTableFlags_SortTristate = 134217728,
+ ImGuiTableFlags_HighlightHoveredColumn = 268435456,
+ ImGuiTableFlags_SizingMask_ = 57344,
+};
+enum ImGuiTableColumnFlags_ {
+ ImGuiTableColumnFlags_None = 0,
+ ImGuiTableColumnFlags_Disabled = 1,
+ ImGuiTableColumnFlags_DefaultHide = 2,
+ ImGuiTableColumnFlags_DefaultSort = 4,
+ ImGuiTableColumnFlags_WidthStretch = 8,
+ ImGuiTableColumnFlags_WidthFixed = 16,
+ ImGuiTableColumnFlags_NoResize = 32,
+ ImGuiTableColumnFlags_NoReorder = 64,
+ ImGuiTableColumnFlags_NoHide = 128,
+ ImGuiTableColumnFlags_NoClip = 256,
+ ImGuiTableColumnFlags_NoSort = 512,
+ ImGuiTableColumnFlags_NoSortAscending = 1024,
+ ImGuiTableColumnFlags_NoSortDescending = 2048,
+ ImGuiTableColumnFlags_NoHeaderLabel = 4096,
+ ImGuiTableColumnFlags_NoHeaderWidth = 8192,
+ ImGuiTableColumnFlags_PreferSortAscending = 16384,
+ ImGuiTableColumnFlags_PreferSortDescending = 32768,
+ ImGuiTableColumnFlags_IndentEnable = 65536,
+ ImGuiTableColumnFlags_IndentDisable = 131072,
+ ImGuiTableColumnFlags_AngledHeader = 262144,
+ ImGuiTableColumnFlags_IsEnabled = 16777216,
+ ImGuiTableColumnFlags_IsVisible = 33554432,
+ ImGuiTableColumnFlags_IsSorted = 67108864,
+ ImGuiTableColumnFlags_IsHovered = 134217728,
+ ImGuiTableColumnFlags_WidthMask_ = 24,
+ ImGuiTableColumnFlags_IndentMask_ = 196608,
+ ImGuiTableColumnFlags_StatusMask_ = 251658240,
+ ImGuiTableColumnFlags_NoDirectResize_ = 1073741824,
+};
+enum ImGuiTableRowFlags_ {
+ ImGuiTableRowFlags_None = 0,
+ ImGuiTableRowFlags_Headers = 1,
+};
+enum ImGuiTableBgTarget_ {
+ ImGuiTableBgTarget_None = 0,
+ ImGuiTableBgTarget_RowBg0 = 1,
+ ImGuiTableBgTarget_RowBg1 = 2,
+ ImGuiTableBgTarget_CellBg = 3,
+};
+enum ImGuiListClipperFlags_ {
+ ImGuiListClipperFlags_None = 0,
+ ImGuiListClipperFlags_NoSetTableRowCounters = 1,
+};
+enum ImGuiMultiSelectFlags_ {
+ ImGuiMultiSelectFlags_None = 0,
+ ImGuiMultiSelectFlags_SingleSelect = 1,
+ ImGuiMultiSelectFlags_NoSelectAll = 2,
+ ImGuiMultiSelectFlags_NoRangeSelect = 4,
+ ImGuiMultiSelectFlags_NoAutoSelect = 8,
+ ImGuiMultiSelectFlags_NoAutoClear = 16,
+ ImGuiMultiSelectFlags_NoAutoClearOnReselect = 32,
+ ImGuiMultiSelectFlags_BoxSelect1d = 64,
+ ImGuiMultiSelectFlags_BoxSelect2d = 128,
+ ImGuiMultiSelectFlags_BoxSelectNoScroll = 256,
+ ImGuiMultiSelectFlags_ClearOnEscape = 512,
+ ImGuiMultiSelectFlags_ClearOnClickVoid = 1024,
+ ImGuiMultiSelectFlags_ScopeWindow = 2048,
+ ImGuiMultiSelectFlags_ScopeRect = 4096,
+ ImGuiMultiSelectFlags_SelectOnAuto = 8192,
+ ImGuiMultiSelectFlags_SelectOnClickAlways = 16384,
+ ImGuiMultiSelectFlags_SelectOnClickRelease = 32768,
+ ImGuiMultiSelectFlags_NavWrapX = 65536,
+ ImGuiMultiSelectFlags_NoSelectOnRightClick = 131072,
+ ImGuiMultiSelectFlags_SelectOnMask_ = 57344,
+ ImGuiMultiSelectFlags_CheckboxMode_ = 1048576,
+};
+typedef int ImGuiSelectionRequestType;
+enum ImGuiSelectionRequestType_ {
+ ImGuiSelectionRequestType_None = 0,
+ ImGuiSelectionRequestType_SetAll = 1,
+ ImGuiSelectionRequestType_SetRange = 2,
+};
+enum ImDrawFlags_ {
+ ImDrawFlags_None = 0,
+ ImDrawFlags_RoundTopLeft = 16,
+ ImDrawFlags_RoundTopRight = 32,
+ ImDrawFlags_RoundBottomLeft = 64,
+ ImDrawFlags_RoundBottomRight = 128,
+ ImDrawFlags_RoundNone = 256,
+ ImDrawFlags_RoundAll = 240,
+ ImDrawFlags_RoundTop = 48,
+ ImDrawFlags_RoundBottom = 192,
+ ImDrawFlags_RoundLeft = 80,
+ ImDrawFlags_RoundRight = 160,
+ ImDrawFlags_Closed = 512,
+ ImDrawFlags_JoinMiter = 1024,
+ ImDrawFlags_CapSquare = 2048,
+ ImDrawFlags_AAFill = 4096,
+ ImDrawFlags_AALines = 8192,
+ ImDrawFlags_AALineEnds = 16384,
+ ImDrawFlags_StrokeInside = 131072,
+ ImDrawFlags_StrokeCenter = 262144,
+ ImDrawFlags_StrokeCenterBiased = 393216,
+ ImDrawFlags_StrokeOutside = 524288,
+ ImDrawFlags_StrokeLegacy = 917504,
+ ImDrawFlags_TextNoPixelSnap = 1048576,
+ ImDrawFlags_UseTexForRoundCorners = 2097152,
+ ImDrawFlags_UseVtxOffset = 4194304,
+ ImDrawFlags_AllowTexForRoundCorners_ = 8388608,
+ ImDrawFlags_RoundMask_ = 496,
+ ImDrawFlags_AllowInPushScope_ = 8286704,
+ ImDrawFlags_AllowInFrameScope_ = 16675312,
+ ImDrawFlags_StrokeMask_ = 917504,
+ ImDrawFlags_InvalidMask_ = -2147483633,
+};
+typedef int ImTextureFormat;
+enum ImTextureFormat_ {
+ ImTextureFormat_RGBA32 = 0,
+ ImTextureFormat_Alpha8 = 1,
+};
+typedef int ImTextureStatus;
+enum ImTextureStatus_ {
+ ImTextureStatus_OK = 0,
+ ImTextureStatus_Destroyed = 1,
+ ImTextureStatus_WantCreate = 2,
+ ImTextureStatus_WantUpdates = 3,
+ ImTextureStatus_WantDestroy = 4,
+};
+enum ImFontAtlasFlags_ {
+ ImFontAtlasFlags_None = 0,
+ ImFontAtlasFlags_NoPowerOfTwoHeight = 1,
+ ImFontAtlasFlags_NoMouseCursors = 2,
+ ImFontAtlasFlags_NoBakedLines = 4,
+ ImFontAtlasFlags_NoBakedRoundCorners = 8,
+};
+enum ImFontFlags_ {
+ ImFontFlags_None = 0,
+ ImFontFlags_NoLoadError = 2,
+ ImFontFlags_NoLoadGlyphs = 4,
+ ImFontFlags_LockBakedSizes = 8,
+ ImFontFlags_ImplicitRefSize = 16,
+};
+enum ImGuiViewportFlags_ {
+ ImGuiViewportFlags_None = 0,
+ ImGuiViewportFlags_IsPlatformWindow = 1,
+ ImGuiViewportFlags_IsPlatformMonitor = 2,
+ ImGuiViewportFlags_OwnedByApp = 4,
+};
+enum ImDrawListFlags_ {
+};
+
+// Callbacks
+typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
+typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
+typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data);
+typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data);
+typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd);
+
+// ImVector<T>: { int Size; int Capacity; T* Data; }
+typedef struct ImVector_ImDrawChannel { int Size; int Capacity; ImDrawChannel* Data; } ImVector_ImDrawChannel;
+typedef struct ImVector_ImDrawCmd { int Size; int Capacity; ImDrawCmd* Data; } ImVector_ImDrawCmd;
+typedef struct ImVector_ImDrawIdx { int Size; int Capacity; ImDrawIdx* Data; } ImVector_ImDrawIdx;
+typedef struct ImVector_ImDrawListPtr { int Size; int Capacity; ImDrawList** Data; } ImVector_ImDrawListPtr;
+typedef struct ImVector_ImDrawListSharedDataPtr { int Size; int Capacity; ImDrawListSharedData** Data; } ImVector_ImDrawListSharedDataPtr;
+typedef struct ImVector_ImDrawVert { int Size; int Capacity; ImDrawVert* Data; } ImVector_ImDrawVert;
+typedef struct ImVector_ImFontConfig { int Size; int Capacity; ImFontConfig* Data; } ImVector_ImFontConfig;
+typedef struct ImVector_ImFontConfigPtr { int Size; int Capacity; ImFontConfig** Data; } ImVector_ImFontConfigPtr;
+typedef struct ImVector_ImFontGlyph { int Size; int Capacity; ImFontGlyph* Data; } ImVector_ImFontGlyph;
+typedef struct ImVector_ImFontPtr { int Size; int Capacity; ImFont** Data; } ImVector_ImFontPtr;
+typedef struct ImVector_ImGuiSelectionRequest { int Size; int Capacity; ImGuiSelectionRequest* Data; } ImVector_ImGuiSelectionRequest;
+typedef struct ImVector_ImGuiStoragePair { int Size; int Capacity; ImGuiStoragePair* Data; } ImVector_ImGuiStoragePair;
+typedef struct ImVector_ImGuiTextFilterItem { int Size; int Capacity; ImGuiTextFilterItem* Data; } ImVector_ImGuiTextFilterItem;
+typedef struct ImVector_ImTextureDataPtr { int Size; int Capacity; ImTextureData** Data; } ImVector_ImTextureDataPtr;
+typedef struct ImVector_ImTextureRect { int Size; int Capacity; ImTextureRect* Data; } ImVector_ImTextureRect;
+typedef struct ImVector_ImTextureRef { int Size; int Capacity; ImTextureRef* Data; } ImVector_ImTextureRef;
+typedef struct ImVector_ImU16 { int Size; int Capacity; ImU16* Data; } ImVector_ImU16;
+typedef struct ImVector_ImU32 { int Size; int Capacity; ImU32* Data; } ImVector_ImU32;
+typedef struct ImVector_ImU8 { int Size; int Capacity; ImU8* Data; } ImVector_ImU8;
+typedef struct ImVector_ImVec2 { int Size; int Capacity; ImVec2* Data; } ImVector_ImVec2;
+typedef struct ImVector_ImVec4 { int Size; int Capacity; ImVec4* Data; } ImVector_ImVec4;
+typedef struct ImVector_ImWchar { int Size; int Capacity; ImWchar* Data; } ImVector_ImWchar;
+typedef struct ImVector_char { int Size; int Capacity; char* Data; } ImVector_char;
+typedef struct ImVector_float { int Size; int Capacity; float* Data; } ImVector_float;
+typedef struct ImSmallStack_ImDrawFlags_3 { ImDrawFlags LocalData[3]; ImU16 Size; } ImSmallStack_ImDrawFlags_3;
+
+// Structs
+struct ImVec2 {
+ float x;
+ float y;
+};
+struct ImVec4 {
+ float x;
+ float y;
+ float z;
+ float w;
+};
+struct ImTextureRef {
+ ImTextureData* _TexData;
+ ImTextureID _TexID;
+};
+struct ImGuiTableSortSpecs {
+ const ImGuiTableColumnSortSpecs* Specs;
+ int SpecsCount;
+ bool SpecsDirty;
+};
+struct ImGuiTableColumnSortSpecs {
+ ImGuiID ColumnUserID;
+ ImS16 ColumnIndex;
+ ImS16 SortOrder;
+ ImGuiSortDirection SortDirection;
+};
+struct ImGuiStyle {
+ float FontSizeBase;
+ float FontScaleMain;
+ float FontScaleDpi;
+ float Alpha;
+ float DisabledAlpha;
+ ImVec2 WindowPadding;
+ float WindowRounding;
+ float WindowBorderSize;
+ float WindowBorderHoverPadding;
+ ImVec2 WindowMinSize;
+ ImVec2 WindowTitleAlign;
+ ImGuiDir WindowMenuButtonPosition;
+ float ChildRounding;
+ float ChildBorderSize;
+ float PopupRounding;
+ float PopupBorderSize;
+ ImVec2 FramePadding;
+ float FrameRounding;
+ float FrameBorderSize;
+ ImVec2 ItemSpacing;
+ ImVec2 ItemInnerSpacing;
+ ImVec2 CellPadding;
+ ImVec2 TouchExtraPadding;
+ float IndentSpacing;
+ float ColumnsMinSpacing;
+ float ScrollbarSize;
+ float ScrollbarRounding;
+ float ScrollbarPadding;
+ float GrabMinSize;
+ float GrabRounding;
+ float LogSliderDeadzone;
+ float ImageRounding;
+ float ImageBorderSize;
+ float TabRounding;
+ float TabBorderSize;
+ float TabMinWidthBase;
+ float TabMinWidthShrink;
+ float TabCloseButtonMinWidthSelected;
+ float TabCloseButtonMinWidthUnselected;
+ float TabBarBorderSize;
+ float TabBarOverlineSize;
+ float TableAngledHeadersAngle;
+ ImVec2 TableAngledHeadersTextAlign;
+ ImGuiTreeNodeFlags TreeLinesFlags;
+ float TreeLinesSize;
+ float TreeLinesRounding;
+ float MenuItemRounding;
+ float SelectableRounding;
+ float DragDropTargetRounding;
+ float DragDropTargetBorderSize;
+ float DragDropTargetPadding;
+ float ColorMarkerSize;
+ ImGuiDir ColorButtonPosition;
+ ImVec2 ButtonTextAlign;
+ ImVec2 SelectableTextAlign;
+ float InputTextCursorSize;
+ float SeparatorSize;
+ float SeparatorTextBorderSize;
+ ImVec2 SeparatorTextAlign;
+ ImVec2 SeparatorTextPadding;
+ ImVec2 DisplayWindowPadding;
+ ImVec2 DisplaySafeAreaPadding;
+ float MouseCursorScale;
+ ImVec2 SymbolArrowSizeFactor;
+ float SymbolArrowThicknessFactor;
+ bool AntiAliasedLines;
+ bool AntiAliasedLineEnds;
+ bool AntiAliasedFill;
+ float CurveTessellationMaxError;
+ float CircleTessellationMaxError;
+ ImVec4 Colors[61];
+ float HoverStationaryDelay;
+ float HoverDelayShort;
+ float HoverDelayNormal;
+ ImGuiHoveredFlags HoverFlagsForTooltipMouse;
+ ImGuiHoveredFlags HoverFlagsForTooltipNav;
+ float _MainScale;
+ float _NextFrameFontSizeBase;
+ bool AntiAliasedLinesUseTex;
+ float CurveTessellationTol;
+};
+struct ImGuiKeyData {
+ bool Down;
+ float DownDuration;
+ float DownDurationPrev;
+ float AnalogValue;
+};
+struct ImGuiIO {
+ ImGuiConfigFlags ConfigFlags;
+ ImGuiBackendFlags BackendFlags;
+ ImVec2 DisplaySize;
+ ImVec2 DisplayFramebufferScale;
+ float DeltaTime;
+ float IniSavingRate;
+ const char* IniFilename;
+ const char* LogFilename;
+ void* UserData;
+ ImFontAtlas* Fonts;
+ ImFont* FontDefault;
+ bool FontAllowUserScaling;
+ bool ConfigNavSwapGamepadButtons;
+ bool ConfigNavMoveSetMousePos;
+ bool ConfigNavCaptureKeyboard;
+ bool ConfigNavEscapeClearFocusItem;
+ bool ConfigNavEscapeClearFocusWindow;
+ bool ConfigNavCursorVisibleAuto;
+ bool ConfigNavCursorVisibleAlways;
+ bool ConfigMacOSXBehaviors;
+ bool ConfigInputTrickleEventQueue;
+ bool ConfigInputTextCursorBlink;
+ bool ConfigInputTextEnterKeepActive;
+ ImGuiColorEditFlags ConfigColorEditFlags;
+ bool ConfigDragClickToInputText;
+ bool ConfigWindowsResizeFromEdges;
+ bool ConfigWindowsMoveFromTitleBarOnly;
+ bool ConfigWindowsCopyContentsWithCtrlC;
+ bool ConfigScrollbarScrollByPage;
+ bool ConfigIniSettingsSaveLastUsedDate;
+ int ConfigIniSettingsAutoDiscardMonths;
+ bool ConfigDebugIniSettings;
+ bool MouseDrawCursor;
+ float ConfigMemoryCompactTimer;
+ float MouseDoubleClickTime;
+ float MouseDoubleClickMaxDist;
+ float MouseSingleClickDelay;
+ float MouseDragThreshold;
+ float KeyRepeatDelay;
+ float KeyRepeatRate;
+ bool ConfigErrorRecovery;
+ bool ConfigErrorRecoveryEnableAssert;
+ bool ConfigErrorRecoveryEnableDebugLog;
+ bool ConfigErrorRecoveryEnableTooltip;
+ bool ConfigDebugIsDebuggerPresent;
+ bool ConfigDebugHighlightIdConflicts;
+ bool ConfigDebugHighlightIdConflictsShowItemPicker;
+ bool ConfigDebugBeginReturnValueOnce;
+ bool ConfigDebugBeginReturnValueLoop;
+ bool ConfigDebugIgnoreFocusLoss;
+ bool ConfigDebugDrawListDefaultsToStrokeLegacy;
+ const char* BackendPlatformName;
+ const char* BackendRendererName;
+ void* BackendPlatformUserData;
+ void* BackendRendererUserData;
+ void* BackendLanguageUserData;
+ bool WantCaptureMouse;
+ bool WantCaptureKeyboard;
+ bool WantTextInput;
+ bool WantSetMousePos;
+ bool WantSaveIniSettings;
+ bool NavActive;
+ bool NavVisible;
+ float Framerate;
+ int MetricsRenderVertices;
+ int MetricsRenderIndices;
+ int MetricsRenderWindows;
+ int MetricsActiveWindows;
+ ImVec2 MouseDelta;
+ ImGuiContext* Ctx;
+ ImVec2 MousePos;
+ bool MouseDown[5];
+ float MouseWheel;
+ float MouseWheelH;
+ ImGuiMouseSource MouseSource;
+ bool KeyCtrl;
+ bool KeyShift;
+ bool KeyAlt;
+ bool KeySuper;
+ ImGuiKeyChord KeyMods;
+ ImGuiKeyData KeysData[155];
+ bool WantCaptureMouseUnlessPopupClose;
+ ImVec2 MousePosPrev;
+ ImVec2 MouseClickedPos[5];
+ double MouseClickedTime[5];
+ bool MouseClicked[5];
+ bool MouseDoubleClicked[5];
+ ImU16 MouseClickedCount[5];
+ ImU16 MouseClickedLastCount[5];
+ bool MouseReleased[5];
+ double MouseReleasedTime[5];
+ bool MouseDownOwned[5];
+ bool MouseDownOwnedUnlessPopupClose[5];
+ bool MouseWheelRequestAxisSwap;
+ bool MouseCtrlLeftAsRightClick;
+ float MouseDownDuration[5];
+ float MouseDownDurationPrev[5];
+ float MouseDragMaxDistanceSqr[5];
+ float PenPressure;
+ bool AppFocusLost;
+ bool AppAcceptingEvents;
+ ImWchar16 InputQueueSurrogate;
+ ImVector_ImWchar InputQueueCharacters;
+ float FontGlobalScale;
+};
+struct ImGuiInputTextCallbackData {
+ ImGuiContext* Ctx;
+ ImGuiInputTextFlags EventFlag;
+ ImGuiInputTextFlags Flags;
+ void* UserData;
+ ImGuiID ID;
+ ImGuiKey EventKey;
+ ImWchar EventChar;
+ bool EventActivated;
+ bool BufDirty;
+ char* Buf;
+ int BufTextLen;
+ int BufSize;
+ int CursorPos;
+ int SelectionStart;
+ int SelectionEnd;
+};
+struct ImGuiSizeCallbackData {
+ void* UserData;
+ ImVec2 Pos;
+ ImVec2 CurrentSize;
+ ImVec2 DesiredSize;
+};
+struct ImGuiPayload {
+ void* Data;
+ int DataSize;
+ ImGuiID SourceId;
+ ImGuiID SourceParentId;
+ int DataFrameCount;
+ char DataType[33];
+ bool Preview;
+ bool Delivery;
+};
+struct ImGuiOnceUponAFrame {
+ int RefFrame;
+};
+struct ImGuiTextFilter {
+ char InputBuf[256];
+ int _CountExclude;
+ ImVector_ImGuiTextFilterItem _Items;
+};
+struct ImGuiTextBuffer {
+ ImVector_char Buf;
+};
+struct ImGuiStoragePair {
+ ImGuiID key;
+ union {
+ int val_i;
+ float val_f;
+ void* val_p;
+ };
+};
+struct ImGuiStorage {
+ ImVector_ImGuiStoragePair Data;
+};
+struct ImGuiListClipper {
+ int DisplayStart;
+ int DisplayEnd;
+ int UserIndex;
+ int ItemsCount;
+ float ItemsHeight;
+ ImGuiListClipperFlags Flags;
+ double StartPosY;
+ double StartSeekOffsetY;
+ ImGuiContext* Ctx;
+ void* TempData;
+};
+struct ImColor {
+ ImVec4 Value;
+};
+struct ImGuiMultiSelectIO {
+ ImVector_ImGuiSelectionRequest Requests;
+ ImGuiSelectionUserData RangeSrcItem;
+ ImGuiSelectionUserData NavIdItem;
+ bool NavIdSelected;
+ bool RangeSrcReset;
+ int ItemsCount;
+};
+struct ImGuiSelectionRequest {
+ ImGuiSelectionRequestType Type;
+ bool Selected;
+ ImS8 RangeDirection;
+ ImGuiSelectionUserData RangeFirstItem;
+ ImGuiSelectionUserData RangeLastItem;
+};
+struct ImGuiSelectionBasicStorage {
+ int Size;
+ bool PreserveOrder;
+ void* UserData;
+ ImGuiID (*AdapterIndexToStorageId)(ImGuiSelectionBasicStorage* self, int idx);
+ int _SelectionOrder;
+ ImGuiStorage _Storage;
+};
+struct ImGuiSelectionExternalStorage {
+ void* UserData;
+ void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected);
+};
+struct ImDrawCmd {
+ ImVec4 ClipRect;
+ ImTextureRef TexRef;
+ unsigned int VtxOffset;
+ unsigned int IdxOffset;
+ unsigned int ElemCount;
+ ImDrawCallback UserCallback;
+ void* UserCallbackData;
+ int UserCallbackDataSize;
+ int UserCallbackDataOffset;
+};
+struct ImDrawVert {
+ ImVec2 pos;
+ ImVec2 uv;
+ ImU32 col;
+};
+struct ImDrawCmdHeader {
+ ImVec4 ClipRect;
+ ImTextureRef TexRef;
+ unsigned int VtxOffset;
+};
+struct ImDrawChannel {
+ ImVector_ImDrawCmd _CmdBuffer;
+ ImVector_ImDrawIdx _IdxBuffer;
+};
+struct ImDrawListSplitter {
+ int _Current;
+ int _Count;
+ ImVector_ImDrawChannel _Channels;
+};
+struct ImDrawList {
+ ImVector_ImDrawCmd CmdBuffer;
+ ImVector_ImDrawIdx IdxBuffer;
+ ImVector_ImDrawVert VtxBuffer;
+ ImDrawFlags Flags;
+ unsigned int _VtxCurrentIdx;
+ ImDrawListSharedData* _Data;
+ ImDrawVert* _VtxWritePtr;
+ ImDrawIdx* _IdxWritePtr;
+ ImVector_ImVec2 _Path;
+ ImDrawCmdHeader _CmdHeader;
+ ImDrawListSplitter _Splitter;
+ ImVector_ImVec4 _ClipRectStack;
+ ImVector_ImTextureRef _TextureStack;
+ ImVector_ImU8 _CallbacksDataBuf;
+ ImSmallStack_ImDrawFlags_3 _DrawFlagsStack;
+ float _FringeScale;
+ float _InvFringeScale;
+ bool _FringeScaleIsInteger;
+ const char* _OwnerName;
+};
+struct ImDrawData {
+ bool Valid;
+ int FrameCount;
+ int TotalIdxCount;
+ int TotalVtxCount;
+ ImVector_ImDrawListPtr CmdLists;
+ ImVec2 DisplayPos;
+ ImVec2 DisplaySize;
+ ImVec2 FramebufferScale;
+ ImGuiViewport* OwnerViewport;
+ ImVector_ImTextureDataPtr* Textures;
+ int CmdListsCount;
+};
+struct ImTextureRect {
+ unsigned short x;
+ unsigned short y;
+ unsigned short w;
+ unsigned short h;
+};
+struct ImTextureData {
+ int UniqueID;
+ ImTextureStatus Status;
+ void* BackendUserData;
+ void* QueueUserData;
+ ImTextureID TexID;
+ ImTextureFormat Format;
+ int Width;
+ int Height;
+ int BytesPerPixel;
+ unsigned char* Pixels;
+ ImTextureRect UsedRect;
+ ImTextureRect UpdateRect;
+ ImVector_ImTextureRect Updates;
+ int UnusedFrames;
+ unsigned short RefCount;
+ bool UseColors;
+ bool WantDestroyNextFrame;
+};
+struct ImFontConfig {
+ char Name[40];
+ void* FontData;
+ int FontDataSize;
+ bool FontDataOwnedByAtlas;
+ bool MergeMode;
+ bool PixelSnapH;
+ ImS8 OversampleH;
+ ImS8 OversampleV;
+ ImWchar EllipsisChar;
+ float SizePixels;
+ const ImWchar* GlyphRanges;
+ const ImWchar* GlyphExcludeRanges;
+ ImVec2 GlyphOffset;
+ float GlyphMinAdvanceX;
+ float GlyphMaxAdvanceX;
+ float GlyphExtraAdvanceX;
+ ImU32 FontNo;
+ unsigned int FontLoaderFlags;
+ float RasterizerMultiply;
+ float RasterizerDensity;
+ float ExtraSizeScale;
+ ImFontFlags Flags;
+ ImFont* DstFont;
+ const ImFontLoader* FontLoader;
+ void* FontLoaderData;
+ bool PixelSnapV;
+};
+struct ImFontGlyph {
+ unsigned int Colored : 1;
+ unsigned int Visible : 1;
+ unsigned int SourceIdx : 4;
+ unsigned int Codepoint : 26;
+ float AdvanceX;
+ float X0;
+ float Y0;
+ float X1;
+ float Y1;
+ float U0;
+ float V0;
+ float U1;
+ float V1;
+ int PackId;
+};
+struct ImFontGlyphRangesBuilder {
+ ImVector_ImU32 UsedChars;
+};
+struct ImFontAtlasRect {
+ unsigned short x;
+ unsigned short y;
+ unsigned short w;
+ unsigned short h;
+ ImVec2 uv0;
+ ImVec2 uv1;
+};
+struct ImFontAtlas {
+ ImFontAtlasFlags Flags;
+ ImTextureFormat TexDesiredFormat;
+ int TexGlyphPadding;
+ int TexMinWidth;
+ int TexMinHeight;
+ int TexMaxWidth;
+ int TexMaxHeight;
+ void* UserData;
+ union {
+ ImTextureRef TexRef;
+ ImTextureRef TexID;
+ };
+ ImTextureData* TexData;
+ ImVector_ImTextureDataPtr TexList;
+ bool Locked;
+ bool RendererHasTextures;
+ bool TexIsBuilt;
+ bool TexPixelsUseColors;
+ ImVec2 TexUvScale;
+ ImVec2 TexUvWhitePixel;
+ ImVector_ImFontPtr Fonts;
+ ImVector_ImFontConfig Sources;
+ int TexNextUniqueID;
+ int FontNextUniqueID;
+ ImVector_ImDrawListSharedDataPtr DrawListSharedDatas;
+ ImFontAtlasBuilder* Builder;
+ const ImFontLoader* FontLoader;
+ const char* FontLoaderName;
+ void* FontLoaderData;
+ unsigned int FontLoaderFlags;
+ int RefCount;
+ ImGuiContext* OwnerContext;
+ ImFontAtlasRect TempRect;
+};
+struct ImFontBaked {
+ ImVector_float IndexAdvanceX;
+ float FallbackAdvanceX;
+ float Size;
+ float RasterizerDensity;
+ ImVector_ImU16 IndexLookup;
+ ImVector_ImFontGlyph Glyphs;
+ int FallbackGlyphIndex;
+ float Ascent;
+ float Descent;
+ unsigned int MetricsTotalSurface : 26;
+ unsigned int WantDestroy : 1;
+ unsigned int LoadNoFallback : 1;
+ unsigned int LoadNoRenderOnLayout : 1;
+ int LastUsedFrame;
+ ImGuiID BakedId;
+ ImFont* OwnerFont;
+ void* FontLoaderDatas;
+};
+struct ImFont {
+ ImFontBaked* LastBaked;
+ ImFontAtlas* OwnerAtlas;
+ ImFontFlags Flags;
+ float CurrentRasterizerDensity;
+ ImGuiID FontId;
+ float LegacySize;
+ ImVector_ImFontConfigPtr Sources;
+ ImWchar EllipsisChar;
+ ImWchar FallbackChar;
+ ImU8 Used8kPagesMap[1];
+ bool EllipsisAutoBake;
+ ImGuiStorage RemapPairs;
+ float Scale;
+};
+struct ImGuiViewport {
+ ImGuiID ID;
+ ImGuiViewportFlags Flags;
+ ImVec2 Pos;
+ ImVec2 Size;
+ ImVec2 FramebufferScale;
+ ImVec2 WorkPos;
+ ImVec2 WorkSize;
+ void* PlatformHandle;
+ void* PlatformHandleRaw;
+};
+struct ImGuiPlatformIO {
+ const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx);
+ void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text);
+ void* Platform_ClipboardUserData;
+ bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path);
+ void* Platform_OpenInShellUserData;
+ void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data);
+ void* Platform_ImeUserData;
+ ImWchar Platform_LocaleDecimalPoint;
+ int Platform_SessionDate;
+ int Renderer_TextureMaxWidth;
+ int Renderer_TextureMaxHeight;
+ void* Renderer_RenderState;
+ ImDrawCallback DrawCallback_ResetRenderState;
+ ImDrawCallback DrawCallback_SetSamplerLinear;
+ ImDrawCallback DrawCallback_SetSamplerNearest;
+ ImDrawCallback DrawCallback_SetSamplerFromTex;
+ ImVector_ImTextureDataPtr Textures;
+};
+struct ImGuiPlatformImeData {
+ bool WantVisible;
+ bool WantTextInput;
+ ImVec2 InputPos;
+ float InputLineHeight;
+ ImGuiID ViewportId;
+};
+
+// Functions
+
+// ImGui
+CIMGUI_API ImGuiContext* ImGui_CreateContext(void);
+CIMGUI_API ImGuiContext* ImGui_CreateContextEx(ImFontAtlas* shared_font_atlas);
+CIMGUI_API void ImGui_DestroyContext(void);
+CIMGUI_API void ImGui_DestroyContextEx(ImGuiContext* ctx);
+CIMGUI_API ImGuiContext* ImGui_GetCurrentContext(void);
+CIMGUI_API void ImGui_SetCurrentContext(ImGuiContext* ctx);
+CIMGUI_API ImGuiIO* ImGui_GetIO(void);
+CIMGUI_API ImGuiPlatformIO* ImGui_GetPlatformIO(void);
+CIMGUI_API ImGuiStyle* ImGui_GetStyle(void);
+CIMGUI_API void ImGui_NewFrame(void);
+CIMGUI_API void ImGui_EndFrame(void);
+CIMGUI_API void ImGui_Render(void);
+CIMGUI_API ImDrawData* ImGui_GetDrawData(void);
+CIMGUI_API void ImGui_ShowDemoWindow(void);
+CIMGUI_API void ImGui_ShowDemoWindowEx(bool* p_open);
+CIMGUI_API void ImGui_ShowMetricsWindow(void);
+CIMGUI_API void ImGui_ShowMetricsWindowEx(bool* p_open);
+CIMGUI_API void ImGui_ShowDebugLogWindow(void);
+CIMGUI_API void ImGui_ShowDebugLogWindowEx(bool* p_open);
+CIMGUI_API void ImGui_ShowIDStackToolWindow(void);
+CIMGUI_API void ImGui_ShowIDStackToolWindowEx(bool* p_open);
+CIMGUI_API void ImGui_ShowAboutWindow(void);
+CIMGUI_API void ImGui_ShowAboutWindowEx(bool* p_open);
+CIMGUI_API void ImGui_ShowStyleEditor(void);
+CIMGUI_API void ImGui_ShowStyleEditorEx(ImGuiStyle* ref);
+CIMGUI_API bool ImGui_ShowStyleSelector(const char* label);
+CIMGUI_API void ImGui_ShowFontSelector(const char* label);
+CIMGUI_API void ImGui_ShowUserGuide(void);
+CIMGUI_API const char* ImGui_GetVersion(void);
+CIMGUI_API void ImGui_StyleColorsDark(void);
+CIMGUI_API void ImGui_StyleColorsDarkEx(ImGuiStyle* dst);
+CIMGUI_API void ImGui_StyleColorsLight(void);
+CIMGUI_API void ImGui_StyleColorsLightEx(ImGuiStyle* dst);
+CIMGUI_API void ImGui_StyleColorsClassic(void);
+CIMGUI_API void ImGui_StyleColorsClassicEx(ImGuiStyle* dst);
+CIMGUI_API bool ImGui_Begin(const char* name);
+CIMGUI_API bool ImGui_BeginEx(const char* name, bool* p_open, ImGuiWindowFlags flags);
+CIMGUI_API void ImGui_End(void);
+CIMGUI_API bool ImGui_BeginChild(const char* str_id);
+CIMGUI_API bool ImGui_BeginChildEx(const char* str_id, ImVec2 size, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags);
+CIMGUI_API bool ImGui_BeginChildID(ImGuiID id);
+CIMGUI_API bool ImGui_BeginChildIDEx(ImGuiID id, ImVec2 size, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags);
+CIMGUI_API void ImGui_EndChild(void);
+CIMGUI_API bool ImGui_IsWindowAppearing(void);
+CIMGUI_API bool ImGui_IsWindowCollapsed(void);
+CIMGUI_API bool ImGui_IsWindowFocused(void);
+CIMGUI_API bool ImGui_IsWindowFocusedEx(ImGuiFocusedFlags flags);
+CIMGUI_API bool ImGui_IsWindowHovered(void);
+CIMGUI_API bool ImGui_IsWindowHoveredEx(ImGuiHoveredFlags flags);
+CIMGUI_API ImDrawList* ImGui_GetWindowDrawList(void);
+CIMGUI_API ImVec2 ImGui_GetWindowPos(void);
+CIMGUI_API ImVec2 ImGui_GetWindowSize(void);
+CIMGUI_API float ImGui_GetWindowWidth(void);
+CIMGUI_API float ImGui_GetWindowHeight(void);
+CIMGUI_API void ImGui_SetNextWindowPos(ImVec2 pos);
+CIMGUI_API void ImGui_SetNextWindowPosEx(ImVec2 pos, ImGuiCond cond, ImVec2 pivot);
+CIMGUI_API void ImGui_SetNextWindowSize(ImVec2 size);
+CIMGUI_API void ImGui_SetNextWindowSizeEx(ImVec2 size, ImGuiCond cond);
+CIMGUI_API void ImGui_SetNextWindowSizeConstraints(ImVec2 size_min, ImVec2 size_max);
+CIMGUI_API void ImGui_SetNextWindowSizeConstraintsEx(ImVec2 size_min, ImVec2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data);
+CIMGUI_API void ImGui_SetNextWindowContentSize(ImVec2 size);
+CIMGUI_API void ImGui_SetNextWindowCollapsed(bool collapsed);
+CIMGUI_API void ImGui_SetNextWindowCollapsedEx(bool collapsed, ImGuiCond cond);
+CIMGUI_API void ImGui_SetNextWindowFocus(void);
+CIMGUI_API void ImGui_SetNextWindowScroll(ImVec2 scroll);
+CIMGUI_API void ImGui_SetNextWindowBgAlpha(float alpha);
+CIMGUI_API void ImGui_SetWindowPos(ImVec2 pos);
+CIMGUI_API void ImGui_SetWindowPosEx(ImVec2 pos, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowSize(ImVec2 size);
+CIMGUI_API void ImGui_SetWindowSizeEx(ImVec2 size, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowCollapsed(bool collapsed);
+CIMGUI_API void ImGui_SetWindowCollapsedEx(bool collapsed, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowFocus(void);
+CIMGUI_API void ImGui_SetWindowPosStr(const char* name, ImVec2 pos);
+CIMGUI_API void ImGui_SetWindowPosStrEx(const char* name, ImVec2 pos, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowSizeStr(const char* name, ImVec2 size);
+CIMGUI_API void ImGui_SetWindowSizeStrEx(const char* name, ImVec2 size, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowCollapsedStr(const char* name, bool collapsed);
+CIMGUI_API void ImGui_SetWindowCollapsedStrEx(const char* name, bool collapsed, ImGuiCond cond);
+CIMGUI_API void ImGui_SetWindowFocusStr(const char* name);
+CIMGUI_API float ImGui_GetScrollX(void);
+CIMGUI_API float ImGui_GetScrollY(void);
+CIMGUI_API void ImGui_SetScrollX(float scroll_x);
+CIMGUI_API void ImGui_SetScrollY(float scroll_y);
+CIMGUI_API float ImGui_GetScrollMaxX(void);
+CIMGUI_API float ImGui_GetScrollMaxY(void);
+CIMGUI_API void ImGui_SetScrollHereX(void);
+CIMGUI_API void ImGui_SetScrollHereXEx(float center_x_ratio);
+CIMGUI_API void ImGui_SetScrollHereY(void);
+CIMGUI_API void ImGui_SetScrollHereYEx(float center_y_ratio);
+CIMGUI_API void ImGui_SetScrollFromPosX(float local_x);
+CIMGUI_API void ImGui_SetScrollFromPosXEx(float local_x, float center_x_ratio);
+CIMGUI_API void ImGui_SetScrollFromPosY(float local_y);
+CIMGUI_API void ImGui_SetScrollFromPosYEx(float local_y, float center_y_ratio);
+CIMGUI_API void ImGui_PushFont(ImFont* font, float font_size_base_unscaled);
+CIMGUI_API void ImGui_PopFont(void);
+CIMGUI_API ImFont* ImGui_GetFont(void);
+CIMGUI_API float ImGui_GetFontSize(void);
+CIMGUI_API ImFontBaked* ImGui_GetFontBaked(void);
+CIMGUI_API void ImGui_PushStyleColor(ImGuiCol idx, ImU32 col);
+CIMGUI_API void ImGui_PushStyleColorVec4(ImGuiCol idx, ImVec4 col);
+CIMGUI_API void ImGui_PopStyleColor(void);
+CIMGUI_API void ImGui_PopStyleColorEx(int count);
+CIMGUI_API void ImGui_PushStyleVar(ImGuiStyleVar idx, float val);
+CIMGUI_API void ImGui_PushStyleVarVec2(ImGuiStyleVar idx, ImVec2 val);
+CIMGUI_API void ImGui_PushStyleVarX(ImGuiStyleVar idx, float val_x);
+CIMGUI_API void ImGui_PushStyleVarY(ImGuiStyleVar idx, float val_y);
+CIMGUI_API void ImGui_PopStyleVar(void);
+CIMGUI_API void ImGui_PopStyleVarEx(int count);
+CIMGUI_API void ImGui_PushItemFlag(ImGuiItemFlags option, bool enabled);
+CIMGUI_API void ImGui_PopItemFlag(void);
+CIMGUI_API void ImGui_PushItemWidth(float item_width);
+CIMGUI_API void ImGui_PopItemWidth(void);
+CIMGUI_API void ImGui_SetNextItemWidth(float item_width);
+CIMGUI_API float ImGui_CalcItemWidth(void);
+CIMGUI_API void ImGui_PushTextWrapPos(void);
+CIMGUI_API void ImGui_PushTextWrapPosEx(float wrap_local_pos_x);
+CIMGUI_API void ImGui_PopTextWrapPos(void);
+CIMGUI_API ImVec2 ImGui_GetFontTexUvWhitePixel(void);
+CIMGUI_API ImU32 ImGui_GetColorU32(ImGuiCol idx);
+CIMGUI_API ImU32 ImGui_GetColorU32Ex(ImGuiCol idx, float alpha_mul);
+CIMGUI_API ImU32 ImGui_GetColorU32Vec4(ImVec4 col);
+CIMGUI_API ImU32 ImGui_GetColorU32U32(ImU32 col);
+CIMGUI_API ImU32 ImGui_GetColorU32U32Ex(ImU32 col, float alpha_mul);
+CIMGUI_API const ImVec4* ImGui_GetStyleColorVec4(ImGuiCol idx);
+CIMGUI_API ImVec2 ImGui_GetCursorScreenPos(void);
+CIMGUI_API void ImGui_SetCursorScreenPos(ImVec2 pos);
+CIMGUI_API ImVec2 ImGui_GetContentRegionAvail(void);
+CIMGUI_API ImVec2 ImGui_GetCursorPos(void);
+CIMGUI_API float ImGui_GetCursorPosX(void);
+CIMGUI_API float ImGui_GetCursorPosY(void);
+CIMGUI_API void ImGui_SetCursorPos(ImVec2 local_pos);
+CIMGUI_API void ImGui_SetCursorPosX(float local_x);
+CIMGUI_API void ImGui_SetCursorPosY(float local_y);
+CIMGUI_API ImVec2 ImGui_GetCursorStartPos(void);
+CIMGUI_API void ImGui_Separator(void);
+CIMGUI_API void ImGui_SameLine(void);
+CIMGUI_API void ImGui_SameLineEx(float offset_from_start_x, float spacing);
+CIMGUI_API void ImGui_NewLine(void);
+CIMGUI_API void ImGui_Spacing(void);
+CIMGUI_API void ImGui_Dummy(ImVec2 size);
+CIMGUI_API void ImGui_Indent(void);
+CIMGUI_API void ImGui_IndentEx(float indent_w);
+CIMGUI_API void ImGui_Unindent(void);
+CIMGUI_API void ImGui_UnindentEx(float indent_w);
+CIMGUI_API void ImGui_BeginGroup(void);
+CIMGUI_API void ImGui_EndGroup(void);
+CIMGUI_API void ImGui_AlignTextToFramePadding(void);
+CIMGUI_API float ImGui_GetTextLineHeight(void);
+CIMGUI_API float ImGui_GetTextLineHeightWithSpacing(void);
+CIMGUI_API float ImGui_GetFrameHeight(void);
+CIMGUI_API float ImGui_GetFrameHeightWithSpacing(void);
+CIMGUI_API void ImGui_PushID(const char* str_id);
+CIMGUI_API void ImGui_PushIDStr(const char* str_id_begin, const char* str_id_end);
+CIMGUI_API void ImGui_PushIDPtr(const void* ptr_id);
+CIMGUI_API void ImGui_PushIDInt(int int_id);
+CIMGUI_API void ImGui_PopID(void);
+CIMGUI_API ImGuiID ImGui_GetID(const char* str_id);
+CIMGUI_API ImGuiID ImGui_GetIDStr(const char* str_id_begin, const char* str_id_end);
+CIMGUI_API ImGuiID ImGui_GetIDPtr(const void* ptr_id);
+CIMGUI_API ImGuiID ImGui_GetIDInt(int int_id);
+CIMGUI_API void ImGui_TextUnformatted(const char* text);
+CIMGUI_API void ImGui_TextUnformattedEx(const char* text, const char* text_end);
+CIMGUI_API void ImGui_Text(const char* fmt, ...);
+CIMGUI_API void ImGui_TextV(const char* fmt, va_list args);
+CIMGUI_API void ImGui_TextColored(ImVec4 col, const char* fmt, ...);
+CIMGUI_API void ImGui_TextColoredV(ImVec4 col, const char* fmt, va_list args);
+CIMGUI_API void ImGui_TextDisabled(const char* fmt, ...);
+CIMGUI_API void ImGui_TextDisabledV(const char* fmt, va_list args);
+CIMGUI_API void ImGui_TextWrapped(const char* fmt, ...);
+CIMGUI_API void ImGui_TextWrappedV(const char* fmt, va_list args);
+CIMGUI_API void ImGui_LabelText(const char* label, const char* fmt, ...);
+CIMGUI_API void ImGui_LabelTextV(const char* label, const char* fmt, va_list args);
+CIMGUI_API void ImGui_BulletText(const char* fmt, ...);
+CIMGUI_API void ImGui_BulletTextV(const char* fmt, va_list args);
+CIMGUI_API void ImGui_SeparatorText(const char* label);
+CIMGUI_API bool ImGui_Button(const char* label);
+CIMGUI_API bool ImGui_ButtonEx(const char* label, ImVec2 size);
+CIMGUI_API bool ImGui_SmallButton(const char* label);
+CIMGUI_API bool ImGui_InvisibleButton(const char* str_id, ImVec2 size);
+CIMGUI_API bool ImGui_InvisibleButtonEx(const char* str_id, ImVec2 size, ImGuiButtonFlags flags);
+CIMGUI_API bool ImGui_ArrowButton(const char* str_id, ImGuiDir dir);
+CIMGUI_API bool ImGui_Checkbox(const char* label, bool* v);
+CIMGUI_API bool ImGui_CheckboxFlags(const char* label, int* flags, int flags_value);
+CIMGUI_API bool ImGui_CheckboxFlagsUIntPtr(const char* label, unsigned int* flags, unsigned int flags_value);
+CIMGUI_API bool ImGui_RadioButton(const char* label, bool active);
+CIMGUI_API bool ImGui_RadioButtonIntPtr(const char* label, int* v, int v_button);
+CIMGUI_API void ImGui_ProgressBar(float fraction);
+CIMGUI_API void ImGui_ProgressBarEx(float fraction, ImVec2 size_arg, const char* overlay);
+CIMGUI_API void ImGui_Bullet(void);
+CIMGUI_API bool ImGui_TextLink(const char* label);
+CIMGUI_API bool ImGui_TextLinkOpenURL(const char* label);
+CIMGUI_API bool ImGui_TextLinkOpenURLEx(const char* label, const char* url);
+CIMGUI_API void ImGui_Image(ImTextureRef tex_ref, ImVec2 image_size);
+CIMGUI_API void ImGui_ImageEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1);
+CIMGUI_API void ImGui_ImageWithBg(ImTextureRef tex_ref, ImVec2 image_size);
+CIMGUI_API void ImGui_ImageWithBgEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1, ImVec4 bg_col, ImVec4 tint_col);
+CIMGUI_API bool ImGui_ImageButton(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size);
+CIMGUI_API bool ImGui_ImageButtonEx(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1, ImVec4 bg_col, ImVec4 tint_col);
+CIMGUI_API bool ImGui_BeginCombo(const char* label, const char* preview_value);
+CIMGUI_API bool ImGui_BeginComboEx(const char* label, const char* preview_value, ImGuiComboFlags flags);
+CIMGUI_API void ImGui_EndCombo(void);
+CIMGUI_API bool ImGui_Combo(const char* label, int* current_item, const char* const items[], int items_count);
+CIMGUI_API bool ImGui_ComboEx(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items);
+CIMGUI_API bool ImGui_ComboStr(const char* label, int* current_item, const char* items_separated_by_zeros);
+CIMGUI_API bool ImGui_ComboStrEx(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items);
+CIMGUI_API bool ImGui_ComboCallback(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count);
+CIMGUI_API bool ImGui_ComboCallbackEx(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items);
+CIMGUI_API bool ImGui_DragFloat(const char* label, float* v);
+CIMGUI_API bool ImGui_DragFloatEx(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragFloat2(const char* label, float v[2]);
+CIMGUI_API bool ImGui_DragFloat2Ex(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragFloat3(const char* label, float v[3]);
+CIMGUI_API bool ImGui_DragFloat3Ex(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragFloat4(const char* label, float v[4]);
+CIMGUI_API bool ImGui_DragFloat4Ex(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragFloatRange2(const char* label, float* v_current_min, float* v_current_max);
+CIMGUI_API bool ImGui_DragFloatRange2Ex(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragInt(const char* label, int* v);
+CIMGUI_API bool ImGui_DragIntEx(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragInt2(const char* label, int v[2]);
+CIMGUI_API bool ImGui_DragInt2Ex(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragInt3(const char* label, int v[3]);
+CIMGUI_API bool ImGui_DragInt3Ex(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragInt4(const char* label, int v[4]);
+CIMGUI_API bool ImGui_DragInt4Ex(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragIntRange2(const char* label, int* v_current_min, int* v_current_max);
+CIMGUI_API bool ImGui_DragIntRange2Ex(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragScalar(const char* label, ImGuiDataType data_type, void* p_data);
+CIMGUI_API bool ImGui_DragScalarEx(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components);
+CIMGUI_API bool ImGui_DragScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderFloat(const char* label, float* v, float v_min, float v_max);
+CIMGUI_API bool ImGui_SliderFloatEx(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderFloat2(const char* label, float v[2], float v_min, float v_max);
+CIMGUI_API bool ImGui_SliderFloat2Ex(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderFloat3(const char* label, float v[3], float v_min, float v_max);
+CIMGUI_API bool ImGui_SliderFloat3Ex(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderFloat4(const char* label, float v[4], float v_min, float v_max);
+CIMGUI_API bool ImGui_SliderFloat4Ex(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderAngle(const char* label, float* v_rad);
+CIMGUI_API bool ImGui_SliderAngleEx(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderInt(const char* label, int* v, int v_min, int v_max);
+CIMGUI_API bool ImGui_SliderIntEx(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderInt2(const char* label, int v[2], int v_min, int v_max);
+CIMGUI_API bool ImGui_SliderInt2Ex(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderInt3(const char* label, int v[3], int v_min, int v_max);
+CIMGUI_API bool ImGui_SliderInt3Ex(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderInt4(const char* label, int v[4], int v_min, int v_max);
+CIMGUI_API bool ImGui_SliderInt4Ex(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max);
+CIMGUI_API bool ImGui_SliderScalarEx(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max);
+CIMGUI_API bool ImGui_SliderScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_VSliderFloat(const char* label, ImVec2 size, float* v, float v_min, float v_max);
+CIMGUI_API bool ImGui_VSliderFloatEx(const char* label, ImVec2 size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_VSliderInt(const char* label, ImVec2 size, int* v, int v_min, int v_max);
+CIMGUI_API bool ImGui_VSliderIntEx(const char* label, ImVec2 size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_VSliderScalar(const char* label, ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max);
+CIMGUI_API bool ImGui_VSliderScalarEx(const char* label, ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
+CIMGUI_API bool ImGui_InputText(const char* label, char* buf, size_t buf_size);
+CIMGUI_API bool ImGui_InputTextEx(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data);
+CIMGUI_API bool ImGui_InputTextMultiline(const char* label, char* buf, size_t buf_size);
+CIMGUI_API bool ImGui_InputTextMultilineEx(const char* label, char* buf, size_t buf_size, ImVec2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data);
+CIMGUI_API bool ImGui_InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size);
+CIMGUI_API bool ImGui_InputTextWithHintEx(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data);
+CIMGUI_API bool ImGui_InputFloat(const char* label, float* v);
+CIMGUI_API bool ImGui_InputFloatEx(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputFloat2(const char* label, float v[2]);
+CIMGUI_API bool ImGui_InputFloat2Ex(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputFloat3(const char* label, float v[3]);
+CIMGUI_API bool ImGui_InputFloat3Ex(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputFloat4(const char* label, float v[4]);
+CIMGUI_API bool ImGui_InputFloat4Ex(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputInt(const char* label, int* v);
+CIMGUI_API bool ImGui_InputIntEx(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputInt2(const char* label, int v[2]);
+CIMGUI_API bool ImGui_InputInt2Ex(const char* label, int v[2], ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputInt3(const char* label, int v[3]);
+CIMGUI_API bool ImGui_InputInt3Ex(const char* label, int v[3], ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputInt4(const char* label, int v[4]);
+CIMGUI_API bool ImGui_InputInt4Ex(const char* label, int v[4], ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputDouble(const char* label, double* v);
+CIMGUI_API bool ImGui_InputDoubleEx(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputScalar(const char* label, ImGuiDataType data_type, void* p_data);
+CIMGUI_API bool ImGui_InputScalarEx(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components);
+CIMGUI_API bool ImGui_InputScalarNEx(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags);
+CIMGUI_API bool ImGui_ColorEdit3(const char* label, float col[3]);
+CIMGUI_API bool ImGui_ColorEdit3Ex(const char* label, float col[3], ImGuiColorEditFlags flags);
+CIMGUI_API bool ImGui_ColorEdit4(const char* label, float col[4]);
+CIMGUI_API bool ImGui_ColorEdit4Ex(const char* label, float col[4], ImGuiColorEditFlags flags);
+CIMGUI_API bool ImGui_ColorPicker3(const char* label, float col[3]);
+CIMGUI_API bool ImGui_ColorPicker3Ex(const char* label, float col[3], ImGuiColorEditFlags flags);
+CIMGUI_API bool ImGui_ColorPicker4(const char* label, float col[4]);
+CIMGUI_API bool ImGui_ColorPicker4Ex(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col);
+CIMGUI_API bool ImGui_ColorButton(const char* desc_id, ImVec4 col);
+CIMGUI_API bool ImGui_ColorButtonEx(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags, ImVec2 size);
+CIMGUI_API bool ImGui_TreeNode(const char* label);
+CIMGUI_API bool ImGui_TreeNodeStr(const char* str_id, const char* fmt, ...);
+CIMGUI_API bool ImGui_TreeNodePtr(const void* ptr_id, const char* fmt, ...);
+CIMGUI_API bool ImGui_TreeNodeV(const char* str_id, const char* fmt, va_list args);
+CIMGUI_API bool ImGui_TreeNodeVPtr(const void* ptr_id, const char* fmt, va_list args);
+CIMGUI_API bool ImGui_TreeNodeEx(const char* label);
+CIMGUI_API bool ImGui_TreeNodeExEx(const char* label, ImGuiTreeNodeFlags flags);
+CIMGUI_API bool ImGui_TreeNodeExStr(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...);
+CIMGUI_API bool ImGui_TreeNodeExPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...);
+CIMGUI_API bool ImGui_TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args);
+CIMGUI_API bool ImGui_TreeNodeExVPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args);
+CIMGUI_API void ImGui_TreePush(const char* str_id);
+CIMGUI_API void ImGui_TreePushPtr(const void* ptr_id);
+CIMGUI_API void ImGui_TreePop(void);
+CIMGUI_API float ImGui_GetTreeNodeToLabelSpacing(void);
+CIMGUI_API bool ImGui_CollapsingHeader(const char* label);
+CIMGUI_API bool ImGui_CollapsingHeaderEx(const char* label, ImGuiTreeNodeFlags flags);
+CIMGUI_API bool ImGui_CollapsingHeaderBoolPtr(const char* label, bool* p_visible);
+CIMGUI_API bool ImGui_CollapsingHeaderBoolPtrEx(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags);
+CIMGUI_API void ImGui_SetNextItemOpen(bool is_open);
+CIMGUI_API void ImGui_SetNextItemOpenEx(bool is_open, ImGuiCond cond);
+CIMGUI_API void ImGui_SetNextItemStorageID(ImGuiID storage_id);
+CIMGUI_API bool ImGui_TreeNodeGetOpen(ImGuiID storage_id);
+CIMGUI_API bool ImGui_TreeNodeGetOpenEx(ImGuiID storage_id, ImGuiTreeNodeFlags flags);
+CIMGUI_API bool ImGui_Selectable(const char* label);
+CIMGUI_API bool ImGui_SelectableEx(const char* label, bool selected, ImGuiSelectableFlags flags, ImVec2 size);
+CIMGUI_API bool ImGui_SelectableBoolPtr(const char* label, bool* p_selected);
+CIMGUI_API bool ImGui_SelectableBoolPtrEx(const char* label, bool* p_selected, ImGuiSelectableFlags flags, ImVec2 size);
+CIMGUI_API ImGuiMultiSelectIO* ImGui_BeginMultiSelect(ImGuiMultiSelectFlags flags);
+CIMGUI_API ImGuiMultiSelectIO* ImGui_BeginMultiSelectEx(ImGuiMultiSelectFlags flags, int selection_size, int items_count);
+CIMGUI_API ImGuiMultiSelectIO* ImGui_EndMultiSelect(void);
+CIMGUI_API void ImGui_SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data);
+CIMGUI_API bool ImGui_IsItemToggledSelection(void);
+CIMGUI_API bool ImGui_BeginListBox(const char* label);
+CIMGUI_API bool ImGui_BeginListBoxEx(const char* label, ImVec2 size);
+CIMGUI_API void ImGui_EndListBox(void);
+CIMGUI_API bool ImGui_ListBox(const char* label, int* current_item, const char* const items[], int items_count);
+CIMGUI_API bool ImGui_ListBoxEx(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items);
+CIMGUI_API bool ImGui_ListBoxCallback(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count);
+CIMGUI_API bool ImGui_ListBoxCallbackEx(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items);
+CIMGUI_API void ImGui_PlotLines(const char* label, const float* values, int values_count);
+CIMGUI_API void ImGui_PlotLinesEx(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride);
+CIMGUI_API void ImGui_PlotLinesCallback(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count);
+CIMGUI_API void ImGui_PlotLinesCallbackEx(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size);
+CIMGUI_API void ImGui_PlotHistogram(const char* label, const float* values, int values_count);
+CIMGUI_API void ImGui_PlotHistogramEx(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride);
+CIMGUI_API void ImGui_PlotHistogramCallback(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count);
+CIMGUI_API void ImGui_PlotHistogramCallbackEx(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size);
+CIMGUI_API void ImGui_Value(const char* prefix, bool b);
+CIMGUI_API void ImGui_ValueInt(const char* prefix, int v);
+CIMGUI_API void ImGui_ValueUInt(const char* prefix, unsigned int v);
+CIMGUI_API void ImGui_ValueFloat(const char* prefix, float v);
+CIMGUI_API void ImGui_ValueFloatEx(const char* prefix, float v, const char* float_format);
+CIMGUI_API bool ImGui_BeginMenuBar(void);
+CIMGUI_API void ImGui_EndMenuBar(void);
+CIMGUI_API bool ImGui_BeginMainMenuBar(void);
+CIMGUI_API void ImGui_EndMainMenuBar(void);
+CIMGUI_API bool ImGui_BeginMenu(const char* label);
+CIMGUI_API bool ImGui_BeginMenuEx(const char* label, bool enabled);
+CIMGUI_API void ImGui_EndMenu(void);
+CIMGUI_API bool ImGui_MenuItem(const char* label);
+CIMGUI_API bool ImGui_MenuItemEx(const char* label, const char* shortcut, bool selected, bool enabled);
+CIMGUI_API bool ImGui_MenuItemBoolPtr(const char* label, const char* shortcut, bool* p_selected);
+CIMGUI_API bool ImGui_MenuItemBoolPtrEx(const char* label, const char* shortcut, bool* p_selected, bool enabled);
+CIMGUI_API bool ImGui_BeginTooltip(void);
+CIMGUI_API void ImGui_EndTooltip(void);
+CIMGUI_API void ImGui_SetTooltip(const char* fmt, ...);
+CIMGUI_API void ImGui_SetTooltipV(const char* fmt, va_list args);
+CIMGUI_API bool ImGui_BeginItemTooltip(void);
+CIMGUI_API void ImGui_SetItemTooltip(const char* fmt, ...);
+CIMGUI_API void ImGui_SetItemTooltipV(const char* fmt, va_list args);
+CIMGUI_API bool ImGui_BeginPopup(const char* str_id);
+CIMGUI_API bool ImGui_BeginPopupEx(const char* str_id, ImGuiWindowFlags flags);
+CIMGUI_API bool ImGui_BeginPopupModal(const char* name);
+CIMGUI_API bool ImGui_BeginPopupModalEx(const char* name, bool* p_open, ImGuiWindowFlags flags);
+CIMGUI_API void ImGui_EndPopup(void);
+CIMGUI_API bool ImGui_OpenPopup(const char* str_id);
+CIMGUI_API bool ImGui_OpenPopupEx(const char* str_id, ImGuiPopupFlags popup_flags);
+CIMGUI_API bool ImGui_OpenPopupID(ImGuiID id);
+CIMGUI_API bool ImGui_OpenPopupIDEx(ImGuiID id, ImGuiPopupFlags popup_flags);
+CIMGUI_API bool ImGui_OpenPopupOnItemClick(void);
+CIMGUI_API bool ImGui_OpenPopupOnItemClickEx(const char* str_id, ImGuiPopupFlags popup_flags);
+CIMGUI_API void ImGui_CloseCurrentPopup(void);
+CIMGUI_API bool ImGui_BeginPopupContextItem(void);
+CIMGUI_API bool ImGui_BeginPopupContextItemEx(const char* str_id, ImGuiPopupFlags popup_flags);
+CIMGUI_API bool ImGui_BeginPopupContextWindow(void);
+CIMGUI_API bool ImGui_BeginPopupContextWindowEx(const char* str_id, ImGuiPopupFlags popup_flags);
+CIMGUI_API bool ImGui_BeginPopupContextVoid(void);
+CIMGUI_API bool ImGui_BeginPopupContextVoidEx(const char* str_id, ImGuiPopupFlags popup_flags);
+CIMGUI_API bool ImGui_IsPopupOpen(const char* str_id);
+CIMGUI_API bool ImGui_IsPopupOpenEx(const char* str_id, ImGuiPopupFlags flags);
+CIMGUI_API bool ImGui_BeginTable(const char* str_id, int columns);
+CIMGUI_API bool ImGui_BeginTableEx(const char* str_id, int columns, ImGuiTableFlags flags, ImVec2 outer_size, float inner_width);
+CIMGUI_API void ImGui_EndTable(void);
+CIMGUI_API void ImGui_TableNextRow(void);
+CIMGUI_API void ImGui_TableNextRowEx(ImGuiTableRowFlags row_flags, float min_row_height);
+CIMGUI_API bool ImGui_TableNextColumn(void);
+CIMGUI_API bool ImGui_TableSetColumnIndex(int column_n);
+CIMGUI_API void ImGui_TableSetupColumn(const char* label);
+CIMGUI_API void ImGui_TableSetupColumnEx(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_data);
+CIMGUI_API void ImGui_TableSetupScrollFreeze(int cols, int rows);
+CIMGUI_API void ImGui_TableHeader(const char* label);
+CIMGUI_API void ImGui_TableHeadersRow(void);
+CIMGUI_API void ImGui_TableAngledHeadersRow(void);
+CIMGUI_API ImGuiTableSortSpecs* ImGui_TableGetSortSpecs(void);
+CIMGUI_API int ImGui_TableGetColumnCount(void);
+CIMGUI_API int ImGui_TableGetColumnIndex(void);
+CIMGUI_API int ImGui_TableGetRowIndex(void);
+CIMGUI_API const char* ImGui_TableGetColumnName(void);
+CIMGUI_API const char* ImGui_TableGetColumnNameEx(int column_n);
+CIMGUI_API ImGuiTableColumnFlags ImGui_TableGetColumnFlags(void);
+CIMGUI_API ImGuiTableColumnFlags ImGui_TableGetColumnFlagsEx(int column_n);
+CIMGUI_API void ImGui_TableSetColumnEnabled(int column_n, bool v);
+CIMGUI_API int ImGui_TableGetHoveredColumn(void);
+CIMGUI_API void ImGui_TableSetBgColor(ImGuiTableBgTarget target, ImU32 color);
+CIMGUI_API void ImGui_TableSetBgColorEx(ImGuiTableBgTarget target, ImU32 color, int column_n);
+CIMGUI_API void ImGui_Columns(void);
+CIMGUI_API void ImGui_ColumnsEx(int count, const char* id, bool borders);
+CIMGUI_API void ImGui_NextColumn(void);
+CIMGUI_API int ImGui_GetColumnIndex(void);
+CIMGUI_API float ImGui_GetColumnWidth(void);
+CIMGUI_API float ImGui_GetColumnWidthEx(int column_index);
+CIMGUI_API void ImGui_SetColumnWidth(int column_index, float width);
+CIMGUI_API float ImGui_GetColumnOffset(void);
+CIMGUI_API float ImGui_GetColumnOffsetEx(int column_index);
+CIMGUI_API void ImGui_SetColumnOffset(int column_index, float offset_x);
+CIMGUI_API int ImGui_GetColumnsCount(void);
+CIMGUI_API bool ImGui_BeginTabBar(const char* str_id);
+CIMGUI_API bool ImGui_BeginTabBarEx(const char* str_id, ImGuiTabBarFlags flags);
+CIMGUI_API void ImGui_EndTabBar(void);
+CIMGUI_API bool ImGui_BeginTabItem(const char* label);
+CIMGUI_API bool ImGui_BeginTabItemEx(const char* label, bool* p_open, ImGuiTabItemFlags flags);
+CIMGUI_API void ImGui_EndTabItem(void);
+CIMGUI_API bool ImGui_TabItemButton(const char* label);
+CIMGUI_API bool ImGui_TabItemButtonEx(const char* label, ImGuiTabItemFlags flags);
+CIMGUI_API void ImGui_SetTabItemClosed(const char* tab_or_docked_window_label);
+CIMGUI_API void ImGui_LogToTTY(void);
+CIMGUI_API void ImGui_LogToTTYEx(int auto_open_depth);
+CIMGUI_API void ImGui_LogToFile(void);
+CIMGUI_API void ImGui_LogToFileEx(int auto_open_depth, const char* filename);
+CIMGUI_API void ImGui_LogToClipboard(void);
+CIMGUI_API void ImGui_LogToClipboardEx(int auto_open_depth);
+CIMGUI_API void ImGui_LogFinish(void);
+CIMGUI_API void ImGui_LogButtons(void);
+CIMGUI_API void ImGui_LogText(const char* fmt, ...);
+CIMGUI_API void ImGui_LogTextV(const char* fmt, va_list args);
+CIMGUI_API bool ImGui_BeginDragDropSource(void);
+CIMGUI_API bool ImGui_BeginDragDropSourceEx(ImGuiDragDropFlags flags);
+CIMGUI_API bool ImGui_SetDragDropPayload(const char* type, const void* data, size_t sz);
+CIMGUI_API bool ImGui_SetDragDropPayloadEx(const char* type, const void* data, size_t sz, ImGuiCond cond);
+CIMGUI_API void ImGui_EndDragDropSource(void);
+CIMGUI_API bool ImGui_BeginDragDropTarget(void);
+CIMGUI_API const ImGuiPayload* ImGui_AcceptDragDropPayload(const char* type);
+CIMGUI_API const ImGuiPayload* ImGui_AcceptDragDropPayloadEx(const char* type, ImGuiDragDropFlags flags);
+CIMGUI_API void ImGui_EndDragDropTarget(void);
+CIMGUI_API const ImGuiPayload* ImGui_GetDragDropPayload(void);
+CIMGUI_API void ImGui_BeginDisabled(void);
+CIMGUI_API void ImGui_BeginDisabledEx(bool disabled);
+CIMGUI_API void ImGui_EndDisabled(void);
+CIMGUI_API void ImGui_PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect);
+CIMGUI_API void ImGui_PopClipRect(void);
+CIMGUI_API void ImGui_SetItemDefaultFocus(void);
+CIMGUI_API void ImGui_SetKeyboardFocusHere(void);
+CIMGUI_API void ImGui_SetKeyboardFocusHereEx(int offset);
+CIMGUI_API void ImGui_SetNavCursorVisible(bool visible);
+CIMGUI_API void ImGui_SetNextItemAllowOverlap(void);
+CIMGUI_API bool ImGui_IsItemHovered(void);
+CIMGUI_API bool ImGui_IsItemHoveredEx(ImGuiHoveredFlags flags);
+CIMGUI_API bool ImGui_IsItemActive(void);
+CIMGUI_API bool ImGui_IsItemFocused(void);
+CIMGUI_API bool ImGui_IsItemClicked(void);
+CIMGUI_API bool ImGui_IsItemClickedEx(ImGuiMouseButton mouse_button);
+CIMGUI_API bool ImGui_IsItemVisible(void);
+CIMGUI_API bool ImGui_IsItemEdited(void);
+CIMGUI_API bool ImGui_IsItemActivated(void);
+CIMGUI_API bool ImGui_IsItemDeactivated(void);
+CIMGUI_API bool ImGui_IsItemDeactivatedAfterEdit(void);
+CIMGUI_API bool ImGui_IsItemToggledOpen(void);
+CIMGUI_API bool ImGui_IsAnyItemHovered(void);
+CIMGUI_API bool ImGui_IsAnyItemActive(void);
+CIMGUI_API bool ImGui_IsAnyItemFocused(void);
+CIMGUI_API ImGuiID ImGui_GetItemID(void);
+CIMGUI_API ImVec2 ImGui_GetItemRectMin(void);
+CIMGUI_API ImVec2 ImGui_GetItemRectMax(void);
+CIMGUI_API ImVec2 ImGui_GetItemRectSize(void);
+CIMGUI_API ImGuiItemFlags ImGui_GetItemFlags(void);
+CIMGUI_API int ImGui_GetItemClickedCountWithSingleClickDelay(void);
+CIMGUI_API int ImGui_GetItemClickedCountWithSingleClickDelayEx(ImGuiMouseButton mouse_button, float delay);
+CIMGUI_API ImGuiViewport* ImGui_GetMainViewport(void);
+CIMGUI_API ImDrawList* ImGui_GetBackgroundDrawList(void);
+CIMGUI_API ImDrawList* ImGui_GetForegroundDrawList(void);
+CIMGUI_API bool ImGui_IsRectVisible(ImVec2 size);
+CIMGUI_API bool ImGui_IsRectVisibleVec2(ImVec2 rect_min, ImVec2 rect_max);
+CIMGUI_API double ImGui_GetTime(void);
+CIMGUI_API int ImGui_GetFrameCount(void);
+CIMGUI_API ImDrawListSharedData* ImGui_GetDrawListSharedData(void);
+CIMGUI_API const char* ImGui_GetStyleColorName(ImGuiCol idx);
+CIMGUI_API void ImGui_SetStateStorage(ImGuiStorage* storage);
+CIMGUI_API ImGuiStorage* ImGui_GetStateStorage(void);
+CIMGUI_API ImVec2 ImGui_CalcTextSize(const char* text);
+CIMGUI_API ImVec2 ImGui_CalcTextSizeEx(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width);
+CIMGUI_API ImVec4 ImGui_ColorConvertU32ToFloat4(ImU32 in);
+CIMGUI_API ImU32 ImGui_ColorConvertFloat4ToU32(ImVec4 in);
+CIMGUI_API void ImGui_ColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v);
+CIMGUI_API void ImGui_ColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b);
+CIMGUI_API bool ImGui_IsKeyDown(ImGuiKey key);
+CIMGUI_API bool ImGui_IsKeyPressed(ImGuiKey key);
+CIMGUI_API bool ImGui_IsKeyPressedEx(ImGuiKey key, bool repeat);
+CIMGUI_API bool ImGui_IsKeyReleased(ImGuiKey key);
+CIMGUI_API bool ImGui_IsKeyChordPressed(ImGuiKeyChord key_chord);
+CIMGUI_API int ImGui_GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate);
+CIMGUI_API const char* ImGui_GetKeyName(ImGuiKey key);
+CIMGUI_API void ImGui_SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard);
+CIMGUI_API bool ImGui_Shortcut(ImGuiKeyChord key_chord);
+CIMGUI_API bool ImGui_ShortcutEx(ImGuiKeyChord key_chord, ImGuiInputFlags flags);
+CIMGUI_API void ImGui_SetNextItemShortcut(ImGuiKeyChord key_chord);
+CIMGUI_API void ImGui_SetNextItemShortcutEx(ImGuiKeyChord key_chord, ImGuiInputFlags flags);
+CIMGUI_API bool ImGui_SetItemKeyOwner(ImGuiKey key);
+CIMGUI_API bool ImGui_IsMouseDown(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseClicked(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseClickedEx(ImGuiMouseButton button, bool repeat);
+CIMGUI_API bool ImGui_IsMouseReleased(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseDoubleClicked(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseReleasedWithDelay(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseReleasedWithDelayEx(ImGuiMouseButton button, float delay);
+CIMGUI_API int ImGui_GetMouseClickedCount(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseHoveringRect(ImVec2 r_min, ImVec2 r_max);
+CIMGUI_API bool ImGui_IsMouseHoveringRectEx(ImVec2 r_min, ImVec2 r_max, bool clip);
+CIMGUI_API bool ImGui_IsMousePosValid(void);
+CIMGUI_API bool ImGui_IsMousePosValidEx(const ImVec2* mouse_pos);
+CIMGUI_API bool ImGui_IsAnyMouseDown(void);
+CIMGUI_API ImVec2 ImGui_GetMousePos(void);
+CIMGUI_API ImVec2 ImGui_GetMousePosOnOpeningCurrentPopup(void);
+CIMGUI_API bool ImGui_IsMouseDragging(ImGuiMouseButton button);
+CIMGUI_API bool ImGui_IsMouseDraggingEx(ImGuiMouseButton button, float lock_threshold);
+CIMGUI_API ImVec2 ImGui_GetMouseDragDelta(void);
+CIMGUI_API ImVec2 ImGui_GetMouseDragDeltaEx(ImGuiMouseButton button, float lock_threshold);
+CIMGUI_API void ImGui_ResetMouseDragDelta(void);
+CIMGUI_API void ImGui_ResetMouseDragDeltaEx(ImGuiMouseButton button);
+CIMGUI_API ImGuiMouseCursor ImGui_GetMouseCursor(void);
+CIMGUI_API void ImGui_SetMouseCursor(ImGuiMouseCursor cursor_type);
+CIMGUI_API void ImGui_SetNextFrameWantCaptureMouse(bool want_capture_mouse);
+CIMGUI_API const char* ImGui_GetClipboardText(void);
+CIMGUI_API void ImGui_SetClipboardText(const char* text);
+CIMGUI_API void ImGui_LoadIniSettingsFromDisk(const char* ini_filename);
+CIMGUI_API void ImGui_LoadIniSettingsFromMemory(const char* ini_data);
+CIMGUI_API void ImGui_LoadIniSettingsFromMemoryEx(const char* ini_data, size_t ini_size);
+CIMGUI_API void ImGui_SaveIniSettingsToDisk(const char* ini_filename);
+CIMGUI_API const char* ImGui_SaveIniSettingsToMemory(void);
+CIMGUI_API const char* ImGui_SaveIniSettingsToMemoryEx(size_t* out_ini_size);
+CIMGUI_API void ImGui_DebugTextEncoding(const char* text);
+CIMGUI_API void ImGui_DebugFlashStyleColor(ImGuiCol idx);
+CIMGUI_API void ImGui_DebugStartItemPicker(void);
+CIMGUI_API bool ImGui_DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx);
+CIMGUI_API void ImGui_DebugLog(const char* fmt, ...);
+CIMGUI_API void ImGui_DebugLogV(const char* fmt, va_list args);
+CIMGUI_API void ImGui_SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func);
+CIMGUI_API void ImGui_SetAllocatorFunctionsEx(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data);
+CIMGUI_API void ImGui_GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data);
+CIMGUI_API void* ImGui_MemAlloc(size_t size);
+CIMGUI_API void ImGui_MemFree(void* ptr);
+
+// struct ImVec2
+CIMGUI_API ImVec2* ImVec2_New(void);
+CIMGUI_API ImVec2* ImVec2_NewFloat(float _x, float _y);
+
+// struct ImVec4
+CIMGUI_API ImVec4* ImVec4_New(void);
+CIMGUI_API ImVec4* ImVec4_NewFloat(float _x, float _y, float _z, float _w);
+
+// struct ImTextureRef
+CIMGUI_API ImTextureRef* ImTextureRef_New(void);
+CIMGUI_API ImTextureRef* ImTextureRef_NewTextureID(ImTextureID tex_id);
+CIMGUI_API ImTextureID ImTextureRef_GetTexID(const ImTextureRef* self);
+
+// struct ImGuiTableSortSpecs
+CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_New(void);
+
+// struct ImGuiTableColumnSortSpecs
+CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_New(void);
+
+// struct ImGuiStyle
+CIMGUI_API ImGuiStyle* ImGuiStyle_New(void);
+CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor);
+
+// struct ImGuiKeyData
+CIMGUI_API ImGuiKeyData* ImGuiKeyData_New(void);
+
+// struct ImGuiIO
+CIMGUI_API ImGuiIO* ImGuiIO_New(void);
+CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self, ImGuiKey key, bool down);
+CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, bool down, float v);
+CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self, float x, float y);
+CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self, int button, bool down);
+CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self, float wheel_x, float wheel_y);
+CIMGUI_API void ImGuiIO_AddMouseSourceEvent(ImGuiIO* self, ImGuiMouseSource source);
+CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self, bool focused);
+CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self, unsigned int c);
+CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self, ImWchar16 c);
+CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, const char* str);
+CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode);
+CIMGUI_API void ImGuiIO_SetKeyEventNativeDataEx(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index);
+CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self, bool accepting_events);
+CIMGUI_API void ImGuiIO_ClearEventsQueue(ImGuiIO* self);
+CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self);
+CIMGUI_API void ImGuiIO_ClearInputMouse(ImGuiIO* self);
+
+// struct ImGuiInputTextCallbackData
+CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_New(void);
+CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count);
+CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, const char* text);
+CIMGUI_API void ImGuiInputTextCallbackData_InsertCharsEx(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end);
+CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self);
+CIMGUI_API void ImGuiInputTextCallbackData_SetSelection(ImGuiInputTextCallbackData* self, int s, int e);
+CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self);
+CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(const ImGuiInputTextCallbackData* self);
+
+// struct ImGuiSizeCallbackData
+CIMGUI_API ImGuiSizeCallbackData* ImGuiSizeCallbackData_New(void);
+
+// struct ImGuiPayload
+CIMGUI_API ImGuiPayload* ImGuiPayload_New(void);
+CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self);
+CIMGUI_API bool ImGuiPayload_IsDataType(const ImGuiPayload* self, const char* type);
+CIMGUI_API bool ImGuiPayload_IsPreview(const ImGuiPayload* self);
+CIMGUI_API bool ImGuiPayload_IsDelivery(const ImGuiPayload* self);
+
+// struct ImGuiOnceUponAFrame
+CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_New(void);
+
+// struct ImGuiTextFilter
+CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_New(void);
+CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_NewEx(const char* default_filter);
+CIMGUI_API bool ImGuiTextFilter_PassFilter(const ImGuiTextFilter* self, const char* text);
+CIMGUI_API bool ImGuiTextFilter_PassFilterEx(const ImGuiTextFilter* self, const char* text, const char* text_end);
+CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self);
+CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self);
+CIMGUI_API bool ImGuiTextFilter_IsActive(const ImGuiTextFilter* self);
+CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self);
+CIMGUI_API bool ImGuiTextFilter_DrawEx(ImGuiTextFilter* self, const char* label);
+CIMGUI_API bool ImGuiTextFilter_DrawWithHint(ImGuiTextFilter* self);
+CIMGUI_API bool ImGuiTextFilter_DrawWithHintEx(ImGuiTextFilter* self, const char* label, const char* hint);
+
+// struct ImGuiTextBuffer
+CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_New(void);
+CIMGUI_API const char* ImGuiTextBuffer_begin(const ImGuiTextBuffer* self);
+CIMGUI_API const char* ImGuiTextBuffer_end(const ImGuiTextBuffer* self);
+CIMGUI_API int ImGuiTextBuffer_size(const ImGuiTextBuffer* self);
+CIMGUI_API bool ImGuiTextBuffer_empty(const ImGuiTextBuffer* self);
+CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self);
+CIMGUI_API void ImGuiTextBuffer_resize(ImGuiTextBuffer* self, int size);
+CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity);
+CIMGUI_API const char* ImGuiTextBuffer_c_str(const ImGuiTextBuffer* self);
+CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self, const char* str);
+CIMGUI_API void ImGuiTextBuffer_appendEx(ImGuiTextBuffer* self, const char* str, const char* str_end);
+CIMGUI_API void ImGuiTextBuffer_appendf(ImGuiTextBuffer* self, const char* fmt, ...);
+CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, const char* fmt, va_list args);
+
+// struct ImGuiStoragePair
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_New(ImGuiID _key, int _val);
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_NewFloat(ImGuiID _key, float _val);
+CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_NewPtr(ImGuiID _key, void* _val);
+
+// struct ImGuiStorage
+CIMGUI_API ImGuiStorage* ImGuiStorage_New(void);
+CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self);
+CIMGUI_API int ImGuiStorage_GetInt(const ImGuiStorage* self, ImGuiID key);
+CIMGUI_API int ImGuiStorage_GetIntEx(const ImGuiStorage* self, ImGuiID key, int default_val);
+CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self, ImGuiID key, int val);
+CIMGUI_API bool ImGuiStorage_GetBool(const ImGuiStorage* self, ImGuiID key);
+CIMGUI_API bool ImGuiStorage_GetBoolEx(const ImGuiStorage* self, ImGuiID key, bool default_val);
+CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self, ImGuiID key, bool val);
+CIMGUI_API float ImGuiStorage_GetFloat(const ImGuiStorage* self, ImGuiID key);
+CIMGUI_API float ImGuiStorage_GetFloatEx(const ImGuiStorage* self, ImGuiID key, float default_val);
+CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self, ImGuiID key, float val);
+CIMGUI_API void* ImGuiStorage_GetVoidPtr(const ImGuiStorage* self, ImGuiID key);
+CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self, ImGuiID key, void* val);
+CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self, ImGuiID key);
+CIMGUI_API int* ImGuiStorage_GetIntRefEx(ImGuiStorage* self, ImGuiID key, int default_val);
+CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self, ImGuiID key);
+CIMGUI_API bool* ImGuiStorage_GetBoolRefEx(ImGuiStorage* self, ImGuiID key, bool default_val);
+CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self, ImGuiID key);
+CIMGUI_API float* ImGuiStorage_GetFloatRefEx(ImGuiStorage* self, ImGuiID key, float default_val);
+CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self, ImGuiID key);
+CIMGUI_API void** ImGuiStorage_GetVoidPtrRefEx(ImGuiStorage* self, ImGuiID key, void* default_val);
+CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self);
+CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val);
+
+// struct ImGuiListClipper
+CIMGUI_API ImGuiListClipper* ImGuiListClipper_New(void);
+CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count);
+CIMGUI_API void ImGuiListClipper_BeginEx(ImGuiListClipper* self, int items_count, float items_height);
+CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self);
+CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self);
+CIMGUI_API void ImGuiListClipper_IncludeItemByIndex(ImGuiListClipper* self, int item_index);
+CIMGUI_API void ImGuiListClipper_IncludeItemsByIndex(ImGuiListClipper* self, int item_begin, int item_end);
+CIMGUI_API void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* self, int item_index);
+
+// struct ImColor
+CIMGUI_API ImColor* ImColor_New(void);
+CIMGUI_API ImColor* ImColor_NewFloat(float r, float g, float b);
+CIMGUI_API ImColor* ImColor_NewFloatEx(float r, float g, float b, float a);
+CIMGUI_API ImColor* ImColor_NewVec4(ImVec4 col);
+CIMGUI_API ImColor* ImColor_NewInt(int r, int g, int b);
+CIMGUI_API ImColor* ImColor_NewIntEx(int r, int g, int b, int a);
+CIMGUI_API ImColor* ImColor_NewU32(ImU32 rgba);
+CIMGUI_API void ImColor_SetHSV(ImColor* self, float h, float s, float v);
+CIMGUI_API void ImColor_SetHSVEx(ImColor* self, float h, float s, float v, float a);
+CIMGUI_API ImColor ImColor_HSV(float h, float s, float v);
+CIMGUI_API ImColor ImColor_HSVEx(float h, float s, float v, float a);
+
+// struct ImGuiMultiSelectIO
+CIMGUI_API ImGuiMultiSelectIO* ImGuiMultiSelectIO_New(void);
+
+// struct ImGuiSelectionRequest
+CIMGUI_API ImGuiSelectionRequest* ImGuiSelectionRequest_New(void);
+
+// struct ImGuiSelectionBasicStorage
+CIMGUI_API ImGuiSelectionBasicStorage* ImGuiSelectionBasicStorage_New(void);
+CIMGUI_API void ImGuiSelectionBasicStorage_ApplyRequests(ImGuiSelectionBasicStorage* self, ImGuiMultiSelectIO* ms_io);
+CIMGUI_API bool ImGuiSelectionBasicStorage_Contains(const ImGuiSelectionBasicStorage* self, ImGuiID id);
+CIMGUI_API void ImGuiSelectionBasicStorage_Clear(ImGuiSelectionBasicStorage* self);
+CIMGUI_API void ImGuiSelectionBasicStorage_Swap(ImGuiSelectionBasicStorage* self, ImGuiSelectionBasicStorage* r);
+CIMGUI_API void ImGuiSelectionBasicStorage_SetItemSelected(ImGuiSelectionBasicStorage* self, ImGuiID id, bool selected);
+CIMGUI_API bool ImGuiSelectionBasicStorage_GetNextSelectedItem(ImGuiSelectionBasicStorage* self, void** opaque_it, ImGuiID* out_id);
+CIMGUI_API ImGuiID ImGuiSelectionBasicStorage_GetStorageIdFromIndex(ImGuiSelectionBasicStorage* self, int idx);
+
+// struct ImGuiSelectionExternalStorage
+CIMGUI_API ImGuiSelectionExternalStorage* ImGuiSelectionExternalStorage_New(void);
+CIMGUI_API void ImGuiSelectionExternalStorage_ApplyRequests(ImGuiSelectionExternalStorage* self, ImGuiMultiSelectIO* ms_io);
+
+// struct ImDrawCmd
+CIMGUI_API ImDrawCmd* ImDrawCmd_New(void);
+CIMGUI_API ImTextureID ImDrawCmd_GetTexID(const ImDrawCmd* self);
+
+// struct ImDrawVert
+CIMGUI_API ImDrawVert* ImDrawVert_New(void);
+
+// struct ImDrawCmdHeader
+CIMGUI_API ImDrawCmdHeader* ImDrawCmdHeader_New(void);
+
+// struct ImDrawChannel
+CIMGUI_API ImDrawChannel* ImDrawChannel_New(void);
+
+// struct ImDrawListSplitter
+CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_New(void);
+CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self);
+CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self);
+CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count);
+CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self, ImDrawList* draw_list);
+CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx);
+
+// struct ImDrawList
+CIMGUI_API ImDrawList* ImDrawList_New(ImDrawListSharedData* shared_data);
+CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max);
+CIMGUI_API void ImDrawList_PushClipRectEx(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect);
+CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self);
+CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self);
+CIMGUI_API void ImDrawList_PushTexture(ImDrawList* self, ImTextureRef tex_ref);
+CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self);
+CIMGUI_API void ImDrawList_PushDrawFlag(ImDrawList* self, ImDrawFlags flags, bool enabled);
+CIMGUI_API void ImDrawList_PopDrawFlag(ImDrawList* self);
+CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(const ImDrawList* self);
+CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(const ImDrawList* self);
+CIMGUI_API void ImDrawList_AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col);
+CIMGUI_API void ImDrawList_AddLineEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddLineH(ImDrawList* self, float min_x, float max_x, float y, ImU32 col);
+CIMGUI_API void ImDrawList_AddLineHEx(ImDrawList* self, float min_x, float max_x, float y, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddLineV(ImDrawList* self, float x, float min_y, float max_y, ImU32 col);
+CIMGUI_API void ImDrawList_AddLineVEx(ImDrawList* self, float x, float min_y, float max_y, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddRect(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col);
+CIMGUI_API void ImDrawList_AddRectEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col);
+CIMGUI_API void ImDrawList_AddRectFilledEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left);
+CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col);
+CIMGUI_API void ImDrawList_AddQuadEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col);
+CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col);
+CIMGUI_API void ImDrawList_AddTriangleEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col);
+CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self, ImVec2 center, float radius, ImU32 col);
+CIMGUI_API void ImDrawList_AddCircleEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col);
+CIMGUI_API void ImDrawList_AddCircleFilledEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments);
+CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments);
+CIMGUI_API void ImDrawList_AddNgonEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments);
+CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col);
+CIMGUI_API void ImDrawList_AddEllipseEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot, int num_segments, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col);
+CIMGUI_API void ImDrawList_AddEllipseFilledEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot, int num_segments);
+CIMGUI_API void ImDrawList_AddText(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin);
+CIMGUI_API void ImDrawList_AddTextEx(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end);
+CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin);
+CIMGUI_API void ImDrawList_AddTextFontPtrEx(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect);
+CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness);
+CIMGUI_API void ImDrawList_AddBezierCubicEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness, int num_segments, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness);
+CIMGUI_API void ImDrawList_AddBezierQuadraticEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, int num_segments, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness);
+CIMGUI_API void ImDrawList_AddPolylineEx(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col);
+CIMGUI_API void ImDrawList_AddConvexPolyFilledEx(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddConcavePolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col);
+CIMGUI_API void ImDrawList_AddImage(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max);
+CIMGUI_API void ImDrawList_AddImageEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col);
+CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4);
+CIMGUI_API void ImDrawList_AddImageQuadEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImVec2 uv1, ImVec2 uv2, ImVec2 uv3, ImVec2 uv4, ImU32 col);
+CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding);
+CIMGUI_API void ImDrawList_AddImageRoundedEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_PathClear(ImDrawList* self);
+CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self, ImVec2 pos);
+CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self, ImVec2 pos);
+CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self, ImU32 col);
+CIMGUI_API void ImDrawList_PathFillConvexEx(ImDrawList* self, ImU32 col, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_PathFillConcave(ImDrawList* self, ImU32 col);
+CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self, ImU32 col);
+CIMGUI_API void ImDrawList_PathStrokeEx(ImDrawList* self, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max);
+CIMGUI_API void ImDrawList_PathArcToEx(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments);
+CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self, ImVec2 center, float radius, int a_min_of_12, int a_max_of_12);
+CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max);
+CIMGUI_API void ImDrawList_PathEllipticalArcToEx(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max, int num_segments);
+CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4);
+CIMGUI_API void ImDrawList_PathBezierCubicCurveToEx(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4, int num_segments);
+CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3);
+CIMGUI_API void ImDrawList_PathBezierQuadraticCurveToEx(ImDrawList* self, ImVec2 p2, ImVec2 p3, int num_segments);
+CIMGUI_API void ImDrawList_PathRect(ImDrawList* self, ImVec2 rect_min, ImVec2 rect_max);
+CIMGUI_API void ImDrawList_PathRectEx(ImDrawList* self, ImVec2 rect_min, ImVec2 rect_max, float rounding, ImDrawFlags flags);
+CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback);
+CIMGUI_API void ImDrawList_AddCallbackEx(ImDrawList* self, ImDrawCallback callback, void* userdata, size_t userdata_size);
+CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self);
+CIMGUI_API ImDrawList* ImDrawList_CloneOutput(const ImDrawList* self);
+CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self, int count);
+CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* self);
+CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n);
+CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count);
+CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count);
+CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self, ImVec2 a, ImVec2 b, ImU32 col);
+CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 uv_a, ImVec2 uv_b, ImU32 col);
+CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 c, ImVec2 d, ImVec2 uv_a, ImVec2 uv_b, ImVec2 uv_c, ImVec2 uv_d, ImU32 col);
+CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col);
+CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx);
+CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col);
+CIMGUI_API void ImDrawList__SetDrawListSharedData(ImDrawList* self, ImDrawListSharedData* data);
+CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self);
+CIMGUI_API void ImDrawList__SetPixelDensity(ImDrawList* self, float pixel_density);
+CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self);
+CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self);
+CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self);
+CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self);
+CIMGUI_API void ImDrawList__OnChangedTexture(ImDrawList* self);
+CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self);
+CIMGUI_API void ImDrawList__SetTexture(ImDrawList* self, ImTextureRef tex_ref);
+CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(const ImDrawList* self, float radius);
+CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self, ImVec2 center, float radius, int a_min_sample, int a_max_sample, int a_step);
+CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments);
+CIMGUI_API void ImDrawList__AddRectFilledBaked(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float r, ImVec4 tex_uvs, ImDrawFlags flags);
+CIMGUI_API void ImDrawList__AddRectBaked(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float r, float t, ImVec4 tex_uvs, ImDrawFlags flags);
+CIMGUI_API void ImDrawList__AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList__AddRectTinyRounding(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding, float thickness, ImDrawFlags flags);
+CIMGUI_API void ImDrawList__SelectLineTexture(ImDrawList* self, float screen_thickness, ImVec2* out_uv0, ImVec2* out_uv1, float* out_fringe, ImDrawFlags flags);
+CIMGUI_API float ImDrawList__CalculateCenterBiasedOffset(ImDrawList* self, float thickness);
+CIMGUI_API void ImDrawList__AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags, float max_inner_offset);
+
+// struct ImDrawData
+CIMGUI_API ImDrawData* ImDrawData_New(void);
+CIMGUI_API void ImDrawData_Clear(ImDrawData* self);
+CIMGUI_API void ImDrawData_AddDrawList(ImDrawData* self, ImDrawList* draw_list);
+CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self);
+CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self, ImVec2 fb_scale);
+
+// struct ImTextureRect
+CIMGUI_API ImTextureRect* ImTextureRect_New(void);
+
+// struct ImTextureData
+CIMGUI_API ImTextureData* ImTextureData_New(void);
+CIMGUI_API void ImTextureData_Create(ImTextureData* self, ImTextureFormat format, int w, int h);
+CIMGUI_API void ImTextureData_DestroyPixels(ImTextureData* self);
+CIMGUI_API void* ImTextureData_GetPixels(ImTextureData* self);
+CIMGUI_API void* ImTextureData_GetPixelsAt(ImTextureData* self, int x, int y);
+CIMGUI_API int ImTextureData_GetSizeInBytes(const ImTextureData* self);
+CIMGUI_API int ImTextureData_GetPitch(const ImTextureData* self);
+CIMGUI_API ImTextureRef ImTextureData_GetTexRef(ImTextureData* self);
+CIMGUI_API ImTextureID ImTextureData_GetTexID(const ImTextureData* self);
+CIMGUI_API void ImTextureData_SetTexID(ImTextureData* self, ImTextureID tex_id);
+CIMGUI_API void ImTextureData_SetStatus(ImTextureData* self, ImTextureStatus status);
+
+// struct ImFontConfig
+CIMGUI_API ImFontConfig* ImFontConfig_New(void);
+
+// struct ImFontGlyph
+CIMGUI_API ImFontGlyph* ImFontGlyph_New(void);
+
+// struct ImFontGlyphRangesBuilder
+CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_New(void);
+CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self);
+CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(const ImFontGlyphRangesBuilder* self, size_t n);
+CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, size_t n);
+CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self, ImWchar c);
+CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, const char* text);
+CIMGUI_API void ImFontGlyphRangesBuilder_AddTextEx(ImFontGlyphRangesBuilder* self, const char* text, const char* text_end);
+CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, const ImWchar* ranges);
+CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges);
+
+// struct ImFontAtlasRect
+CIMGUI_API ImFontAtlasRect* ImFontAtlasRect_New(void);
+
+// struct ImFontAtlas
+CIMGUI_API ImFontAtlas* ImFontAtlas_New(void);
+CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultEx(ImFontAtlas* self, const ImFontConfig* font_cfg);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultVector(ImFontAtlas* self);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultVectorEx(ImFontAtlas* self, const ImFontConfig* font_cfg);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultBitmap(ImFontAtlas* self);
+CIMGUI_API ImFont* ImFontAtlas_AddFontDefaultBitmapEx(ImFontAtlas* self, const ImFontConfig* font_cfg);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTFEx(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_data_size);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTFEx(ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTFEx(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85);
+CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges);
+CIMGUI_API void ImFontAtlas_RemoveFont(ImFontAtlas* self, ImFont* font);
+CIMGUI_API void ImFontAtlas_CompactCache(ImFontAtlas* self);
+CIMGUI_API void ImFontAtlas_SetFontLoader(ImFontAtlas* self, const ImFontLoader* font_loader);
+CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self);
+CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self);
+CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self);
+CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self);
+CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self);
+CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRect(ImFontAtlas* self, int width, int height);
+CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRectEx(ImFontAtlas* self, int width, int height, ImFontAtlasRect* out_r);
+CIMGUI_API void ImFontAtlas_RemoveCustomRect(ImFontAtlas* self, ImFontAtlasRectId id);
+CIMGUI_API bool ImFontAtlas_GetCustomRect(const ImFontAtlas* self, ImFontAtlasRectId id, ImFontAtlasRect* out_r);
+
+// struct ImFontBaked
+CIMGUI_API ImFontBaked* ImFontBaked_New(void);
+CIMGUI_API void ImFontBaked_ClearOutputData(ImFontBaked* self);
+CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyph(ImFontBaked* self, ImWchar c);
+CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyphNoFallback(ImFontBaked* self, ImWchar c);
+CIMGUI_API float ImFontBaked_GetCharAdvance(ImFontBaked* self, ImWchar c);
+CIMGUI_API bool ImFontBaked_IsGlyphLoaded(ImFontBaked* self, ImWchar c);
+
+// struct ImFont
+CIMGUI_API ImFont* ImFont_New(void);
+CIMGUI_API bool ImFont_IsGlyphInFont(ImFont* self, ImWchar c);
+CIMGUI_API bool ImFont_IsLoaded(const ImFont* self);
+CIMGUI_API const char* ImFont_GetDebugName(const ImFont* self);
+CIMGUI_API ImFontBaked* ImFont_GetFontBaked(ImFont* self, float font_size);
+CIMGUI_API ImFontBaked* ImFont_GetFontBakedEx(ImFont* self, float font_size, float density);
+CIMGUI_API ImVec2 ImFont_CalcTextSizeA(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin);
+CIMGUI_API ImVec2 ImFont_CalcTextSizeAEx(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** out_remaining);
+CIMGUI_API const char* ImFont_CalcWordWrapPosition(ImFont* self, float size, const char* text, const char* text_end, float wrap_width);
+CIMGUI_API void ImFont_RenderChar(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c);
+CIMGUI_API void ImFont_RenderCharEx(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c, const ImVec4* cpu_fine_clip);
+CIMGUI_API void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end);
+CIMGUI_API void ImFont_RenderTextEx(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, ImDrawTextFlags flags);
+CIMGUI_API void ImFont_ClearOutputData(ImFont* self);
+CIMGUI_API void ImFont_AddRemapCodepoint(ImFont* self, ImWchar from_codepoint, ImWchar to_codepoint);
+CIMGUI_API void ImFont_AddRemapCodepointToGlyphIndex(ImFont* self, ImWchar from_codepoint, int font_src_idx, int glyph_idx);
+CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self, unsigned int c_begin, unsigned int c_last);
+
+// struct ImGuiViewport
+CIMGUI_API ImGuiViewport* ImGuiViewport_New(void);
+CIMGUI_API ImVec2 ImGuiViewport_GetCenter(const ImGuiViewport* self);
+CIMGUI_API ImVec2 ImGuiViewport_GetWorkCenter(const ImGuiViewport* self);
+
+// struct ImGuiPlatformIO
+CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_New(void);
+CIMGUI_API void ImGuiPlatformIO_ClearPlatformHandlers(ImGuiPlatformIO* self);
+CIMGUI_API void ImGuiPlatformIO_ClearRendererHandlers(ImGuiPlatformIO* self);
+
+// struct ImGuiPlatformImeData
+CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_New(void);
+
+// Destructors (objects from X_New)
+CIMGUI_API void ImVec2_Delete(ImVec2* self);
+CIMGUI_API void ImVec4_Delete(ImVec4* self);
+CIMGUI_API void ImTextureRef_Delete(ImTextureRef* self);
+CIMGUI_API void ImGuiTableSortSpecs_Delete(ImGuiTableSortSpecs* self);
+CIMGUI_API void ImGuiTableColumnSortSpecs_Delete(ImGuiTableColumnSortSpecs* self);
+CIMGUI_API void ImGuiStyle_Delete(ImGuiStyle* self);
+CIMGUI_API void ImGuiKeyData_Delete(ImGuiKeyData* self);
+CIMGUI_API void ImGuiIO_Delete(ImGuiIO* self);
+CIMGUI_API void ImGuiInputTextCallbackData_Delete(ImGuiInputTextCallbackData* self);
+CIMGUI_API void ImGuiSizeCallbackData_Delete(ImGuiSizeCallbackData* self);
+CIMGUI_API void ImGuiPayload_Delete(ImGuiPayload* self);
+CIMGUI_API void ImGuiOnceUponAFrame_Delete(ImGuiOnceUponAFrame* self);
+CIMGUI_API void ImGuiTextFilter_Delete(ImGuiTextFilter* self);
+CIMGUI_API void ImGuiTextBuffer_Delete(ImGuiTextBuffer* self);
+CIMGUI_API void ImGuiStoragePair_Delete(ImGuiStoragePair* self);
+CIMGUI_API void ImGuiStorage_Delete(ImGuiStorage* self);
+CIMGUI_API void ImGuiListClipper_Delete(ImGuiListClipper* self);
+CIMGUI_API void ImColor_Delete(ImColor* self);
+CIMGUI_API void ImGuiMultiSelectIO_Delete(ImGuiMultiSelectIO* self);
+CIMGUI_API void ImGuiSelectionRequest_Delete(ImGuiSelectionRequest* self);
+CIMGUI_API void ImGuiSelectionBasicStorage_Delete(ImGuiSelectionBasicStorage* self);
+CIMGUI_API void ImGuiSelectionExternalStorage_Delete(ImGuiSelectionExternalStorage* self);
+CIMGUI_API void ImDrawCmd_Delete(ImDrawCmd* self);
+CIMGUI_API void ImDrawVert_Delete(ImDrawVert* self);
+CIMGUI_API void ImDrawCmdHeader_Delete(ImDrawCmdHeader* self);
+CIMGUI_API void ImDrawChannel_Delete(ImDrawChannel* self);
+CIMGUI_API void ImDrawListSplitter_Delete(ImDrawListSplitter* self);
+CIMGUI_API void ImDrawList_Delete(ImDrawList* self);
+CIMGUI_API void ImDrawData_Delete(ImDrawData* self);
+CIMGUI_API void ImTextureRect_Delete(ImTextureRect* self);
+CIMGUI_API void ImTextureData_Delete(ImTextureData* self);
+CIMGUI_API void ImFontConfig_Delete(ImFontConfig* self);
+CIMGUI_API void ImFontGlyph_Delete(ImFontGlyph* self);
+CIMGUI_API void ImFontGlyphRangesBuilder_Delete(ImFontGlyphRangesBuilder* self);
+CIMGUI_API void ImFontAtlasRect_Delete(ImFontAtlasRect* self);
+CIMGUI_API void ImFontAtlas_Delete(ImFontAtlas* self);
+CIMGUI_API void ImFontBaked_Delete(ImFontBaked* self);
+CIMGUI_API void ImFont_Delete(ImFont* self);
+CIMGUI_API void ImGuiViewport_Delete(ImGuiViewport* self);
+CIMGUI_API void ImGuiPlatformIO_Delete(ImGuiPlatformIO* self);
+CIMGUI_API void ImGuiPlatformImeData_Delete(ImGuiPlatformImeData* self);
+
+// Helpers
+CIMGUI_API ImTextureRef ImTextureRef_FromID(ImTextureID tex_id);
+// sizeof() of an imgui.h struct as the C++ compiler sees it (0: unknown); for binding tests.
+CIMGUI_API size_t cImGui_SizeOf(const char* type_name);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/bindings/imgui/c/cimgui_impl_bui.cpp b/bindings/imgui/c/cimgui_impl_bui.cpp
new file mode 100644
index 0000000..6e9b8f7
--- /dev/null
+++ b/bindings/imgui/c/cimgui_impl_bui.cpp
@@ -0,0 +1,281 @@
+// cimgui_impl_bui.cpp: C API of the BUI backend (imgui_impl_bui.h) + headless helpers.
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "imgui.h"
+#include "imgui_impl_bui.h"
+#include "BUI_kit.h"
+#include "bui_png.h"
+
+#include <string.h>
+
+namespace cimgui {
+#include "cimgui_impl_bui.h"
+}
+
+using cimgui::cImGui_ImplBUI_FrameFn;
+
+struct cImGui_ImplBUI_App_
+{
+ ImGui_ImplBUI_App* App = nullptr;
+ BuiRaster* Raster = nullptr;
+ int Width = 0, Height = 0;
+ int Settle = 3;
+ ::ImGuiContext* ImCtx = nullptr;
+};
+
+static ImGui_ImplBUI_Config ToConfig(const cimgui::cImGui_ImplBUI_Config* c)
+{
+ ImGui_ImplBUI_Config cfg;
+ if (c)
+ {
+ cfg.BlenderStyle = c->BlenderStyle;
+ cfg.BlenderFont = c->BlenderFont;
+ cfg.FontSize = c->FontSize;
+ cfg.FollowScale = c->FollowScale;
+ cfg.SettleFrames = c->SettleFrames;
+ }
+ return cfg;
+}
+
+static cImGui_ImplBUI_App_* A(cimgui::cImGui_ImplBUI_App* app) { return reinterpret_cast<cImGui_ImplBUI_App_*>(app); }
+static cimgui::cImGui_ImplBUI_App* C(cImGui_ImplBUI_App_* app) { return reinterpret_cast<cimgui::cImGui_ImplBUI_App*>(app); }
+
+static BKContext* Ctx(cimgui::cImGui_ImplBUI_App* app) { return app ? ImGui_ImplBUI_AppContext(A(app)->App) : nullptr; }
+
+// headless: let ImGui see an event (window hosts render on their own)
+static void Settle(cimgui::cImGui_ImplBUI_App* app, int n)
+{
+ if (app && ImGui_ImplBUI_AppWindow(A(app)->App) == nullptr)
+ cimgui::cImGui_ImplBUI_Render(app, n);
+}
+
+namespace cimgui {
+extern "C" {
+
+CIMGUI_API cImGui_ImplBUI_Config cImGui_ImplBUI_DefaultConfig(void)
+{
+ ImGui_ImplBUI_Config d;
+ cImGui_ImplBUI_Config c;
+ c.BlenderStyle = d.BlenderStyle;
+ c.BlenderFont = d.BlenderFont;
+ c.FontSize = d.FontSize;
+ c.FollowScale = d.FollowScale;
+ c.SettleFrames = d.SettleFrames;
+ return c;
+}
+
+CIMGUI_API bool cImGui_ImplBUI_Init(BKNode* node, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config)
+{
+ ImGui_ImplBUI_Config cfg = ToConfig(config);
+ return ImGui_ImplBUI_Init(reinterpret_cast<::BKNode*>(node), frame, user, &cfg);
+}
+CIMGUI_API void cImGui_ImplBUI_Shutdown(void) { ImGui_ImplBUI_Shutdown(); }
+CIMGUI_API BKNode* cImGui_ImplBUI_GetNode(void) { return reinterpret_cast<BKNode*>(ImGui_ImplBUI_GetNode()); }
+CIMGUI_API void cImGui_ImplBUI_RequestFrames(int n) { ImGui_ImplBUI_RequestFrames(n); }
+CIMGUI_API void cImGui_ImplBUI_RequestFrameIn(int ms) { ImGui_ImplBUI_RequestFrameIn(ms); }
+CIMGUI_API int cImGui_ImplBUI_FrameCount(void) { return ImGui_ImplBUI_FrameCount(); }
+
+CIMGUI_API void cImGui_ImplBUI_StyleBlender(ImGuiStyle* dst, float scale) { ImGui_ImplBUI_StyleBlender(reinterpret_cast<::ImGuiStyle*>(dst), scale); }
+CIMGUI_API float cImGui_ImplBUI_BlenderFontSize(float scale) { return ImGui_ImplBUI_BlenderFontSize(scale); }
+CIMGUI_API ImFont* cImGui_ImplBUI_AddBlenderFont(float size_pixels) { return reinterpret_cast<ImFont*>(ImGui_ImplBUI_AddBlenderFont(size_pixels)); }
+CIMGUI_API float cImGui_ImplBUI_GetScale(void) { return BK_scale(); }
+CIMGUI_API void cImGui_ImplBUI_SetScale(float scale) { BK_set_scale(scale); }
+
+CIMGUI_API cImGui_ImplBUI_App* cImGui_ImplBUI_CreateApp(const char* title, int width, int height, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config)
+{
+ ImGui_ImplBUI_Config cfg = ToConfig(config);
+ cImGui_ImplBUI_App_* app = IM_NEW(cImGui_ImplBUI_App_)();
+ app->ImCtx = ImGui::GetCurrentContext();
+ app->App = ImGui_ImplBUI_CreateApp(title ? title : "Dear ImGui", width, height, frame, user, config ? &cfg : nullptr);
+ app->Width = width;
+ app->Height = height;
+ app->Settle = config ? config->SettleFrames : 3;
+ return C(app);
+}
+
+CIMGUI_API cImGui_ImplBUI_App* cImGui_ImplBUI_CreateHeadlessApp(int width, int height, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config)
+{
+ ImGui_ImplBUI_Config cfg = ToConfig(config);
+ cImGui_ImplBUI_App_* app = IM_NEW(cImGui_ImplBUI_App_)();
+ app->ImCtx = ImGui::GetCurrentContext();
+ app->App = ImGui_ImplBUI_CreateHeadlessApp(frame, user, config ? &cfg : nullptr);
+ app->Width = width > 0 ? width : 1280;
+ app->Height = height > 0 ? height : 800;
+ app->Settle = config ? config->SettleFrames : 3;
+ return C(app);
+}
+
+CIMGUI_API void cImGui_ImplBUI_RunApp(cImGui_ImplBUI_App* app)
+{
+ if (app)
+ ImGui_ImplBUI_RunApp(A(app)->App);
+}
+
+CIMGUI_API void cImGui_ImplBUI_CloseApp(cImGui_ImplBUI_App* app)
+{
+ if (app && ImGui_ImplBUI_AppWindow(A(app)->App))
+ BK_window_close(ImGui_ImplBUI_AppWindow(A(app)->App));
+}
+
+CIMGUI_API void cImGui_ImplBUI_DestroyApp(cImGui_ImplBUI_App* app)
+{
+ if (app == nullptr)
+ return;
+ ImGui_ImplBUI_DestroyApp(A(app)->App);
+ if (A(app)->Raster)
+ BUI_raster_free(A(app)->Raster);
+ IM_DELETE(A(app));
+}
+
+CIMGUI_API bool cImGui_ImplBUI_IsHeadless(cImGui_ImplBUI_App* app) { return app && ImGui_ImplBUI_AppWindow(A(app)->App) == nullptr; }
+CIMGUI_API BKWindow* cImGui_ImplBUI_AppWindow(cImGui_ImplBUI_App* app) { return app ? reinterpret_cast<BKWindow*>(ImGui_ImplBUI_AppWindow(A(app)->App)) : nullptr; }
+CIMGUI_API BKContext* cImGui_ImplBUI_AppContext(cImGui_ImplBUI_App* app) { return reinterpret_cast<BKContext*>(Ctx(app)); }
+CIMGUI_API BKNode* cImGui_ImplBUI_AppNode(cImGui_ImplBUI_App* app) { return app ? reinterpret_cast<BKNode*>(ImGui_ImplBUI_AppNode(A(app)->App)) : nullptr; }
+CIMGUI_API ImGuiContext* cImGui_ImplBUI_AppImGuiContext(cImGui_ImplBUI_App* app)
+{
+ return app ? reinterpret_cast<ImGuiContext*>(A(app)->ImCtx) : nullptr;
+}
+
+CIMGUI_API int cImGui_ImplBUI_Render(cImGui_ImplBUI_App* app, int n)
+{
+ if (app == nullptr)
+ return 0;
+ cImGui_ImplBUI_App_* a = A(app);
+ bool full = false;
+ if (a->Raster == nullptr)
+ {
+ a->Raster = BUI_raster_create(a->Width, a->Height);
+ full = true;
+ }
+ // ask the app's backend for the frames (an idle UI otherwise runs none)
+ ::ImGuiContext* prev = ImGui::GetCurrentContext();
+ ImGui::SetCurrentContext(a->ImCtx);
+ ImGui_ImplBUI_RequestFrames(n);
+ ImGui::SetCurrentContext(prev);
+ for (int i = 0; i < n; i++)
+ BK_render(ImGui_ImplBUI_AppContext(a->App), a->Raster, a->Width, a->Height, full && i == 0);
+ ImGui::SetCurrentContext(a->ImCtx);
+ const int frames = ImGui_ImplBUI_FrameCount();
+ ImGui::SetCurrentContext(prev);
+ return frames;
+}
+
+CIMGUI_API const uint32_t* cImGui_ImplBUI_Pixels(cImGui_ImplBUI_App* app, int* width, int* height)
+{
+ if (app == nullptr || A(app)->Raster == nullptr)
+ return nullptr;
+ if (width)
+ *width = A(app)->Width;
+ if (height)
+ *height = A(app)->Height;
+ return BUI_raster_pixels(A(app)->Raster);
+}
+
+CIMGUI_API bool cImGui_ImplBUI_SavePNG(cImGui_ImplBUI_App* app, const char* path)
+{
+ int w = 0, h = 0;
+ const uint32_t* px = cImGui_ImplBUI_Pixels(app, &w, &h);
+ return px && bui_png_write(path, px, w, h) != 0;
+}
+
+CIMGUI_API void cImGui_ImplBUI_MouseMove(cImGui_ImplBUI_App* app, float x, float y)
+{
+ BK_motion(Ctx(app), (int)x, (int)y, 0);
+ Settle(app, 2);
+}
+
+CIMGUI_API void cImGui_ImplBUI_MouseDown(cImGui_ImplBUI_App* app, float x, float y, int button)
+{
+ BK_motion(Ctx(app), (int)x, (int)y, 0);
+ Settle(app, 1);
+ if (button == 0)
+ BK_press(Ctx(app), (int)x, (int)y, BK_BUTTON1);
+ else
+ BK_button(Ctx(app), (int)x, (int)y, button == 1 ? 3 : 2, 0, 0);
+ Settle(app, 2);
+}
+
+CIMGUI_API void cImGui_ImplBUI_MouseUp(cImGui_ImplBUI_App* app, float x, float y, int button)
+{
+ if (button == 0)
+ BK_release(Ctx(app), (int)x, (int)y, 0);
+ else
+ BK_button(Ctx(app), (int)x, (int)y, button == 1 ? 3 : 2, 1, 0);
+ Settle(app, A(app) ? A(app)->Settle : 3);
+}
+
+CIMGUI_API void cImGui_ImplBUI_Click(cImGui_ImplBUI_App* app, float x, float y)
+{
+ cImGui_ImplBUI_MouseDown(app, x, y, 0);
+ cImGui_ImplBUI_MouseUp(app, x, y, 0);
+}
+
+CIMGUI_API void cImGui_ImplBUI_Scroll(cImGui_ImplBUI_App* app, float x, float y, float dx, float dy)
+{
+ BK_motion(Ctx(app), (int)x, (int)y, 0);
+ BK_scroll(Ctx(app), (int)x, (int)y, dx, dy, 0);
+ Settle(app, 3);
+}
+
+CIMGUI_API void cImGui_ImplBUI_KeyDown(cImGui_ImplBUI_App* app, const char* keysym, int mods)
+{
+ BK_key(Ctx(app), "", keysym, mods);
+ Settle(app, 1);
+}
+
+CIMGUI_API void cImGui_ImplBUI_KeyUp(cImGui_ImplBUI_App* app, const char* keysym, int mods)
+{
+ BK_key_release(Ctx(app), keysym, mods);
+ Settle(app, 2);
+}
+
+CIMGUI_API void cImGui_ImplBUI_Key(cImGui_ImplBUI_App* app, const char* keysym, int mods)
+{
+ if (mods & BK_CTRL)
+ cImGui_ImplBUI_KeyDown(app, "Control_L", BK_CTRL);
+ if (mods & BK_SHIFT)
+ cImGui_ImplBUI_KeyDown(app, "Shift_L", mods & (BK_SHIFT | BK_CTRL));
+ cImGui_ImplBUI_KeyDown(app, keysym, mods);
+ cImGui_ImplBUI_KeyUp(app, keysym, mods);
+ if (mods & BK_SHIFT)
+ cImGui_ImplBUI_KeyUp(app, "Shift_L", mods & BK_CTRL);
+ if (mods & BK_CTRL)
+ cImGui_ImplBUI_KeyUp(app, "Control_L", 0);
+}
+
+// typed text arrives as KEY events carrying the character (the Win32 WM_CHAR path)
+CIMGUI_API void cImGui_ImplBUI_TypeText(cImGui_ImplBUI_App* app, const char* s)
+{
+ while (s && *s)
+ {
+ int len = 1;
+ const unsigned char c = (unsigned char)*s;
+ if (c >= 0xF0) len = 4; else if (c >= 0xE0) len = 3; else if (c >= 0xC0) len = 2;
+ char t[8] = {};
+ for (int i = 0; i < len && s[i]; i++)
+ t[i] = s[i];
+ const bool upper = len == 1 && c >= 'A' && c <= 'Z';
+ char k[8];
+ memcpy(k, t, sizeof(k));
+ if (upper)
+ {
+ k[0] = (char)(c - 'A' + 'a');
+ BK_key(Ctx(app), "", "Shift_L", BK_SHIFT);
+ Settle(app, 1);
+ }
+ BK_key(Ctx(app), t, t, upper ? BK_SHIFT : 0);
+ Settle(app, 1);
+ BK_key_release(Ctx(app), k, upper ? BK_SHIFT : 0);
+ Settle(app, 1);
+ if (upper)
+ {
+ BK_key_release(Ctx(app), "Shift_L", 0);
+ Settle(app, 1);
+ }
+ s += (int)strlen(t);
+ }
+ Settle(app, 3);
+}
+
+} // extern "C"
+} // namespace cimgui
diff --git a/bindings/imgui/c/cimgui_impl_bui.h b/bindings/imgui/c/cimgui_impl_bui.h
new file mode 100644
index 0000000..6949f40
--- /dev/null
+++ b/bindings/imgui/c/cimgui_impl_bui.h
@@ -0,0 +1,101 @@
+/* cimgui_impl_bui.h: the BUI backend of Dear ImGui (imgui_impl_bui.h) for C, plus headless
+ * helpers (render into an offscreen raster, inject input) used by the C, Python and Rust
+ * bindings and their tests.
+ *
+ * static void frame(void* user) { ImGui_ShowDemoWindow(NULL); }
+ * int main(void) {
+ * ImGui_CreateContext();
+ * cImGui_ImplBUI_App* app = cImGui_ImplBUI_CreateApp("Dear ImGui on BUI", 1280, 800, frame, NULL, NULL);
+ * cImGui_ImplBUI_RunApp(app); // BUI's message loop until the window closes
+ * cImGui_ImplBUI_DestroyApp(app);
+ * ImGui_DestroyContext();
+ * }
+ *
+ * The backend runs ImGui_NewFrame() / frame(user) / ImGui_Render() itself; Blender's style
+ * and font (Inter) are applied by default (see cImGui_ImplBUI_Config).
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+#include "cimgui.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct BKNode BKNode;
+typedef struct BKContext BKContext;
+typedef struct BKWindow BKWindow;
+typedef struct BuiRaster BuiRaster;
+typedef struct cImGui_ImplBUI_App cImGui_ImplBUI_App;
+
+/* Called inside each ImGui frame (between ImGui_NewFrame() and ImGui_Render()). */
+typedef void (*cImGui_ImplBUI_FrameFn)(void* user);
+
+typedef struct cImGui_ImplBUI_Config {
+ bool BlenderStyle; /* Blender's theme colors and metrics (true) */
+ bool BlenderFont; /* Blender's UI font, Inter (true) */
+ float FontSize; /* pixels at scale 1; 0: Blender's UI text size */
+ bool FollowScale; /* follow DPI changes (true) */
+ int SettleFrames; /* frames after an input event (3) */
+} cImGui_ImplBUI_Config;
+
+/* The defaults above. */
+CIMGUI_API cImGui_ImplBUI_Config cImGui_ImplBUI_DefaultConfig(void);
+
+/* Hosting in a BUI "custom" node (any BUI UI). config may be NULL. */
+CIMGUI_API bool cImGui_ImplBUI_Init(BKNode* node, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config);
+CIMGUI_API void cImGui_ImplBUI_Shutdown(void);
+CIMGUI_API BKNode* cImGui_ImplBUI_GetNode(void);
+CIMGUI_API void cImGui_ImplBUI_RequestFrames(int n);
+CIMGUI_API void cImGui_ImplBUI_RequestFrameIn(int ms);
+CIMGUI_API int cImGui_ImplBUI_FrameCount(void);
+
+/* Blender's look. */
+CIMGUI_API void cImGui_ImplBUI_StyleBlender(ImGuiStyle* dst, float scale);
+CIMGUI_API float cImGui_ImplBUI_BlenderFontSize(float scale);
+CIMGUI_API ImFont* cImGui_ImplBUI_AddBlenderFont(float size_pixels);
+/* BUI's UI scale (DPI): BK_scale() / BK_set_scale(). */
+CIMGUI_API float cImGui_ImplBUI_GetScale(void);
+CIMGUI_API void cImGui_ImplBUI_SetScale(float scale);
+
+/* A complete app: a native BUI window whose client area is one ImGui node. Needs a current
+ * ImGui context (ImGui_CreateContext). NULL title / no window system: see IsHeadless. */
+CIMGUI_API cImGui_ImplBUI_App* cImGui_ImplBUI_CreateApp(const char* title, int width, int height, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config);
+/* No window: render with cImGui_ImplBUI_Render(). */
+CIMGUI_API cImGui_ImplBUI_App* cImGui_ImplBUI_CreateHeadlessApp(int width, int height, cImGui_ImplBUI_FrameFn frame, void* user, const cImGui_ImplBUI_Config* config);
+CIMGUI_API void cImGui_ImplBUI_RunApp(cImGui_ImplBUI_App* app); /* until the window closes */
+CIMGUI_API void cImGui_ImplBUI_CloseApp(cImGui_ImplBUI_App* app); /* close the window (ends RunApp) */
+CIMGUI_API void cImGui_ImplBUI_DestroyApp(cImGui_ImplBUI_App* app);
+CIMGUI_API bool cImGui_ImplBUI_IsHeadless(cImGui_ImplBUI_App* app);
+CIMGUI_API BKWindow* cImGui_ImplBUI_AppWindow(cImGui_ImplBUI_App* app);
+CIMGUI_API BKContext* cImGui_ImplBUI_AppContext(cImGui_ImplBUI_App* app);
+CIMGUI_API BKNode* cImGui_ImplBUI_AppNode(cImGui_ImplBUI_App* app);
+CIMGUI_API ImGuiContext* cImGui_ImplBUI_AppImGuiContext(cImGui_ImplBUI_App* app);
+
+/* Headless rendering: requests n ImGui frames and runs n BK_render passes into the app's
+ * offscreen raster (width x height from CreateHeadlessApp, or the window size). Returns the
+ * frames ImGui ran in total. */
+CIMGUI_API int cImGui_ImplBUI_Render(cImGui_ImplBUI_App* app, int n);
+/* The last rendered pixels: 0xAARRGGBB, width * height, row-major. */
+CIMGUI_API const uint32_t* cImGui_ImplBUI_Pixels(cImGui_ImplBUI_App* app, int* width, int* height);
+/* Writes the last rendered frame as a PNG; false on error. */
+CIMGUI_API bool cImGui_ImplBUI_SavePNG(cImGui_ImplBUI_App* app, const char* path);
+
+/* Input as the window hosts send it (pixel coordinates in the app; each call renders
+ * `settle` frames afterwards when headless, so ImGui sees the event). button: 0 left,
+ * 1 right, 2 middle. mods: BK_SHIFT 1 | BK_CTRL 2 | BK_ALT 4. keysym: X11 names
+ * ("Return", "BackSpace", "Left", "a", "Control_L"...). */
+CIMGUI_API void cImGui_ImplBUI_MouseMove(cImGui_ImplBUI_App* app, float x, float y);
+CIMGUI_API void cImGui_ImplBUI_MouseDown(cImGui_ImplBUI_App* app, float x, float y, int button);
+CIMGUI_API void cImGui_ImplBUI_MouseUp(cImGui_ImplBUI_App* app, float x, float y, int button);
+CIMGUI_API void cImGui_ImplBUI_Click(cImGui_ImplBUI_App* app, float x, float y);
+CIMGUI_API void cImGui_ImplBUI_Scroll(cImGui_ImplBUI_App* app, float x, float y, float dx, float dy);
+CIMGUI_API void cImGui_ImplBUI_KeyDown(cImGui_ImplBUI_App* app, const char* keysym, int mods);
+CIMGUI_API void cImGui_ImplBUI_KeyUp(cImGui_ImplBUI_App* app, const char* keysym, int mods);
+CIMGUI_API void cImGui_ImplBUI_Key(cImGui_ImplBUI_App* app, const char* keysym, int mods); /* down + up */
+CIMGUI_API void cImGui_ImplBUI_TypeText(cImGui_ImplBUI_App* app, const char* utf8);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
diff --git a/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pyc b/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pyc
new file mode 100644
index 0000000..cf00966
Binary files /dev/null and b/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pyc differ
diff --git a/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pyc b/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pyc
new file mode 100644
index 0000000..9535dfc
Binary files /dev/null and b/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pyc differ
diff --git a/bindings/imgui/gen/coverage.json b/bindings/imgui/gen/coverage.json
new file mode 100644
index 0000000..0af104a
--- /dev/null
+++ b/bindings/imgui/gen/coverage.json
@@ -0,0 +1,115 @@
+{
+ "python": {
+ "namespace_functions": 366,
+ "methods_and_ctors": 264,
+ "missing": [
+ "ImGui::PushID (void*)",
+ "ImGui::GetID (void*)",
+ "ImGui::Combo (callback)",
+ "ImGui::DragScalar (void*)",
+ "ImGui::DragScalarN (void*)",
+ "ImGui::SliderScalar (void*)",
+ "ImGui::SliderScalarN (void*)",
+ "ImGui::VSliderScalar (void*)",
+ "ImGui::InputScalar (void*)",
+ "ImGui::InputScalarN (void*)",
+ "ImGui::TreeNode (void*)",
+ "ImGui::TreeNodeEx (void*)",
+ "ImGui::TreePush (void*)",
+ "ImGui::ListBox (callback)",
+ "ImGui::PlotLines (callback)",
+ "ImGui::PlotHistogram (callback)",
+ "ImGui::SetAllocatorFunctions (callback typedef)",
+ "ImGui::GetAllocatorFunctions (callback typedef)",
+ "ImGui::MemFree (void*)",
+ "ImGuiStoragePair::ImGuiStoragePair (void*)",
+ "ImGuiStorage::SetVoidPtr (void*)",
+ "ImGuiSelectionBasicStorage::GetNextSelectedItem (type void**)",
+ "ImDrawList::AddCallback (callback typedef)",
+ "ImFontGlyphRangesBuilder::AddRanges (const scalar pointer)",
+ "ImFontGlyphRangesBuilder::BuildRanges (pointer ImVector<ImWchar>*)",
+ "ImFontAtlas::AddFontFromMemoryTTF (void*)",
+ "ImFontAtlas::AddFontFromMemoryCompressedTTF (void*)"
+ ],
+ "python_names": 366,
+ "constants": 1474
+ },
+ "rust": {
+ "namespace_functions": 366,
+ "methods_and_ctors": 264,
+ "ffi_functions": 879,
+ "ffi_missing": [
+ "ImGui_TextV (va_list)",
+ "ImGui_TextColoredV (va_list)",
+ "ImGui_TextDisabledV (va_list)",
+ "ImGui_TextWrappedV (va_list)",
+ "ImGui_LabelTextV (va_list)",
+ "ImGui_BulletTextV (va_list)",
+ "ImGui_TreeNodeV (va_list)",
+ "ImGui_TreeNodeVPtr (va_list)",
+ "ImGui_TreeNodeExV (va_list)",
+ "ImGui_TreeNodeExVPtr (va_list)",
+ "ImGui_SetTooltipV (va_list)",
+ "ImGui_SetItemTooltipV (va_list)",
+ "ImGui_LogTextV (va_list)",
+ "ImGui_DebugLogV (va_list)",
+ "ImGuiTextBuffer_appendfv (va_list)"
+ ],
+ "missing": [
+ "ImGui_PushIDPtr (void*)",
+ "ImGui_GetIDPtr (void*)",
+ "ImGui_ComboCallback (callback)",
+ "ImGui_ComboCallbackEx (callback)",
+ "ImGui_DragScalar (void*)",
+ "ImGui_DragScalarEx (void*)",
+ "ImGui_DragScalarN (void*)",
+ "ImGui_DragScalarNEx (void*)",
+ "ImGui_SliderScalar (void*)",
+ "ImGui_SliderScalarEx (void*)",
+ "ImGui_SliderScalarN (void*)",
+ "ImGui_SliderScalarNEx (void*)",
+ "ImGui_VSliderScalar (void*)",
+ "ImGui_VSliderScalarEx (void*)",
+ "ImGui_InputScalar (void*)",
+ "ImGui_InputScalarEx (void*)",
+ "ImGui_InputScalarN (void*)",
+ "ImGui_InputScalarNEx (void*)",
+ "ImGui_TreeNodePtr (void*)",
+ "ImGui_TreeNodeExPtr (void*)",
+ "ImGui_TreePushPtr (void*)",
+ "ImGui_ListBoxCallback (callback)",
+ "ImGui_ListBoxCallbackEx (callback)",
+ "ImGui_PlotLinesCallback (callback)",
+ "ImGui_PlotLinesCallbackEx (callback)",
+ "ImGui_PlotHistogramCallback (callback)",
+ "ImGui_PlotHistogramCallbackEx (callback)",
+ "ImGui_SetAllocatorFunctions (callback typedef)",
+ "ImGui_SetAllocatorFunctionsEx (callback typedef)",
+ "ImGui_GetAllocatorFunctions (callback typedef)",
+ "ImGui_MemFree (void*)",
+ "ImGuiStoragePair_NewPtr (void*)",
+ "ImGuiStorage_SetVoidPtr (void*)",
+ "ImGuiSelectionBasicStorage_GetNextSelectedItem (type void**)",
+ "ImDrawList_AddCallback (callback typedef)",
+ "ImDrawList_AddCallbackEx (callback typedef)",
+ "ImFontGlyphRangesBuilder_AddRanges (const scalar ptr)",
+ "ImFontGlyphRangesBuilder_BuildRanges (type ImVector<ImWchar>*)",
+ "ImFontAtlas_AddFontFromMemoryTTF (void*)",
+ "ImFontAtlas_AddFontFromMemoryTTFEx (void*)",
+ "ImFontAtlas_AddFontFromMemoryCompressedTTF (void*)",
+ "ImFontAtlas_AddFontFromMemoryCompressedTTFEx (void*)"
+ ],
+ "constants": 737
+ },
+ "imgui": {
+ "namespace_functions": 399,
+ "methods_and_ctors": 273,
+ "enums": 43,
+ "structs": 46
+ },
+ "c": {
+ "namespace_functions": 399,
+ "methods_and_ctors": 273,
+ "missing": []
+ }
+}
diff --git a/bindings/imgui/gen/gen.py b/bindings/imgui/gen/gen.py
new file mode 100644
index 0000000..0f4ef6e
--- /dev/null
+++ b/bindings/imgui/gen/gen.py
@@ -0,0 +1,1323 @@
+#!/usr/bin/env python3
+"""Generates the C, Python and Rust bindings of Dear ImGui from the vendored imgui.h.
+
+ py -3 -I bindings/imgui/gen/gen.py (from the repository root, stdlib only)
+
+1. parses bindings/imgui/extern/imgui/imgui.h (functions in `namespace ImGui`, enums,
+ typedefs, structs with their fields and methods) into gen/imgui_api.json;
+2. from that JSON writes
+ - bindings/imgui/c/cimgui.h, cimgui.cpp the C API (cimgui / dear_bindings style)
+ - bindings/python/src/buiimgui_gen.inc the CPython extension's functions/types
+ - bindings/rust/blenderui-imgui/src/sys.rs plain-Rust FFI (no bindgen)
+ - bindings/rust/blenderui-imgui/src/safe.rs the safe Rust layer
+ - gen/coverage.json what each language binds
+
+Naming (C): ImGui::Button -> ImGui_Button; a method ImDrawList::AddLine -> ImDrawList_AddLine
+(self first). Default arguments: ImGui_Button(label) takes the required arguments only,
+ImGui_ButtonEx(label, size) all of them. Overloads: the first keeps the name, the others get
+a suffix from the parameter types that differ (ImGui_PushIDInt, ImGui_MenuItemBoolPtr...).
+`fmt, ...` functions forward to their `...V` twin; constructors are X_New(...) / X_Delete().
+
+SPDX-License-Identifier: GPL-2.0-or-later
+"""
+
+from __future__ import annotations
+
+import json
+import re
+import sys
+from pathlib import Path
+
+HERE = Path(__file__).resolve().parent
+IMGUI_DIR = HERE.parent
+ROOT = IMGUI_DIR.parent.parent
+HEADER = IMGUI_DIR / "extern" / "imgui" / "imgui.h"
+
+OUT_JSON = HERE / "imgui_api.json"
+OUT_COVERAGE = HERE / "coverage.json"
+OUT_C_H = IMGUI_DIR / "c" / "cimgui.h"
+OUT_C_CPP = IMGUI_DIR / "c" / "cimgui.cpp"
+OUT_PY = ROOT / "bindings" / "python" / "src" / "buiimgui_gen.inc"
+OUT_RS_SYS = ROOT / "bindings" / "rust" / "blenderui-imgui" / "src" / "sys.rs"
+OUT_RS_SAFE = ROOT / "bindings" / "rust" / "blenderui-imgui" / "src" / "safe.rs"
+
+GEN_NOTE = "Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py)."
+
+# ======================================================================================
+# 1. Parsing imgui.h
+# ======================================================================================
+
+
+def strip_comments(src: str) -> str:
+ out, i, n = [], 0, len(src)
+ while i < n:
+ c = src[i]
+ if c in "\"'":
+ j = i + 1
+ while j < n and src[j] != c and src[j] != "\n":
+ j += 2 if src[j] == "\\" else 1
+ out.append(src[i:j + 1])
+ i = j + 1
+ elif src.startswith("//", i):
+ j = src.find("\n", i)
+ i = n if j < 0 else j
+ elif src.startswith("/*", i):
+ j = src.find("*/", i + 2)
+ out.append("\n" * src.count("\n", i, j + 2))
+ i = j + 2
+ else:
+ out.append(c)
+ i += 1
+ return "".join(out)
+
+
+OBSOLETE = "IMGUI_DISABLE_OBSOLETE_FUNCTIONS"
+
+
+def eval_cond(kind: str, expr: str, defined: dict) -> tuple[bool, bool, bool]:
+ """-> (value, obsolete region, obsolete region of the #else)"""
+ expr = expr.strip()
+ if kind in ("ifdef", "ifndef"):
+ name = expr.split()[0]
+ if name == OBSOLETE: # the library is built with the obsolete API: true, but flagged
+ return (kind == "ifndef", kind == "ifndef", kind == "ifdef")
+ val = name in defined
+ return (val if kind == "ifdef" else not val, False, False)
+ obs = ("!defined(" + OBSOLETE in expr.replace(" ", ""))
+ e = re.sub(r"defined\s*\(\s*(\w+)\s*\)|defined\s+(\w+)",
+ lambda m: "1" if (m.group(1) or m.group(2)) in defined else "0", expr)
+ e = e.replace("&&", " and ").replace("||", " or ")
+ e = re.sub(r"!(?!=)", " not ", e)
+ e = re.sub(r"\b[A-Za-z_]\w*\b", lambda m: m.group(0) if m.group(0) in ("and", "or", "not") else "0", e)
+ try:
+ val = bool(eval(e, {"__builtins__": {}}))
+ except Exception:
+ val = False
+ return (val, obs and val, False)
+
+
+def preprocess(src: str):
+ """-> list of (line text, obsolete flag) for the active lines; #defines collected."""
+ src = re.sub(r"\\\n", " ", src)
+ defined: dict = {}
+ defines: dict = {}
+ stack: list = []
+ out = []
+ for line in src.split("\n"):
+ s = line.strip()
+ if s.startswith("#"):
+ d = s[1:].strip()
+ kw = d.split(None, 1)[0] if d else ""
+ rest = d[len(kw):].strip()
+ active = all(e["active"] for e in stack)
+ if kw in ("if", "ifdef", "ifndef"):
+ if active:
+ val, obs, else_obs = eval_cond(kw, rest, defined)
+ else:
+ val, obs, else_obs = False, False, False
+ stack.append(dict(active=val, taken=val or not active, obs=obs, else_obs=else_obs))
+ elif kw == "elif":
+ e = stack[-1]
+ parent = all(x["active"] for x in stack[:-1])
+ if e["taken"] or not parent:
+ e["active"] = False
+ else:
+ val, obs, _ = eval_cond("if", rest, defined)
+ e["active"], e["obs"] = val, obs
+ e["taken"] = val
+ elif kw == "else":
+ e = stack[-1]
+ parent = all(x["active"] for x in stack[:-1])
+ e["active"] = parent and not e["taken"]
+ e["obs"] = e["else_obs"]
+ e["taken"] = True
+ elif kw == "endif":
+ stack.pop()
+ elif kw == "define" and active:
+ m = re.match(r"(\w+)(\s+(.*))?$", rest)
+ if m:
+ defined[m.group(1)] = True
+ if not rest[len(m.group(1)):].startswith("("):
+ defines[m.group(1)] = (m.group(3) or "").strip()
+ continue
+ if all(e["active"] for e in stack):
+ out.append((line, any(e["obs"] for e in stack)))
+ return out, defines
+
+
+TOKEN_RE = re.compile(r"""
+ (?P<str>"(?:\\.|[^"\\])*") |
+ (?P<chr>'(?:\\.|[^'\\])*') |
+ (?P<num>0[xX][0-9a-fA-F]+[uUlL]* | (?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?[fFuUlL]*) |
+ (?P<id>[A-Za-z_]\w*) |
+ (?P<op>::|->|<<|>>|&&|\|\||==|!=|<=|>=|\.\.\.|[^\s])
+""", re.X)
+
+DROP_TOKENS = {"IM_NODEBUGSTEP", "IM_MSVC_RUNTIME_CHECKS_OFF", "IM_MSVC_RUNTIME_CHECKS_RESTORE", "IMGUI_IMPL_API"}
+
+
+class Tok(str):
+ obs: bool = False
+
+
+def tokenize(lines) -> list:
+ toks = []
+ for text, obs in lines:
+ for m in TOKEN_RE.finditer(text):
+ t = Tok(m.group(0))
+ t.obs = obs
+ toks.append(t)
+ # drop attribute macros: IM_FMTARGS(n), IM_FMTLIST(n), ...
+ out, i = [], 0
+ while i < len(toks):
+ t = toks[i]
+ if t in ("IM_FMTARGS", "IM_FMTLIST"):
+ i += 4
+ continue
+ if t in DROP_TOKENS:
+ i += 1
+ continue
+ out.append(t)
+ i += 1
+ return out
+
+
+def match_close(toks, i, open_, close):
+ depth = 0
+ for j in range(i, len(toks)):
+ if toks[j] == open_:
+ depth += 1
+ elif toks[j] == close:
+ depth -= 1
+ if depth == 0:
+ return j
+ raise ValueError("unbalanced " + open_)
+
+
+def read_stmt(toks, i):
+ """One declaration: -> (decl tokens, body tokens or None, next index)."""
+ decl, depth = [], 0
+ while i < len(toks):
+ t = toks[i]
+ if t in ("(", "["):
+ depth += 1
+ elif t in (")", "]"):
+ depth -= 1
+ elif t == ";" and depth == 0:
+ return decl, None, i + 1
+ elif t == "{" and depth == 0:
+ j = match_close(toks, i, "{", "}")
+ body = toks[i + 1:j]
+ k = j + 1
+ if decl and decl[0] == "namespace":
+ return decl + ["{}"], body, k
+ if decl and decl[0] in ("struct", "union", "enum") or (decl and decl[0] == "typedef"):
+ # struct X { } [declarators] ;
+ tail = []
+ while k < len(toks) and toks[k] != ";":
+ tail.append(toks[k])
+ k += 1
+ k += 1
+ return decl + ["{}"] + tail, body, k
+ if k < len(toks) and toks[k] == ";":
+ k += 1
+ return decl, body, k
+ decl.append(t)
+ i += 1
+ return decl, None, i
+
+
+def split_commas(toks):
+ parts, cur, depth = [], [], 0
+ for t in toks:
+ if t in ("(", "[", "{", "<"):
+ depth += 1
+ elif t in (")", "]", "}", ">"):
+ depth -= 1
+ if t == "," and depth == 0:
+ parts.append(cur)
+ cur = []
+ else:
+ cur.append(t)
+ if cur:
+ parts.append(cur)
+ return parts
+
+
+def join_type(toks) -> str:
+ s = ""
+ for t in toks:
+ if t in ("*", "&", ">", ","):
+ s = s.rstrip() + t
+ elif t == "<":
+ s = s.rstrip() + t
+ else:
+ s += ("" if not s or s[-1] == "<" else " ") + t
+ return s
+
+
+def join_expr(toks) -> str:
+ s = ""
+ for t in toks:
+ if t in (")", ",", "]") or s.endswith(("(", "[")) or not s:
+ s += t
+ elif t in ("(", "[") and s and (s[-1].isalnum() or s[-1] == "_"):
+ s += t
+ else:
+ s += " " + t
+ return s.replace(" ,", ",")
+
+
+SKIP_STRUCTS = {"ImNewWrapper"} # IM_NEW()'s placement-new tag: not API
+QUALIFIERS = {"IMGUI_API", "inline", "static", "constexpr", "virtual", "explicit", "extern"}
+
+
+def parse_fnptr(toks):
+ """`ret ( * name ) ( args )` -> (name, {"ret":..., "args":[...]})"""
+ p = toks.index("(")
+ ret = join_type(toks[:p])
+ q = match_close(toks, p, "(", ")")
+ inner = toks[p + 1:q]
+ name = inner[-1] if inner and inner[-1] not in ("*",) else ""
+ a = q + 1
+ b = match_close(toks, a, "(", ")")
+ args = [parse_param(x, k) for k, x in enumerate(split_commas(toks[a + 1:b]))]
+ return name, {"ret": ret, "args": args}
+
+
+def parse_param(toks, index):
+ if toks == ["..."]:
+ return {"name": "...", "type": "..."}
+ if toks == ["void"]:
+ return None
+ if "(" in toks and toks[toks.index("(") + 1] == "*":
+ name, fp = parse_fnptr(toks)
+ return {"name": name or "arg%d" % index, "type": "fnptr", "fnptr": fp}
+ default = None
+ depth = 0
+ for k, t in enumerate(toks):
+ if t in ("(", "[", "<"):
+ depth += 1
+ elif t in (")", "]", ">"):
+ depth -= 1
+ elif t == "=" and depth == 0:
+ default = join_expr(toks[k + 1:])
+ toks = toks[:k]
+ break
+ array = None
+ if toks and toks[-1] == "]":
+ o = toks.index("[")
+ array = join_expr(toks[o + 1:-1])
+ toks = toks[:o]
+ builtin = {"int", "float", "double", "char", "bool", "short", "long", "unsigned", "signed", "void", "*", "&"}
+ if len(toks) >= 2 and toks[-1] not in builtin and re.match(r"[A-Za-z_]\w*$", toks[-1]):
+ name, ttoks = toks[-1], toks[:-1]
+ else:
+ name, ttoks = "arg%d" % index, toks
+ p = {"name": name, "type": join_type(ttoks)}
+ if array is not None:
+ p["array"] = array
+ if default is not None:
+ p["default"] = default
+ return p
+
+
+def parse_function(decl, scope, struct_name=None):
+ """decl tokens (no body) -> function dict or None."""
+ if "operator" in decl or decl[0] == "template" or "~" in decl or decl[0] in ("friend", "typedef"):
+ return None
+ p = decl.index("(")
+ head = [t for t in decl[:p] if t not in QUALIFIERS]
+ is_static = "static" in decl[:p]
+ is_api = "IMGUI_API" in decl[:p]
+ if not head:
+ return None
+ name = head[-1]
+ q = match_close(decl, p, "(", ")")
+ tail = decl[q + 1:]
+ if "=" in tail and tail[tail.index("=") + 1] in ("delete", "0"):
+ return None
+ params = []
+ for k, ptoks in enumerate(split_commas(decl[p + 1:q])):
+ pp = parse_param(ptoks, k)
+ if pp:
+ params.append(pp)
+ f = {
+ "name": name,
+ "scope": scope,
+ "ret": join_type(head[:-1]),
+ "args": params,
+ "obsolete": bool(decl[0].obs or (name and getattr(name, "obs", False))),
+ "api": is_api,
+ }
+ if struct_name:
+ f["const"] = bool(tail and tail[0] == "const")
+ f["static"] = is_static
+ if name == struct_name and not f["ret"]:
+ f["ctor"] = True
+ f["ret"] = struct_name + "*"
+ if any(a["type"] == "..." for a in params):
+ f["variadic"] = True
+ if any(a["type"] == "va_list" for a in params):
+ f["va_list"] = True
+ return f
+
+
+def parse_field_decl(decl, out, struct_name):
+ obs = bool(decl[0].obs)
+ if decl[0] in ("typedef", "friend", "template", "using") or "operator" in decl:
+ return
+ if "static" in decl[:3]:
+ return
+ if "(" in decl and decl[decl.index("(") + 1] == "*":
+ name, fp = parse_fnptr(decl)
+ out.append({"name": name, "type": "fnptr", "fnptr": fp, "obsolete": obs})
+ return
+ parts = split_commas(decl)
+ first = parts[0]
+ # type = tokens up to the declarator name
+ def declarator(toks):
+ bits = None
+ if ":" in toks:
+ c = toks.index(":")
+ bits = int(toks[c + 1])
+ toks = toks[:c]
+ if "=" in toks:
+ toks = toks[:toks.index("=")]
+ arrays = []
+ while toks and toks[-1] == "]":
+ o = len(toks) - 1 - toks[::-1].index("[")
+ arrays.insert(0, join_expr(toks[o + 1:-1]))
+ toks = toks[:o]
+ return toks, arrays, bits
+ first = [t for t in first if t != "mutable"]
+ toks, arrays, bits = declarator(first)
+ name = toks[-1]
+ base = toks[:-1]
+ fields = [(name, join_type(base), arrays, bits)]
+ base_no_ptr = [t for t in base if t not in ("*", "&")]
+ for extra in parts[1:]:
+ t2, arrays2, bits2 = declarator(extra)
+ ptrs = [t for t in t2 if t == "*"]
+ fields.append((t2[-1], join_type(base_no_ptr + ptrs), arrays2, bits2))
+ for name, typ, arrays, bits in fields:
+ f = {"name": name, "type": typ, "obsolete": obs}
+ if arrays:
+ f["array"] = arrays[0] if len(arrays) == 1 else arrays
+ if bits is not None:
+ f["bitfield"] = bits
+ out.append(f)
+
+
+def parse_struct_body(name, body, api):
+ st = {"name": name, "fields": [], "methods": [], "ctors": [], "has_dtor": False, "opaque": False}
+ i = 0
+ anon = 0
+ while i < len(body):
+ decl, sub, i = read_stmt(body, i)
+ if not decl:
+ continue
+ while len(decl) >= 2 and decl[0] in ("public", "private", "protected") and decl[1] == ":":
+ decl = decl[2:]
+ if decl[0] == "template":
+ continue
+ if decl[0] in ("struct", "union", "enum") and "{}" in decl:
+ kind = decl[0]
+ if kind == "union" and decl[1] == "{}":
+ group = []
+ for d2 in split_stmts(sub):
+ parse_field_decl(d2, group, name)
+ st["fields"].append({"name": "__union%d" % anon, "type": "union", "union": group,
+ "obsolete": bool(decl[0].obs)})
+ anon += 1
+ elif kind == "struct":
+ nested = parse_struct_body(decl[1], sub, api)
+ api["structs"].append(nested)
+ elif kind == "enum":
+ parse_enum(decl, sub, api)
+ continue
+ if decl[0] == "~" or (len(decl) > 1 and decl[1] == "~") or "~" in decl[:3]:
+ st["has_dtor"] = True
+ continue
+ if "(" in decl and decl[decl.index("(") + 1] != "*" and ("[" not in decl or decl.index("(") < decl.index("[")):
+ f = parse_function(decl, name, name)
+ if f is None:
+ continue
+ if f.get("ctor"):
+ st["ctors"].append(f)
+ else:
+ st["methods"].append(f)
+ continue
+ parse_field_decl(decl, st["fields"], name)
+ return st
+
+
+def split_stmts(body):
+ i, out = 0, []
+ while i < len(body):
+ decl, _, i = read_stmt(body, i)
+ if decl:
+ out.append(decl)
+ return out
+
+
+def eval_enum_expr(expr_toks, values):
+ e = []
+ for t in expr_toks:
+ if t in values:
+ e.append(str(values[t]))
+ elif re.match(r"^(0[xX][0-9a-fA-F]+|\d+)[uUlL]*$", t):
+ e.append(re.sub(r"[uUlL]+$", "", t))
+ elif t in ("|", "&", "<<", ">>", "~", "-", "+", "*", "(", ")", "^"):
+ e.append(t)
+ elif t == "/":
+ e.append("//")
+ elif t in ("int", "ImU8"):
+ e.append("") # casts
+ else:
+ raise ValueError("enum expr: %r" % (expr_toks,))
+ return int(eval(" ".join(e), {"__builtins__": {}}))
+
+
+def parse_enum(decl, body, api):
+ name = decl[1] if len(decl) > 1 and decl[1] not in (":", "{}") else ""
+ underlying = None
+ if ":" in decl:
+ c = decl.index(":")
+ underlying = join_type(decl[c + 1:decl.index("{}")])
+ values = []
+ nxt = 0
+ for part in split_commas(body):
+ if not part:
+ continue
+ vname = part[0]
+ if "=" in part:
+ expr_toks = part[part.index("=") + 1:]
+ val = eval_enum_expr(expr_toks, api["enum_values"])
+ expr = join_expr(expr_toks)
+ else:
+ val, expr = nxt, None
+ api["enum_values"][vname] = val
+ nxt = val + 1
+ v = {"name": vname, "value": val, "obsolete": bool(part[0].obs)}
+ if expr is not None:
+ v["expr"] = expr
+ values.append(v)
+ api["enums"].append({"name": name, "underlying": underlying, "values": values,
+ "flags": name.endswith("Flags_") or "Flags_" in name})
+
+
+def parse_header(path: Path):
+ src = strip_comments(path.read_text(encoding="utf-8"))
+ lines, defines = preprocess(src)
+ toks = tokenize(lines)
+ api = {"version": None, "defines": {}, "typedefs": [], "enums": [], "structs": [], "opaque": [],
+ "functions": [], "enum_values": {}}
+ for k, v in defines.items():
+ if re.match(r'^("[^"]*"|-?(0x[0-9A-Fa-f]+|\d+))$', v):
+ api["defines"][k] = v
+ if not v.startswith('"'):
+ api["enum_values"][k] = int(v, 0)
+ api["version"] = defines.get("IMGUI_VERSION", "").strip('"')
+ declared, defined = [], set()
+
+ def top(toks, i, end, ns=None):
+ while i < end:
+ if toks[i] == "}":
+ i += 1
+ continue
+ start = i
+ decl, body, i = read_stmt(toks, i)
+ if not decl:
+ continue
+ if decl[0] == "namespace":
+ top(body, 0, len(body), ns=decl[1])
+ continue
+ if decl[0] == "template":
+ continue
+ if decl[0] in ("struct", "union") and body is None and len(decl) == 2:
+ declared.append(decl[1])
+ continue
+ if decl[0] == "struct" and body is not None:
+ if decl[1] in SKIP_STRUCTS:
+ continue
+ st = parse_struct_body(decl[1], body, api)
+ api["structs"].append(st)
+ defined.add(decl[1])
+ continue
+ if decl[0] == "enum":
+ if body is not None:
+ parse_enum(decl, body, api)
+ continue
+ if decl[0] == "typedef":
+ t = decl[1:]
+ if "(" in t and t[t.index("(") + 1] == "*":
+ name, fp = parse_fnptr(t)
+ api["typedefs"].append({"name": name, "type": "fnptr", "fnptr": fp, "obsolete": bool(decl[0].obs)})
+ else:
+ api["typedefs"].append({"name": t[-1], "type": join_type(t[:-1]), "obsolete": bool(decl[0].obs)})
+ continue
+ if ns == "ImGui" and body is None and "(" in decl:
+ f = parse_function(decl, "ImGui")
+ if f:
+ api["functions"].append(f)
+ continue
+ # anything else (inline definitions out of class, using...) is skipped
+ return i
+
+ top(toks, 0, len(toks))
+ for name in declared:
+ if name not in defined and name not in api["opaque"]:
+ api["opaque"].append(name)
+ return api
+
+
+# ======================================================================================
+# 2. Type model shared by the emitters
+# ======================================================================================
+
+BUILTIN_SCALARS = {
+ "bool": "bool", "char": "i8", "signed char": "i8", "unsigned char": "u8", "short": "i16",
+ "signed short": "i16", "unsigned short": "u16", "int": "i32", "signed int": "i32",
+ "unsigned int": "u32", "long long": "i64", "signed long long": "i64",
+ "unsigned long long": "u64", "float": "f32", "double": "f64", "size_t": "usize",
+}
+VALUE_STRUCTS = ("ImVec2", "ImVec4", "ImTextureRef", "ImColor")
+
+
+class Model:
+ def __init__(self, api):
+ self.api = api
+ self.typedefs = {t["name"]: t for t in api["typedefs"]}
+ self.structs = {s["name"]: s for s in api["structs"]}
+ self.opaque = set(api["opaque"])
+ self.enums_named = {}
+ for e in api["enums"]:
+ if e["name"]:
+ self.enums_named[e["name"]] = e
+ # enums used as types: `enum ImGuiKey : int` and plain `enum ImTextureFormat`
+ self.enum_types = {n for n, e in self.enums_named.items() if not n.endswith("_")}
+
+ def is_struct(self, n):
+ return n in self.structs or n in self.opaque
+
+ def resolve(self, name):
+ """typedef chain -> builtin scalar name, 'enum:<Name>', 'fnptr:<Name>', struct name, or None"""
+ seen = 0
+ while seen < 20:
+ seen += 1
+ if name in BUILTIN_SCALARS:
+ return name
+ if name in self.enum_types:
+ e = self.enums_named[name]
+ return e["underlying"] or "int"
+ if name in self.typedefs:
+ t = self.typedefs[name]
+ if t["type"] == "fnptr":
+ return "fnptr"
+ if "*" in t["type"] or "<" in t["type"]:
+ return t["type"]
+ name = t["type"]
+ continue
+ return name
+ return name
+
+ def scalar_kind(self, name):
+ r = self.resolve(name)
+ return BUILTIN_SCALARS.get(r)
+
+
+def parse_ctype(t: str):
+ """'const char* const' -> dict(base, const, ptr (list of const flags per level), ref)"""
+ ref = t.endswith("&")
+ if ref:
+ t = t[:-1]
+ levels = []
+ tmpl = ""
+ if ">" in t: # ImVector<ImFont*>*: stars inside the template belong to the base
+ k = t.rindex(">") + 1
+ tmpl, t = t[:k], t[k:]
+ parts = re.split(r"(\*)", t)
+ base = (tmpl + parts[0]).strip()
+ rest = parts[1:]
+ const = base.startswith("const ")
+ if const:
+ base = base[6:]
+ for k in range(0, len(rest), 2):
+ after = rest[k + 1].strip() if k + 1 < len(rest) else ""
+ levels.append(after == "const")
+ return {"base": base.strip(), "const": const, "ptr": levels, "ref": ref}
+
+
+# ======================================================================================
+# 3. Naming: overloads, default arguments
+# ======================================================================================
+
+
+def type_tag(t: str) -> str:
+ c = parse_ctype(t)
+ base = c["base"]
+ tag = {"const char": "Str", "char": "Char", "void": "Ptr" if c["ptr"] else "", "int": "Int",
+ "unsigned int": "UInt", "float": "Float", "double": "Double", "bool": "Bool",
+ "ImGuiID": "ID", "ImU32": "U32"}.get(base)
+ if base == "const char" or (base == "char" and c["const"]):
+ tag = "Str"
+ if tag is None:
+ tag = re.sub(r"^Im(Gui)?", "", base) or base
+ tag = tag[:1].upper() + tag[1:]
+ if base == "char" and c["const"] and c["ptr"]:
+ return "Str"
+ if base == "void" and c["ptr"]:
+ return "Ptr"
+ if c["ptr"] and base not in ("void",) and not (base == "char" and c["const"]):
+ tag += "Ptr"
+ return tag
+
+
+def arg_type_key(a):
+ if a["type"] == "fnptr":
+ return "Callback"
+ t = a["type"]
+ if a.get("array") is not None:
+ t += "*"
+ return type_tag(t)
+
+
+def assign_names(api):
+ """C names for every function: c_full (all args) and c_short (required args only)."""
+ used = set()
+ groups = {}
+ for f in api["functions"]:
+ prefix = "ImGui" if f["scope"] == "ImGui" else f["scope"]
+ groups.setdefault((prefix, f["name"]), []).append(f)
+ for s in api["structs"]:
+ for f in s["methods"]:
+ groups.setdefault((s["name"], f["name"]), []).append(f)
+ for f in s["ctors"]:
+ groups.setdefault((s["name"], "New"), []).append(f)
+ for (prefix, name), fs in groups.items():
+ live = [f for f in fs if not f["obsolete"]]
+ first = live[0] if live else None
+ for f in fs:
+ if f["obsolete"]:
+ continue
+ base = "%s_%s" % (prefix, name)
+ if f is not first:
+ fa = first["args"]
+ tags, extra = [], []
+ for k, a in enumerate(f["args"]):
+ if a["type"] in ("...", "va_list"):
+ continue
+ if k >= len(fa):
+ extra.append(arg_type_key(a))
+ elif arg_type_key(fa[k]) != arg_type_key(a) or (a.get("array") is None) != (fa[k].get("array") is None):
+ tags.append(arg_type_key(a))
+ tags += extra
+ if not tags:
+ tags.append("Short" if len(f["args"]) < len(fa) else "Alt")
+ cand = base + tags[0]
+ k = 1
+ while (cand in used or cand + "Ex" in used) and k < len(tags):
+ cand += tags[k]
+ k += 1
+ while cand in used:
+ cand += "_"
+ base = cand
+ f["overload_base"] = "%s_%s" % (prefix, name)
+ if f is not first:
+ f["overload_of"] = first.get("c_full")
+ has_default = any("default" in a for a in f["args"])
+ if has_default:
+ short = base
+ full = base + "Ex"
+ while full in used or short in used:
+ full += "_"
+ if short in used:
+ short += "_"
+ f["c_short"], f["c_full"] = short, full
+ used.update((short, full))
+ else:
+ while base in used:
+ base += "_"
+ f["c_full"] = base
+ used.add(base)
+ f["c_base"] = base
+
+
+def all_functions(api):
+ for f in api["functions"]:
+ yield f
+ for s in api["structs"]:
+ for f in s["ctors"]:
+ yield f
+ for f in s["methods"]:
+ yield f
+
+
+def find_vfunc(api, f):
+ """The `...V` / `...v` twin of a variadic function."""
+ if f["scope"] == "ImGui":
+ cands = api["functions"]
+ else:
+ cands = next(s["methods"] for s in api["structs"] if s["name"] == f["scope"])
+ want = [a["type"] for a in f["args"]]
+ want = [("va_list" if t == "..." else t) for t in want]
+ for g in cands:
+ if g["name"] in (f["name"] + "V", f["name"] + "v") and [a["type"] for a in g["args"]] == want:
+ return g
+ return None
+
+
+def snake(name: str) -> str:
+ s = re.sub(r"([A-Z])to([A-Z])", r"\1_to_\2", name)
+ s = re.sub(r"([A-Z]+)([A-Z][a-z])", r"\1_\2", s)
+ s = re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", s)
+ s = s.lower().replace("__", "_")
+ return s
+
+
+def build_api():
+ api = parse_header(HEADER)
+ for st in api["structs"]:
+ if not st["ctors"] and st["name"] not in VALUE_STRUCTS:
+ st["ctors"].append({"name": st["name"], "scope": st["name"], "ret": st["name"] + "*", "args": [],
+ "obsolete": False, "api": False, "const": False, "static": False,
+ "ctor": True, "implicit": True})
+ assign_names(api)
+ for f in all_functions(api):
+ if f.get("variadic"):
+ v = find_vfunc(api, f)
+ if v is not None:
+ f["vfunc"] = v["name"]
+ # struct dependency order (by-value fields first)
+ order, seen = [], set()
+ structs = {s["name"]: s for s in api["structs"]}
+
+ def deps(s):
+ out = []
+ for fd in s["fields"]:
+ group = fd["union"] if fd["type"] == "union" else [fd]
+ for g in group:
+ if g["type"] == "fnptr":
+ continue
+ c = parse_ctype(g["type"])
+ if c["ptr"]:
+ continue
+ base = c["base"]
+ m = re.match(r"ImVector<(.+)>$", base)
+ if m:
+ continue
+ if base in structs:
+ out.append(base)
+ return out
+
+ def visit(n):
+ if n in seen:
+ return
+ seen.add(n)
+ for d in deps(structs[n]):
+ visit(d)
+ order.append(n)
+ for s in api["structs"]:
+ visit(s["name"])
+ api["struct_order"] = order
+ return api
+
+
+# ======================================================================================
+# 4. C API: cimgui.h / cimgui.cpp
+# ======================================================================================
+
+
+def vector_name(inner: str) -> str:
+ inner = inner.strip()
+ n = inner.replace("const ", "").replace("*", "Ptr").replace(" ", "_")
+ return "ImVector_" + n
+
+
+def c_type(t: str, model: Model) -> str:
+ """C++ type spelling -> C spelling (ImVector<T> -> ImVector_T); refs handled by callers."""
+ m = re.search(r"ImVector<(.+)>", t)
+ if m:
+ t = t.replace(m.group(0), vector_name(m.group(1)))
+ m = re.search(r"ImSmallStack_<\s*(\w+)\s*,\s*(\d+)\s*>", t)
+ if m:
+ t = t.replace(m.group(0), "ImSmallStack_%s_%s" % (m.group(1), m.group(2)))
+ return t
+
+
+def c_smallstacks(api):
+ found = {}
+ for s in api["structs"]:
+ for fd in s["fields"]:
+ if fd["type"] != "fnptr" and fd["type"] != "union":
+ m = re.search(r"ImSmallStack_<\s*(\w+)\s*,\s*(\d+)\s*>", fd["type"])
+ if m:
+ found["ImSmallStack_%s_%s" % (m.group(1), m.group(2))] = (m.group(1), int(m.group(2)))
+ return found
+
+
+def c_vectors(api, model):
+ """All ImVector<T> instantiations used in fields and parameters."""
+ found = {}
+
+ def scan(t):
+ for m in re.finditer(r"ImVector<([^>]+)>", t):
+ found[vector_name(m.group(1))] = m.group(1).strip()
+ for s in api["structs"]:
+ for fd in s["fields"]:
+ for g in (fd["union"] if fd["type"] == "union" else [fd]):
+ if g["type"] != "fnptr":
+ scan(g["type"])
+ for f in all_functions(api):
+ scan(f["ret"])
+ for a in f["args"]:
+ if a["type"] != "fnptr":
+ scan(a["type"])
+ return found
+
+
+def c_decl(t: str, name: str, model: Model, array=None) -> str:
+ if t == "fnptr":
+ raise ValueError
+ s = c_type(t, model)
+ sep = " "
+ arr = ""
+ if array is not None:
+ arr = "".join("[%s]" % a for a in (array if isinstance(array, list) else [array]))
+ return "%s%s%s%s" % (s, sep, name, arr)
+
+
+def c_fnptr_decl(fp, name, model):
+ args = ", ".join(c_param_decl(a, model) for a in fp["args"]) or "void"
+ r = c_type(fp["ret"], model)
+ return "%s (*%s)(%s)" % (r, name, args)
+
+
+def c_param_type(a, model):
+ """-> C parameter type for a C++ parameter (refs become pointers / values)."""
+ t = a["type"]
+ if t.endswith("&"):
+ c = parse_ctype(t)
+ if c["const"] and not c["ptr"] and (c["base"] in VALUE_STRUCTS or model.scalar_kind(c["base"])):
+ return c["base"]
+ return t[:-1] + "*"
+ return t
+
+
+def c_param_decl(a, model):
+ if a["type"] == "fnptr":
+ return c_fnptr_decl(a["fnptr"], a["name"], model)
+ if a["type"] == "...":
+ return "..."
+ return c_decl(c_param_type(a, model), a["name"], model, a.get("array"))
+
+
+def c_ret_type(f, model):
+ t = f["ret"]
+ if t.endswith("&"):
+ return t[:-1] + "*"
+ return t or "void"
+
+
+def is_value_struct(base, model):
+ return base in VALUE_STRUCTS
+
+
+def cpp_qualify(t: str, model: Model) -> str:
+ """Qualify imgui type names with :: (the C++ wrappers live in namespace cimgui)."""
+ def q(m):
+ w = m.group(0)
+ if w in model.structs or w in model.opaque or w in model.typedefs or w in model.enum_types or w == "ImVector":
+ return "::" + w
+ return w
+ return re.sub(r"(?<![:\w])[A-Za-z_]\w*", q, t)
+
+
+def cpp_arg_expr(a, model):
+ """C argument -> C++ argument expression."""
+ t = a["type"]
+ n = a["name"]
+ if t == "fnptr":
+ return "reinterpret_cast<%s>(%s)" % (cpp_fnptr_type(a["fnptr"], model), n)
+ if t in ("...",):
+ return None
+ if a.get("array") is not None:
+ c = parse_ctype(t)
+ if model.is_struct(c["base"]) or c["base"] in model.enum_types:
+ return "reinterpret_cast<%s*>(%s)" % (cpp_qualify(t, model), n)
+ return n
+ c = parse_ctype(t)
+ base = c["base"]
+ if t.endswith("&"):
+ if c["const"] and not c["ptr"] and (base in VALUE_STRUCTS or model.scalar_kind(base)):
+ if base in VALUE_STRUCTS:
+ return "cimgui_cast<::%s>(%s)" % (base, n)
+ return n
+ inner = cpp_qualify(t[:-1], model)
+ return "*reinterpret_cast<%s*>(%s)" % (inner, n)
+ if c["ptr"]:
+ if model.typedefs.get(base, {}).get("type") == "fnptr":
+ return "reinterpret_cast<%s>(%s)" % (cpp_qualify(t, model), n)
+ if model.is_struct(base) or base in model.enum_types or "ImVector" in base:
+ return "reinterpret_cast<%s>(%s)" % (cpp_qualify(t, model), n)
+ return n
+ if base in VALUE_STRUCTS or base in model.structs:
+ return "cimgui_cast<::%s>(%s)" % (base, n)
+ if base in model.enum_types:
+ return "(::%s)%s" % (base, n)
+ if model.typedefs.get(base, {}).get("type") == "fnptr":
+ return "reinterpret_cast<::%s>(%s)" % (base, n)
+ return n
+
+
+def cpp_fnptr_type(fp, model):
+ args = ", ".join(cpp_qualify(c_param_type(a, model) if a["type"] != "fnptr" else "void*", model) + ("*" if a.get("array") is not None else "") for a in fp["args"])
+ return "%s (*)(%s)" % (cpp_qualify(fp["ret"], model), args)
+
+
+def cpp_ret_wrap(f, expr, model):
+ t = f["ret"]
+ if not t or t == "void":
+ return expr + ";"
+ c = parse_ctype(t)
+ base = c["base"]
+ if t.endswith("&"):
+ if model.is_struct(base) or base in model.enum_types or "ImVector" in base:
+ return "return reinterpret_cast<%s*>(&%s);" % (c_type(t[:-1], model).replace("ImVector", "cimgui::ImVector") if "ImVector" in t else ("const " if c["const"] else "") + "cimgui::" + base + "*" * len(c["ptr"]), expr)
+ return "return &%s;" % expr
+ if c["ptr"]:
+ if model.is_struct(base) or base in model.enum_types:
+ cq = ("const " if c["const"] else "") + "cimgui::" + base + "*" * len(c["ptr"])
+ return "return reinterpret_cast<%s>(%s);" % (cq, expr)
+ return "return %s;" % expr
+ if base in VALUE_STRUCTS or base in model.structs:
+ return "return cimgui_cast<cimgui::%s>(%s);" % (base, expr)
+ if base in model.enum_types:
+ return "return (cimgui::%s)%s;" % (base, expr)
+ return "return %s;" % expr
+
+
+def c_fields(s, model, indent=" "):
+ lines = []
+ for fd in s["fields"]:
+ if fd["type"] == "union":
+ lines.append(indent + "union {")
+ for g in fd["union"]:
+ lines.append(indent + " " + c_field_decl(g, model) + ";")
+ lines.append(indent + "};")
+ else:
+ lines.append(indent + c_field_decl(fd, model) + ";")
+ return lines
+
+
+def array_dims(fd, model):
+ arr = fd.get("array")
+ if arr is None:
+ return []
+ arr = arr if isinstance(arr, list) else [arr]
+ return [eval_dim(a, model) for a in arr]
+
+
+def eval_dim(expr, model):
+ toks = [m.group(0) for m in TOKEN_RE.finditer(expr)]
+ return eval_enum_expr(toks, model.api["enum_values"])
+
+
+def c_field_decl(fd, model):
+ if fd["type"] == "fnptr":
+ return c_fnptr_decl(fd["fnptr"], fd["name"], model)
+ s = c_type(fd["type"], model)
+ dims = array_dims(fd, model)
+ arr = "".join("[%d]" % d for d in dims)
+ sep = " "
+ bits = " : %d" % fd["bitfield"] if "bitfield" in fd else ""
+ return "%s%s%s%s%s" % (s, sep, fd["name"], arr, bits)
+
+
+def c_supported(f, model):
+ """C can bind everything except a variadic without a V twin."""
+ if f.get("variadic") and not f.get("vfunc"):
+ return False
+ return True
+
+
+def emit_c(api, model):
+ H = []
+ w = H.append
+ w("// cimgui.h: the C API of Dear ImGui %s (as vendored in bindings/imgui/extern/imgui)." % api["version"])
+ w("// " + GEN_NOTE)
+ w("//")
+ w("// Naming: ImGui::Button -> ImGui_Button(label) (required arguments) and")
+ w("// ImGui_ButtonEx(label, size) (all arguments: C has no default arguments).")
+ w("// Methods take the object first: ImDrawList_AddLine(draw_list, p1, p2, col).")
+ w("// Overloads get a suffix from the differing parameter types: ImGui_PushIDInt, ImGui_MenuItemBoolPtr.")
+ w("// References become pointers (ImGui_GetIO() returns ImGuiIO*); const ImVec2& becomes ImVec2.")
+ w("// Constructors / destructors: X_New(...) / X_Delete(X*). Struct layouts match imgui.h")
+ w("// (checked by static_asserts in cimgui.cpp).")
+ w("//")
+ w("// SPDX-License-Identifier: MIT (Dear ImGui) / GPL-2.0-or-later (BUI)")
+ w("")
+ w("#pragma once")
+ w("#include <stdbool.h>")
+ w("#include <stddef.h>")
+ w("#include <stdint.h>")
+ w("#include <stdarg.h>")
+ w("")
+ w("#ifndef CIMGUI_API")
+ w("#define CIMGUI_API")
+ w("#endif")
+ w("")
+ w("#ifdef __cplusplus")
+ w("extern \"C\" {")
+ w("#endif")
+ w("")
+ for k, v in api["defines"].items():
+ if k.startswith(("IMGUI_", "IM_")) and k not in ("IMGUI_API",):
+ w("#ifndef %s\n#define %s %s\n#endif" % (k, k, v))
+ w("#define IM_COL32(R,G,B,A) (((ImU32)(A)<<IM_COL32_A_SHIFT) | ((ImU32)(B)<<IM_COL32_B_SHIFT) | ((ImU32)(G)<<IM_COL32_G_SHIFT) | ((ImU32)(R)<<IM_COL32_R_SHIFT))")
+ w("#define IM_COL32_WHITE IM_COL32(255,255,255,255)")
+ w("#define IM_COL32_BLACK IM_COL32(0,0,0,255)")
+ w("#define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0)")
+ w("")
+ w("// Opaque and forward-declared structs")
+ for n in api["opaque"]:
+ w("struct %s; typedef struct %s %s;" % (n, n, n))
+ for s in api["structs"]:
+ w("struct %s; typedef struct %s %s;" % (s["name"], s["name"], s["name"]))
+ w("")
+ w("// Scalar typedefs")
+ fn_typedefs = []
+ for t in api["typedefs"]:
+ if t["obsolete"]:
+ continue
+ if t["type"] == "fnptr":
+ fn_typedefs.append(t)
+ continue
+ if t["name"] in model.structs:
+ continue
+ w("typedef %s %s;" % (c_type(t["type"], model), t["name"]))
+ w("")
+ w("// Enums (values as integers; enum types are int-sized typedefs in C)")
+ for e in api["enums"]:
+ name = e["name"]
+ if name and not name.endswith("_"):
+ w("typedef %s %s;" % (e["underlying"] or "int", name))
+ tag = name if name.endswith("_") else name + "_"
+ w("enum %s {" % tag)
+ for v in e["values"]:
+ if v["obsolete"]:
+ continue
+ w(" %s = %d," % (v["name"], v["value"]))
+ w("};")
+ w("")
+ w("// Callbacks")
+ for t in fn_typedefs:
+ w("typedef %s;" % c_fnptr_decl(t["fnptr"], t["name"], model))
+ w("")
+ w("// ImVector<T>: { int Size; int Capacity; T* Data; }")
+ vecs = c_vectors(api, model)
+ for vn, inner in sorted(vecs.items()):
+ w("typedef struct %s { int Size; int Capacity; %s* Data; } %s;" % (vn, c_type(inner, model), vn))
+ for sn, (inner, cap) in sorted(c_smallstacks(api).items()):
+ w("typedef struct %s { %s LocalData[%d]; ImU16 Size; } %s;" % (sn, inner, cap, sn))
+ w("")
+ w("// Structs")
+ for n in api["struct_order"]:
+ s = model.structs[n]
+ w("struct %s {" % n)
+ lines = c_fields(s, model)
+ if not lines:
+ lines = [" char _dummy; // empty in C++"]
+ H.extend(lines)
+ w("};")
+ w("")
+ w("// Functions")
+ cur = None
+ for f in all_functions(api):
+ if f["obsolete"] or not c_supported(f, model):
+ continue
+ if f["scope"] != cur:
+ cur = f["scope"]
+ w("")
+ w("// %s" % (cur if cur == "ImGui" else "struct " + cur))
+ for cname, nargs in c_variants(f):
+ w("CIMGUI_API %s;" % c_proto(f, cname, nargs, model))
+ if f.get("ctor"):
+ pass
+ w("")
+ w("// Destructors (objects from X_New)")
+ for s in api["structs"]:
+ if s["ctors"] or s["name"] in DEFAULT_NEW:
+ w("CIMGUI_API void %s_Delete(%s* self);" % (s["name"], s["name"]))
+ w("")
+ w("// Helpers")
+ w("CIMGUI_API ImTextureRef ImTextureRef_FromID(ImTextureID tex_id);")
+ w("// sizeof() of an imgui.h struct as the C++ compiler sees it (0: unknown); for binding tests.")
+ w("CIMGUI_API size_t cImGui_SizeOf(const char* type_name);")
+ w("")
+ w("#ifdef __cplusplus")
+ w("} // extern \"C\"")
+ w("#endif")
+ OUT_C_H.parent.mkdir(parents=True, exist_ok=True)
+ OUT_C_H.write_text("\n".join(H) + "\n", encoding="utf-8", newline="\n")
+
+ C = []
+ w = C.append
+ w("// cimgui.cpp: implements cimgui.h over Dear ImGui's C++ API.")
+ w("// " + GEN_NOTE)
+ w("// SPDX-License-Identifier: MIT (Dear ImGui) / GPL-2.0-or-later (BUI)")
+ w("")
+ w("#include \"imgui.h\"")
+ w("#include <stdbool.h>")
+ w("#include <stddef.h>")
+ w("#include <stdint.h>")
+ w("#include <stdarg.h>")
+ w("#include <string.h>")
+ w("")
+ w("namespace cimgui {")
+ w("#include \"cimgui.h\"")
+ w("}")
+ w("")
+ w("template<class D, class S> static inline D cimgui_cast(const S& s)")
+ w("{")
+ w(" static_assert(sizeof(D) == sizeof(S), \"layout\");")
+ w(" alignas(D) unsigned char buf[sizeof(D)];")
+ w(" memcpy(buf, &s, sizeof(D));")
+ w(" return *reinterpret_cast<D*>(buf);")
+ w("}")
+ w("")
+ w("// Layout checks: the C structs must match the C++ ones")
+ for n in api["struct_order"]:
+ s = model.structs[n]
+ if not s["fields"]:
+ continue
+ w("static_assert(sizeof(::%s) == sizeof(cimgui::%s), \"%s size\");" % (n, n, n))
+ for fd in s["fields"]:
+ group = fd["union"] if fd["type"] == "union" else [fd]
+ for g in group:
+ if "bitfield" in g:
+ continue
+ w("static_assert(offsetof(::%s, %s) == offsetof(cimgui::%s, %s), \"%s.%s\");" % (n, g["name"], n, g["name"], n, g["name"]))
+ w("")
+ w("namespace cimgui {")
+ w("extern \"C\" {")
+ w("")
+ for f in all_functions(api):
+ if f["obsolete"] or not c_supported(f, model):
+ continue
+ for cname, nargs in c_variants(f):
+ w("CIMGUI_API %s" % c_proto(f, cname, nargs, model))
+ w("{")
+ C.extend(" " + l for l in c_body(f, nargs, model))
+ w("}")
+ for s in api["structs"]:
+ if s["ctors"] or s["name"] in DEFAULT_NEW:
+ w("CIMGUI_API void %s_Delete(%s* self) { IM_DELETE(reinterpret_cast<::%s*>(self)); }" % (s["name"], s["name"], s["name"]))
+ w("CIMGUI_API ImTextureRef ImTextureRef_FromID(ImTextureID tex_id) { return cimgui_cast<ImTextureRef>(::ImTextureRef(tex_id)); }")
+ w("CIMGUI_API size_t cImGui_SizeOf(const char* n)")
+ w("{")
+ for s in api["structs"]:
+ w(" if (strcmp(n, \"%s\") == 0) return sizeof(::%s);" % (s["name"], s["name"]))
+ w(" return 0;")
+ w("}")
+ w("")
+ w("} // extern \"C\"")
+ w("} // namespace cimgui")
+ OUT_C_CPP.write_text("\n".join(C) + "\n", encoding="utf-8", newline="\n")
+
+
+# structs without a declared constructor that still get X_New (value-initialized)
+DEFAULT_NEW = set()
+
+
+def nreq(f):
+ n = 0
+ for a in f["args"]:
+ if "default" in a or a["type"] == "...":
+ break
+ n += 1
+ return n
+
+
+def c_variants(f):
+ """(C name, number of C++ args passed) for each emitted C function."""
+ total = len([a for a in f["args"] if a["type"] != "..."])
+ if f.get("c_short"):
+ return [(f["c_short"], nreq(f)), (f["c_full"], total)]
+ return [(f["c_full"], total)]
+
+
+def c_proto(f, cname, nargs, model):
+ params = []
+ if f["scope"] != "ImGui" and not f.get("static") and not f.get("ctor"):
+ params.append("%s%s* self" % ("const " if f.get("const") else "", f["scope"]))
+ args = [a for a in f["args"] if a["type"] != "..."][:nargs]
+ params += [c_param_decl(a, model) for a in args]
+ if f.get("variadic"):
+ params.append("...")
+ ret = c_ret_type(f, model)
+ return "%s %s(%s)" % (c_type(ret, model), cname, ", ".join(params) or "void")
+
+
+def c_body(f, nargs, model):
+ args = [a for a in f["args"] if a["type"] != "..."][:nargs]
+ exprs = [cpp_arg_expr(a, model) for a in args]
+ if f["scope"] == "ImGui":
+ callee = "ImGui::"
+ elif f.get("ctor"):
+ callee = None
+ elif f.get("static"):
+ callee = "::%s::" % f["scope"]
+ else:
+ callee = "reinterpret_cast<%s::%s*>(self)->" % ("const " if f.get("const") else "", f["scope"])
+ if f.get("ctor"):
+ return ["return reinterpret_cast<cimgui::%s*>(IM_NEW(::%s)(%s));" % (f["scope"], f["scope"], ", ".join(exprs))]
+ if f.get("variadic"):
+ last = args[-1]["name"]
+ call = "%s%s(%s)" % (callee, f["vfunc"], ", ".join(exprs + ["args"]))
+ out = ["va_list args;", "va_start(args, %s);" % last]
+ if f["ret"] and f["ret"] != "void":
+ out.append("auto ret = %s;" % call)
+ out.append("va_end(args);")
+ out.append(cpp_ret_wrap(f, "ret", model))
+ else:
+ out.append(call + ";")
+ out.append("va_end(args);")
+ return out
+ call = "%s%s(%s)" % (callee, f["name"], ", ".join(exprs))
+ return [cpp_ret_wrap(f, call, model)]
+
+
+# ======================================================================================
+# main
+# ======================================================================================
+
+
+def main(argv):
+ api = build_api()
+ model = Model(api)
+ api_out = {k: v for k, v in api.items() if k != "enum_values"}
+ OUT_JSON.write_text(json.dumps(api_out, indent=1) + "\n", encoding="utf-8", newline="\n")
+ emit_c(api, model)
+ cov = {}
+ if "--c-only" not in argv:
+ import gen_python
+ cov["python"] = gen_python.emit(api, model, sys.modules[__name__])
+ if (HERE / "gen_rust.py").exists():
+ import gen_rust
+ cov["rust"] = gen_rust.emit(api, model, sys.modules[__name__])
+ ns = [f for f in api["functions"] if not f["obsolete"]]
+ meth = [f for s in api["structs"] for f in s["methods"] + s["ctors"] if not f["obsolete"]]
+ cov["imgui"] = {"namespace_functions": len(ns), "methods_and_ctors": len(meth),
+ "enums": len(api["enums"]), "structs": len(api["structs"]) + len(api["opaque"])}
+ cov["c"] = {"namespace_functions": sum(1 for f in ns if c_supported(f, model)),
+ "methods_and_ctors": sum(1 for f in meth if c_supported(f, model)),
+ "missing": [f["scope"] + "::" + f["name"] for f in ns + meth if not c_supported(f, model)]}
+ OUT_COVERAGE.write_text(json.dumps(cov, indent=1) + "\n", encoding="utf-8", newline="\n")
+ print(json.dumps({k: {kk: vv for kk, vv in v.items() if kk != "missing"} for k, v in cov.items()}, indent=1))
+
+
+if __name__ == "__main__":
+ sys.path.insert(0, str(HERE))
+ main(sys.argv[1:])
diff --git a/bindings/imgui/gen/gen_python.py b/bindings/imgui/gen/gen_python.py
new file mode 100644
index 0000000..fb6712f
--- /dev/null
+++ b/bindings/imgui/gen/gen_python.py
@@ -0,0 +1,564 @@
+"""Python emitter of gen.py: bindings/python/src/buiimgui_gen.inc (C++, CPython API).
+
+Each imgui function becomes a pyimgui-style snake_case function: in/out pointers are
+arguments whose new values come back after the return value as a tuple
+(`changed, value = imgui.slider_float("x", value, 0, 1)`), ImVec2/ImVec4 are tuples,
+`fmt, ...` functions take one str, lists replace (pointer, count) pairs, structs are
+wrapper objects with snake_case (and original) field names. Overloads share one name that
+tries them in order, and each also has its own name (push_id_int...).
+
+SPDX-License-Identifier: GPL-2.0-or-later
+"""
+
+from __future__ import annotations
+
+import keyword
+import re
+
+PY_KEYWORDS = set(keyword.kwlist) | {"print", "exec"}
+STRUCT_PREFIX_SKIP = ()
+
+
+class Unsupported(Exception):
+ pass
+
+
+def count_param(a):
+ n = a["name"]
+ return a["type"] in ("int", "size_t") and ("count" in n or n.startswith("num_") or n in ("size",))
+
+
+def classify(f, model, g):
+ """-> list of (param, kind, extra) ; raises Unsupported."""
+ args = f["args"]
+ out = []
+ skip = set()
+ has_cb = any(a["type"] == "ImGuiInputTextCallback" for a in args)
+ for k, a in enumerate(args):
+ if k in skip:
+ continue
+ t = a["type"]
+ d = "default" in a
+ if t == "...":
+ out.append((a, "varargs", None))
+ continue
+ if t == "fnptr" or t == "va_list":
+ if d:
+ out.append((a, "hidden", None))
+ continue
+ raise Unsupported("callback")
+ c = g.parse_ctype(t)
+ base = c["base"]
+ sk = model.scalar_kind(base)
+ is_scalar = sk is not None
+ if model.typedefs.get(base, {}).get("type") == "fnptr":
+ if d:
+ out.append((a, "hidden", None))
+ continue
+ raise Unsupported("callback typedef")
+ nxt = args[k + 1] if k + 1 < len(args) else None
+ if a.get("array") is not None:
+ arr = a["array"]
+ if arr == "":
+ # const char* const items[] + int items_count
+ if nxt is not None and count_param(nxt):
+ elem = t.replace(" const", "").strip() if t.endswith("const") else t
+ out.append((a, "seq", {"elem": elem.replace("const char*", "const char*")}))
+ skip.add(k + 1)
+ out.append((nxt, "count", {"of": a["name"]}))
+ continue
+ raise Unsupported("unsized array")
+ if (is_scalar or base in ("ImVec2", "ImVec4")) and not c["ptr"]:
+ out.append((a, "array_in" if c["const"] else "array", {"n": g.eval_dim(arr, model)}))
+ continue
+ raise Unsupported("array of " + t)
+ if c["ref"]:
+ if c["ptr"]:
+ raise Unsupported("ref to pointer")
+ if c["const"] and (is_scalar or base in g.VALUE_STRUCTS):
+ out.append((a, "value", None))
+ continue
+ if is_scalar and not c["const"]:
+ out.append((a, "out", None))
+ continue
+ if model.is_struct(base):
+ out.append((a, "structref", None))
+ continue
+ raise Unsupported("ref " + t)
+ if not c["ptr"]:
+ if is_scalar or base in g.VALUE_STRUCTS or base in model.structs:
+ out.append((a, "value", None))
+ continue
+ raise Unsupported("value " + t)
+ if len(c["ptr"]) == 1:
+ if base == "char" and c["const"]:
+ if a["name"] == "fmt" and k + 1 < len(args) and args[k + 1]["type"] == "...":
+ out.append((a, "fmt", None))
+ else:
+ out.append((a, "str", None))
+ continue
+ if base == "char" and not c["const"]:
+ if nxt is not None and nxt["type"] == "size_t" and has_cb:
+ out.append((a, "buf", None))
+ skip.add(k + 1)
+ out.append((nxt, "bufsize", {"of": a["name"]}))
+ continue
+ raise Unsupported("char buffer")
+ if base == "void":
+ if c["const"] and nxt is not None and nxt["type"] == "size_t":
+ out.append((a, "bytes", None))
+ skip.add(k + 1)
+ out.append((nxt, "bytesize", {"of": a["name"]}))
+ continue
+ if d:
+ out.append((a, "hidden", None))
+ continue
+ raise Unsupported("void*")
+ if is_scalar or base in ("ImVec2", "ImVec4"):
+ if c["const"]:
+ if nxt is not None and count_param(nxt):
+ out.append((a, "seq", {"elem": base}))
+ skip.add(k + 1)
+ out.append((nxt, "count", {"of": a["name"]}))
+ continue
+ if d:
+ out.append((a, "hidden", None))
+ continue
+ raise Unsupported("const scalar pointer")
+ out.append((a, "inout", None))
+ continue
+ if model.is_struct(base):
+ out.append((a, "structptr", None))
+ continue
+ raise Unsupported("pointer " + t)
+ if d:
+ out.append((a, "hidden", None))
+ continue
+ raise Unsupported("type " + t)
+ return out
+
+
+def ret_kind(f, model, g):
+ t = f["ret"]
+ if f.get("ctor"):
+ return "ctor"
+ if not t or t == "void":
+ return "void"
+ c = g.parse_ctype(t)
+ base = c["base"]
+ sk = model.scalar_kind(base)
+ if c["ref"]:
+ if model.is_struct(base) and not c["ptr"]:
+ return "structref"
+ if sk and not c["ptr"]:
+ return "value"
+ raise Unsupported("ret ref")
+ if not c["ptr"]:
+ if sk or base in ("ImVec2", "ImVec4"):
+ return "value"
+ if base in model.structs:
+ return "structval"
+ raise Unsupported("ret " + t)
+ if len(c["ptr"]) == 1:
+ if base == "char":
+ return "str"
+ if base == "void":
+ return "voidptr"
+ if model.is_struct(base) or sk:
+ return "ptr"
+ if len(c["ptr"]) == 2 and base == "void":
+ return "voidptr"
+ raise Unsupported("ret " + t)
+
+
+def local_type(t):
+ t = t.strip()
+ if t.endswith("&"):
+ t = t[:-1].strip()
+ if t.startswith("const ") and "*" not in t:
+ t = t[6:]
+ return t
+
+
+def pyname(n):
+ n = re.sub(r"^_+", "", n) or n
+ return n + "_" if n in PY_KEYWORDS else n
+
+
+def emit_variant(f, model, g, lines, fid):
+ """Emit one C++ variant function; returns (python kw names, doc signature)."""
+ cls = classify(f, model, g)
+ rk = ret_kind(f, model, g)
+ scope = f["scope"]
+ is_method = scope != "ImGui" and not f.get("static") and not f.get("ctor")
+ exposed = [(a, k, x) for (a, k, x) in cls if k not in ("hidden", "out", "count", "bufsize", "bytesize", "varargs")]
+ names = []
+ for a, k, x in exposed:
+ names.append("text" if k == "fmt" else pyname(a["name"]))
+ # required = up to the first defaulted exposed param (inout pointers count as required unless defaulted)
+ nreq = 0
+ for a, k, x in exposed:
+ if "default" in a:
+ break
+ nreq += 1
+ w = lines.append
+ w("static PyObject* %s(PyObject* self, PyObject* args, PyObject* kw, int* argfail)" % fid)
+ w("{")
+ w(" (void)self;")
+ if names:
+ w(" static const char* const kwl[] = { %s, nullptr };" % ", ".join('"%s"' % n for n in names))
+ w(" PyObject* o[%d] = {};" % len(names))
+ w(" if (!bi_parse(args, kw, kwl, %d, %d, o, argfail)) return nullptr;" % (len(names), nreq))
+ else:
+ w(" if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;")
+ if is_method:
+ cq = "const " if f.get("const") else ""
+ w(" %s%s* self_p = (%s%s*)((BiObj*)self)->ptr;" % (cq, scope, cq, scope))
+ w(" if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, \"NULL object\"); return nullptr; }")
+ call_args = []
+ outs = []
+ oi = 0
+ for a, k, x in cls:
+ v = "a_" + a["name"]
+ dflt = a.get("default")
+ t = a["type"]
+ if k == "varargs":
+ continue
+ if k in ("value", "str", "fmt"):
+ lt = local_type(t)
+ w(" %s %s%s;" % (lt, v, " = " + dflt if dflt is not None else "{}"))
+ w(" BI_GET(%d, %s);" % (oi, v))
+ oi += 1
+ if k == "fmt":
+ call_args.append('"%s"')
+ call_args.append(v)
+ elif k == "hidden":
+ if t == "fnptr":
+ w(" %s = %s;" % (g.c_fnptr_decl(a["fnptr"], v, model), dflt))
+ elif a.get("array") is not None:
+ raise Unsupported("hidden array")
+ else:
+ w(" %s %s = %s;" % (local_type(t) if not t.endswith("&") else t[:-1], v, dflt))
+ call_args.append(v)
+ elif k == "inout":
+ lt = local_type(t)[:-1].strip()
+ w(" %s %s_v{}; %s* %s = %s;" % (lt, v, lt, v, dflt if dflt is not None else "nullptr"))
+ w(" if (o[%d] && o[%d] != Py_None) { if (!bi_from(o[%d], %s_v)) BI_FAIL; %s = &%s_v; }" % (oi, oi, oi, v, v, v))
+ oi += 1
+ call_args.append(v)
+ outs.append("bi_opt(%s)" % v)
+ elif k == "out":
+ lt = local_type(t)
+ w(" %s %s{};" % (lt, v))
+ call_args.append(v)
+ outs.append("bi_to(%s)" % v)
+ elif k in ("array", "array_in"):
+ base = g.parse_ctype(t)["base"]
+ w(" %s %s[%d] = {};" % (base, v, x["n"]))
+ w(" BI_GET(%d, %s);" % (oi, v))
+ oi += 1
+ call_args.append(v)
+ if k == "array":
+ outs.append("bi_to(%s)" % v)
+ elif k == "seq":
+ elem = x["elem"]
+ w(" BiSeq<%s> %s;" % (elem, v))
+ w(" BI_GET(%d, %s);" % (oi, v))
+ oi += 1
+ call_args.append("%s.data()" % v)
+ elif k == "count":
+ call_args.append("(%s)a_%s.size()" % (t, x["of"]))
+ elif k == "bytes":
+ w(" BiBytes %s;" % v)
+ w(" BI_GET(%d, %s);" % (oi, v))
+ oi += 1
+ call_args.append("%s.data()" % v)
+ elif k == "bytesize":
+ call_args.append("a_%s.size()" % x["of"])
+ elif k == "buf":
+ w(" BiStrBuf %s;" % v)
+ w(" BI_GET(%d, %s);" % (oi, v))
+ oi += 1
+ call_args.append("%s.data()" % v)
+ outs.append("bi_to(%s)" % v)
+ elif k == "bufsize":
+ call_args.append("a_%s.capacity()" % x["of"])
+ elif k in ("structptr", "structref"):
+ c = g.parse_ctype(t)
+ pt = ("const " if c["const"] else "") + c["base"] + "*"
+ w(" %s %s = %s;" % (pt, v, dflt if (dflt is not None and k == "structptr") else "nullptr"))
+ w(" BI_GETP(%d, %s);" % (oi, v))
+ oi += 1
+ if k == "structref":
+ w(" if (%s == nullptr) { PyErr_SetString(PyExc_TypeError, \"%s: an object is required\"); BI_FAIL; }" % (v, a["name"]))
+ call_args.append("*" + v)
+ else:
+ call_args.append(v)
+ else:
+ raise Unsupported(k)
+ # InputText*: grow the buffer through the resize callback
+ if any(k == "buf" for a, k, x in cls):
+ for a, k, x in cls:
+ if a["type"] == "ImGuiInputTextCallback":
+ idx = cls.index((a, k, x))
+ call_args[idx_of(cls, a)] = "bi_inputtext_resize"
+ bufv = next("a_" + a["name"] for a, k, x in cls if k == "buf")
+ for a, k, x in cls:
+ if a["name"] == "user_data":
+ call_args[idx_of(cls, a)] = "&" + bufv
+ if a["name"] == "flags":
+ call_args[idx_of(cls, a)] = "(a_flags | ImGuiInputTextFlags_CallbackResize)"
+ args_s = ", ".join(call_args)
+ if scope == "ImGui":
+ call = "ImGui::%s(%s)" % (f["name"], args_s)
+ elif f.get("ctor"):
+ call = "IM_NEW(%s)(%s)" % (scope, args_s)
+ elif f.get("static"):
+ call = "%s::%s(%s)" % (scope, f["name"], args_s)
+ else:
+ call = "self_p->%s(%s)" % (f["name"], args_s)
+ if rk == "void":
+ w(" %s;" % call)
+ items = outs
+ elif rk == "ctor":
+ w(" return bi_owned(%s);" % call)
+ w("}")
+ return names, exposed
+ else:
+ if rk in ("structref",):
+ w(" auto& r = %s;" % call)
+ else:
+ w(" auto r = %s;" % call)
+ conv = {
+ "value": "bi_to(r)", "str": "bi_to((const char*)r)", "voidptr": "bi_voidptr((const void*)r)",
+ "ptr": "bi_ptr_result(r)", "structref": "bi_wrap(&r)", "structval": "bi_copy(r)",
+ }[rk]
+ items = [conv] + outs
+ if not items:
+ w(" Py_RETURN_NONE;")
+ else:
+ w(" return bi_result({ %s });" % ", ".join(items))
+ w("}")
+ return names, exposed
+
+
+def idx_of(cls, a):
+ """Index in call_args of parameter a (each classified param maps to one call arg, except varargs)."""
+ i = 0
+ for b, k, x in cls:
+ if k == "varargs":
+ continue
+ if b is a:
+ return i
+ i += 1 + (1 if k == "fmt" else 0)
+ raise KeyError
+
+
+def doc_sig(name, f, exposed, rk):
+ parts = []
+ for a, k, x in exposed:
+ n = "text" if k == "fmt" else pyname(a["name"])
+ if "default" in a:
+ parts.append("%s=%s" % (n, a["default"]))
+ elif k == "inout":
+ parts.append("%s" % n)
+ else:
+ parts.append(n)
+ return "%s(%s)" % (name, ", ".join(parts))
+
+
+def py_const_name(vname):
+ if "_" not in vname:
+ return None
+ prefix, rest = vname.split("_", 1)
+ p = re.sub(r"^ImGui|^Im", "", prefix)
+ p = re.sub(r"Flags$", "", p)
+ if not rest:
+ return None
+
+ def up(s):
+ s = re.sub(r"([A-Z]+)([A-Z][a-z])", r"\1_\2", s)
+ s = re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", s)
+ return s.upper()
+ return (up(p) + "_" + up(rest)).replace("__", "_") if p else up(rest)
+
+
+def emit(api, model, g):
+ L = []
+ w = L.append
+ w("// buiimgui_gen.inc: Dear ImGui %s for Python (included by buiimgui_module.cpp)." % api["version"])
+ w("// " + g.GEN_NOTE)
+ w("// SPDX-License-Identifier: GPL-2.0-or-later")
+ w("")
+ stats = {"namespace_functions": 0, "methods_and_ctors": 0, "missing": []}
+ total_ns = 0
+ module_defs = [] # (pyname, cfunc, doc)
+ type_methods = {} # struct -> list of (pyname, cfunc, flags, doc)
+ type_new = {}
+
+ def group_key(f):
+ return (f["scope"], "new" if f.get("ctor") else f["name"])
+
+ groups = {}
+ for f in g.all_functions(api):
+ if f["obsolete"] or f.get("va_list"):
+ continue
+ groups.setdefault(group_key(f), []).append(f)
+
+ for (scope, fname), fs in groups.items():
+ variants = [] # (cfunc id, own python name, doc)
+ for f in fs:
+ fid = "biv_" + f["c_full"]
+ body = []
+ try:
+ names, exposed = emit_variant(f, model, g, body, fid)
+ except Unsupported as e:
+ stats["missing"].append("%s::%s (%s)" % (scope, f["name"], e))
+ continue
+ L.extend(body)
+ prefix = "ImGui_" if scope == "ImGui" else scope + "_"
+ own = g.snake(f["c_base"][len(prefix):])
+ if f.get("ctor"):
+ own = g.snake(f["c_base"][len(prefix):]).replace("new", "", 1).strip("_")
+ variants.append((fid, own, f))
+ if scope == "ImGui":
+ stats["namespace_functions"] += 1
+ else:
+ stats["methods_and_ctors"] += 1
+ if not variants:
+ continue
+ base = g.snake(fname) if fname != "new" else "new"
+ rk_doc = []
+ for fid, own, f in variants:
+ try:
+ cls = classify(f, model, g)
+ exposed = [(a, k, x) for (a, k, x) in cls if k not in ("hidden", "out", "count", "bufsize", "bytesize", "varargs")]
+ rk_doc.append(doc_sig(base, f, exposed, ret_kind(f, model, g)) + " -> " + ("%s::%s" % (scope, f["name"]) if scope != "ImGui" else "ImGui::" + f["name"]))
+ except Unsupported:
+ pass
+ doc = "\\n".join(rk_doc).replace('"', '\\"')
+ disp = "bid_%s_%s" % (scope, base)
+ is_static = fs[0].get("static")
+ if fname == "new":
+ w("static PyObject* %s(PyTypeObject*, PyObject* args, PyObject* kw)" % disp)
+ else:
+ w("static PyObject* %s(PyObject* self, PyObject* args, PyObject* kw)" % disp)
+ w("{")
+ self_expr = "nullptr" if fname == "new" else "self"
+ if len(variants) == 1:
+ w(" return bi_call1(%s, %s, args, kw);" % (variants[0][0], self_expr))
+ else:
+ w(" static const BiVariant v[] = { %s };" % ", ".join(v[0] for v in variants))
+ w(" return bi_dispatch(%s, args, kw, v, %d);" % (self_expr, len(variants)))
+ w("}")
+ if fname == "new":
+ type_new[scope] = disp
+ continue
+ entries = [(base, disp, doc)]
+ if len(variants) > 1:
+ for fid, own, f in variants:
+ if own != base:
+ one = "bid1_" + f["c_full"]
+ w("static PyObject* %s(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(%s, self, args, kw); }" % (one, fid))
+ entries.append((own, one, doc))
+ if scope == "ImGui":
+ module_defs.extend(entries)
+ else:
+ for e in entries:
+ type_methods.setdefault(scope, []).append(e + (is_static,))
+
+ # module method table
+ w("")
+ w("static PyMethodDef bi_module_methods_gen[] = {")
+ seen = set()
+ for n, fn, doc in module_defs:
+ if n in seen:
+ continue
+ seen.add(n)
+ w(' { "%s", (PyCFunction)(void (*)(void))%s, METH_VARARGS | METH_KEYWORDS, "%s" },' % (n, fn, doc))
+ w(" { nullptr, nullptr, 0, nullptr },")
+ w("};")
+ stats["python_names"] = len(seen)
+
+ # struct types
+ field_tables = set()
+ all_types = list(api["opaque"]) + [s["name"] for s in api["structs"] if s["name"] not in ("ImVec2", "ImVec4")]
+ for name in all_types:
+ st = model.structs.get(name)
+ mnames = set()
+ if name in type_methods:
+ w("static PyMethodDef bi_methods_%s[] = {" % name)
+ for n, fn, doc, is_static in type_methods[name]:
+ if n in mnames:
+ continue
+ mnames.add(n)
+ flags = "METH_VARARGS | METH_KEYWORDS" + (" | METH_STATIC" if is_static else "")
+ w(' { "%s", (PyCFunction)(void (*)(void))%s, %s, "%s" },' % (n, fn, flags, doc))
+ w(" { nullptr, nullptr, 0, nullptr },")
+ w("};")
+ fields = []
+ if st:
+ for fd in st["fields"]:
+ group = fd["union"] if fd["type"] == "union" else [fd]
+ for gf in group:
+ if "bitfield" in gf or gf["type"] == "fnptr":
+ continue
+ for n in dict.fromkeys([g.snake(gf["name"]).lstrip("_") if not gf["name"].startswith("_") else "_" + g.snake(gf["name"]).lstrip("_"), gf["name"]]):
+ if n in mnames or n == "address":
+ continue
+ fields.append('BI_FIELD(%s, %s, "%s")' % (name, gf["name"], n))
+ if fields:
+ field_tables.add(name)
+ w("static BiField bi_fields_%s[] = {" % name)
+ for fl in fields:
+ w(" %s," % fl)
+ w("};")
+ w("")
+ w("static BiStructInfo bi_structs[] = {")
+ for name in all_types:
+ st = model.structs.get(name)
+ has_fields = st is not None and any(True for fd in st["fields"])
+ nf = "bi_fields_%s, (int)(sizeof(bi_fields_%s) / sizeof(BiField))" % (name, name) if name in field_tables else "nullptr, 0"
+ w(' { "%s", &BiType<%s>::type, %s, %s, %s },' % (
+ name, name, ("bi_methods_" + name) if name in type_methods else "nullptr", nf,
+ ("(newfunc)" + type_new[name]) if name in type_new else "nullptr"))
+ w("};")
+
+ # constants
+ w("")
+ w("static const BiConst bi_consts[] = {")
+ used = set()
+ nconst = 0
+ for e in api["enums"]:
+ for v in e["values"]:
+ if v["obsolete"]:
+ continue
+ for n in (v["name"], py_const_name(v["name"])):
+ if n and n not in used:
+ used.add(n)
+ w(' { "%s", %dLL },' % (n, v["value"]))
+ nconst += 1
+ for k, v in api["defines"].items():
+ if not v.startswith('"') and k.startswith(("IMGUI_", "IM_")) and k not in used:
+ w(' { "%s", %sLL },' % (k, v))
+ used.add(k)
+ w(" { nullptr, 0 },")
+ w("};")
+ w("static const char* const bi_str_consts[][2] = {")
+ for k, v in api["defines"].items():
+ if v.startswith('"'):
+ w(' { "%s", %s },' % (k, v))
+ w(" { nullptr, nullptr },")
+ w("};")
+ g.OUT_PY.write_text("\n".join(L) + "\n", encoding="utf-8", newline="\n")
+ stats["constants"] = nconst
+ return stats
+
+
+def _has_py_fields(st):
+ for fd in st["fields"]:
+ group = fd["union"] if fd["type"] == "union" else [fd]
+ for gf in group:
+ if "bitfield" not in gf and gf["type"] != "fnptr":
+ return True
+ return False
diff --git a/bindings/imgui/gen/gen_rust.py b/bindings/imgui/gen/gen_rust.py
new file mode 100644
index 0000000..df8a97c
--- /dev/null
+++ b/bindings/imgui/gen/gen_rust.py
@@ -0,0 +1,639 @@
+"""Rust emitter of gen.py: blenderui-imgui's src/sys.rs (plain FFI over cimgui.h, no
+bindgen) and src/safe.rs (a safe layer: &str, &mut for in/out values, slices, methods on
+the structs).
+
+SPDX-License-Identifier: GPL-2.0-or-later
+"""
+
+from __future__ import annotations
+
+import re
+
+RUST_KEYWORDS = {
+ "as", "break", "const", "continue", "crate", "else", "enum", "extern", "false", "fn", "for", "if", "impl",
+ "in", "let", "loop", "match", "mod", "move", "mut", "pub", "ref", "return", "self", "Self", "static",
+ "struct", "super", "trait", "true", "type", "unsafe", "use", "where", "while", "async", "await", "dyn",
+ "abstract", "become", "box", "do", "final", "macro", "override", "priv", "typeof", "unsized", "virtual",
+ "yield", "try", "gen",
+}
+NO_RAW = {"crate", "self", "Self", "super"}
+
+BUILTIN_RS = {
+ "bool": "bool", "char": "c_char", "signed char": "i8", "unsigned char": "u8", "short": "i16",
+ "signed short": "i16", "unsigned short": "u16", "int": "c_int", "signed int": "c_int",
+ "unsigned int": "c_uint", "long long": "i64", "signed long long": "i64", "unsigned long long": "u64",
+ "float": "f32", "double": "f64", "size_t": "usize", "void": "c_void", "va_list": "VaList",
+}
+
+
+class Skip(Exception):
+ pass
+
+
+def ident(n):
+ if n in NO_RAW:
+ return n + "_"
+ return "r#" + n if n in RUST_KEYWORDS else n
+
+
+def rs_base(base, model, g):
+ m = re.match(r"ImVector<(.+)>$", base)
+ if m:
+ return "ImVector<%s>" % rs_type(m.group(1).strip(), model, g)
+ m = re.match(r"ImSmallStack_<\s*(\w+)\s*,\s*(\d+)\s*>$", base)
+ if m:
+ return "ImSmallStack_%s_%s" % (m.group(1), m.group(2))
+ if base in BUILTIN_RS:
+ return BUILTIN_RS[base]
+ return base
+
+
+def rs_type(t, model, g, array_param=False):
+ """C/C++ type spelling (no refs) -> Rust type."""
+ c = g.parse_ctype(t)
+ if c["ref"]:
+ raise Skip("ref")
+ base = c["base"]
+ if base == "va_list":
+ raise Skip("va_list")
+ r = rs_base(base, model, g)
+ if not c["ptr"]:
+ return r
+ # innermost pointee constness = base const; outer ones from the pointer qualifiers
+ pointee_const = c["const"]
+ for k, pc in enumerate(c["ptr"]):
+ r = ("*const " if pointee_const else "*mut ") + r
+ pointee_const = pc
+ return r
+
+
+def rs_fnptr(fp, model, g):
+ args = []
+ for a in fp["args"]:
+ args.append(rs_param_type(a, model, g))
+ ret = fp["ret"]
+ r = "" if ret in ("void", "") else " -> " + rs_type(ret, model, g)
+ return 'Option<unsafe extern "C" fn(%s)%s>' % (", ".join(args), r)
+
+
+def rs_param_type(a, model, g):
+ if a["type"] == "fnptr":
+ return rs_fnptr(a["fnptr"], model, g)
+ t = g.c_param_type(a, model)
+ if a.get("array") is not None:
+ elem = g.parse_ctype(t)
+ # T v[N] -> pointer to T (const T v[] -> *const T)
+ return ("*const " if (elem["const"] and not elem["ptr"]) or (elem["ptr"] and t.rstrip().endswith("const")) else "*mut ") + rs_type(re.sub(r"\s*const$", "", t), model, g)
+ return rs_type(t, model, g)
+
+
+def rs_ret_type(f, model, g):
+ t = g.c_ret_type(f, model)
+ if t == "void":
+ return ""
+ return " -> " + rs_type(t, model, g)
+
+
+def enum_rust_type(e, model):
+ n = e["name"]
+ if n.endswith("_") and n[:-1] in model.typedefs:
+ return n[:-1]
+ if n and not n.endswith("_"):
+ return n
+ return "c_int"
+
+
+def const_value(v, rtype):
+ if rtype in ("u8",) or rtype == "ImGuiSortDirection":
+ return str(v)
+ if v >= 2 ** 31:
+ v -= 2 ** 32
+ return str(v)
+
+
+def field_rs(fd, model, g):
+ if fd["type"] == "fnptr":
+ return rs_fnptr(fd["fnptr"], model, g)
+ t = rs_type(fd["type"], model, g)
+ for d in reversed(g.array_dims(fd, model)):
+ t = "[%s; %d]" % (t, d)
+ return t
+
+
+def emit_struct(s, model, g, L, unions):
+ w = L.append
+ name = s["name"]
+ derive = {
+ "ImVec2": "#[derive(Clone, Copy, Debug, Default, PartialEq)]",
+ "ImVec4": "#[derive(Clone, Copy, Debug, Default, PartialEq)]",
+ "ImTextureRef": "#[derive(Clone, Copy, Debug)]",
+ "ImColor": "#[derive(Clone, Copy, Debug, Default, PartialEq)]",
+ }.get(name)
+ fields = []
+ bf_unit = None
+ nbf = 0
+ for fd in s["fields"]:
+ if fd["type"] == "union":
+ un = "%s__Union%d" % (name, len([u for u in unions if u[0].startswith(name + "__")]))
+ members = [(ident(m["name"]), field_rs(m, model, g)) for m in fd["union"]]
+ unions.append((un, members))
+ fields.append((ident(fd["name"].lstrip("_")), un))
+ bf_unit = None
+ continue
+ if "bitfield" in fd:
+ base = g.parse_ctype(fd["type"])["base"]
+ bits = fd["bitfield"]
+ size = {"unsigned int": 32, "int": 32, "unsigned short": 16, "unsigned char": 8}.get(base, 32)
+ if bf_unit is None or bf_unit[0] != base or bf_unit[1] + bits > size:
+ bf_unit = [base, 0]
+ fields.append(("_bitfield%d" % nbf, rs_type(base, model, g)))
+ nbf += 1
+ bf_unit[1] += bits
+ continue
+ bf_unit = None
+ fields.append((ident(fd["name"]), field_rs(fd, model, g)))
+ w("#[repr(C)]")
+ if derive:
+ w(derive)
+ w("pub struct %s {" % name)
+ if not fields:
+ w(" _empty: u8,")
+ for n, t in fields:
+ w(" pub %s: %s," % (n, t))
+ w("}")
+
+
+def rs_default(expr, rtype):
+ """A C++ default argument as a Rust expression (the few forms the safe layer needs)."""
+ e = expr.strip()
+ if e == "NULL":
+ return "core::ptr::null_mut()"
+ if e in ("true", "false"):
+ return e
+ if re.match(r"^-?\d+$", e):
+ return e
+ if re.match(r"^-?[\d.]+f?$", e):
+ return e.rstrip("f") if "." in e else e.rstrip("f") + ".0"
+ m = re.match(r"^ImVec2\((.+),(.+)\)$", e.replace(" ", ""))
+ if m:
+ vals = [rs_default(x, "f32") for x in m.groups()]
+ vals = [v if "." in v or "::" in v else v + ".0" for v in vals]
+ return "ImVec2 { x: %s, y: %s }" % tuple(vals)
+ if e == "-FLT_MIN":
+ return "-f32::MIN_POSITIVE"
+ if e == "FLT_MAX":
+ return "f32::MAX"
+ if re.match(r"^Im\w+_\w+$", e):
+ return "sys::" + e
+ raise Skip("default " + e)
+
+
+def safe_variant(f, cname, nargs, model, g, out, used_names, impl_of=None):
+ """Emit one safe wrapper for C function `cname` (taking the first nargs C++ args)."""
+ allargs = [a for a in f["args"] if a["type"] != "..."]
+ args = allargs[:nargs]
+ has_cb = any(a["type"] == "ImGuiInputTextCallback" for a in allargs)
+ buf_short = False
+ call_name = cname
+ # InputText* short variants: call the full one (resize callback) with the defaults
+ if any(g.parse_ctype(a["type"])["base"] == "char" and not g.parse_ctype(a["type"])["const"] and g.parse_ctype(a["type"])["ptr"] for a in args) and has_cb and nargs < len(allargs):
+ buf_short = True
+ call_name = f["c_full"]
+ params = [] # rust "name: Type"
+ pre = [] # statements before the call
+ cargs = [] # C call arguments
+ post = []
+ skip = set()
+ is_method = f["scope"] != "ImGui" and not f.get("static") and not f.get("ctor")
+ generics = 0
+ for k, a in enumerate(allargs):
+ if k in skip:
+ continue
+ exposed_arg = k < nargs
+ n = ident(a["name"])
+ t = a["type"]
+ dflt = a.get("default")
+ if not exposed_arg:
+ if not buf_short:
+ break
+ # defaults of a buf-short call
+ if t == "ImGuiInputTextCallback":
+ cargs.append("Some(crate::input_text_resize)")
+ elif a["name"] == "user_data":
+ cargs.append("(&mut __buf) as *mut crate::InputBuf as *mut c_void")
+ elif a["name"] == "flags":
+ cargs.append("sys::ImGuiInputTextFlags_CallbackResize")
+ else:
+ cargs.append(rs_default(dflt, ""))
+ continue
+ if t == "fnptr" or g.parse_ctype(t)["base"] == "va_list":
+ if dflt == "NULL":
+ cargs.append("None")
+ continue
+ raise Skip("callback")
+ c = g.parse_ctype(t)
+ base = c["base"]
+ sk = model.scalar_kind(base)
+ nxt = allargs[k + 1] if k + 1 < len(allargs) else None
+ if model.typedefs.get(base, {}).get("type") == "fnptr":
+ if t == "ImGuiInputTextCallback" and has_cb and any(x == "buf" for x in [p[0] for p in []]):
+ pass
+ if t == "ImGuiInputTextCallback" and "__buf" in "".join(pre):
+ cargs.append("Some(crate::input_text_resize)")
+ continue
+ if dflt == "NULL":
+ cargs.append("None")
+ continue
+ raise Skip("callback typedef")
+ if a.get("array") is not None:
+ arr = a["array"]
+ if arr == "":
+ if nxt is not None and nxt["type"] == "int" and "count" in nxt["name"] and k + 1 < nargs:
+ params.append("%s: &[&str]" % n)
+ pre.append("let __%s_c: Vec<CString> = %s.iter().map(|s| crate::cs(s)).collect();" % (a["name"], n))
+ pre.append("let __%s_p: Vec<*const c_char> = __%s_c.iter().map(|s| s.as_ptr()).collect();" % (a["name"], a["name"]))
+ cargs.append("__%s_p.as_ptr()" % a["name"])
+ cargs.append("__%s_p.len() as c_int" % a["name"])
+ skip.add(k + 1)
+ continue
+ raise Skip("unsized array")
+ elem = rs_type(re.sub(r"\s*const$", "", t), model, g)
+ N = g.eval_dim(arr, model)
+ if c["const"]:
+ params.append("%s: &[%s; %d]" % (n, elem, N))
+ cargs.append("%s.as_ptr()" % n)
+ else:
+ params.append("%s: &mut [%s; %d]" % (n, elem, N))
+ cargs.append("%s.as_mut_ptr()" % n)
+ continue
+ if c["ref"] and not c["ptr"]:
+ if c["const"] and base in ("ImVec2", "ImVec4", "ImTextureRef"):
+ params.append("%s: impl Into<%s>" % (n, base))
+ cargs.append("%s.into()" % n)
+ continue
+ if c["const"] and sk:
+ params.append("%s: %s" % (n, rs_type(base, model, g)))
+ cargs.append(n)
+ continue
+ if sk:
+ params.append("%s: &mut %s" % (n, rs_type(base, model, g)))
+ cargs.append(n)
+ continue
+ if model.is_struct(base):
+ if c["const"]:
+ params.append("%s: &%s" % (n, base))
+ cargs.append("%s as *const %s" % (n, base))
+ else:
+ params.append("%s: &mut %s" % (n, base))
+ cargs.append("%s as *mut %s" % (n, base))
+ continue
+ raise Skip("ref")
+ if not c["ptr"]:
+ if base in ("ImVec2", "ImVec4", "ImTextureRef"):
+ params.append("%s: impl Into<%s>" % (n, base))
+ cargs.append("%s.into()" % n)
+ continue
+ if sk or base in model.structs:
+ params.append("%s: %s" % (n, rs_type(base, model, g)))
+ if a["name"] == "flags" and "__buf" in "".join(pre):
+ cargs.append("%s | sys::ImGuiInputTextFlags_CallbackResize" % n)
+ else:
+ cargs.append(n)
+ continue
+ raise Skip("value")
+ if len(c["ptr"]) == 1:
+ nullable = dflt == "NULL"
+ if base == "char" and c["const"]:
+ if a["name"] == "fmt" and f.get("variadic"):
+ params.append("text: &str")
+ pre.append("let __text = crate::cs(text);")
+ cargs.append('c"%s".as_ptr()')
+ post_variadic = "__text.as_ptr()"
+ cargs.append(post_variadic)
+ continue
+ if nullable:
+ params.append("%s: Option<&str>" % n)
+ pre.append("let __%s = %s.map(crate::cs);" % (a["name"], n))
+ cargs.append("__%s.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())" % a["name"])
+ else:
+ params.append("%s: &str" % n)
+ pre.append("let __%s = crate::cs(%s);" % (a["name"], n))
+ cargs.append("__%s.as_ptr()" % a["name"])
+ continue
+ if base == "char" and not c["const"]:
+ if nxt is not None and nxt["type"] == "size_t" and has_cb:
+ params.append("%s: &mut String" % n)
+ pre.append("let mut __buf = crate::InputBuf::new(%s);" % n)
+ cargs.append("__buf.ptr()")
+ cargs.append("__buf.capacity()")
+ post.append("__buf.finish(%s);" % n)
+ skip.add(k + 1)
+ continue
+ raise Skip("char buffer")
+ if base == "void":
+ if c["const"] and nxt is not None and nxt["type"] == "size_t" and k + 1 < nargs:
+ params.append("%s: &[u8]" % n)
+ cargs.append("%s.as_ptr() as *const c_void" % n)
+ cargs.append("%s.len()" % n)
+ skip.add(k + 1)
+ continue
+ if a["name"] == "user_data" and "__buf" in "".join(pre):
+ cargs.append("(&mut __buf) as *mut crate::InputBuf as *mut c_void")
+ continue
+ if nullable:
+ cargs.append("core::ptr::null_mut()")
+ continue
+ raise Skip("void*")
+ if sk or base in ("ImVec2", "ImVec4"):
+ rt = rs_type(base, model, g)
+ if c["const"]:
+ if nxt is not None and nxt["type"] == "int" and ("count" in nxt["name"] or nxt["name"].startswith("num_")) and k + 1 < nargs:
+ params.append("%s: &[%s]" % (n, rt))
+ cargs.append("%s.as_ptr()" % n)
+ cargs.append("%s.len() as c_int" % n)
+ skip.add(k + 1)
+ continue
+ if nullable:
+ params.append("%s: Option<&%s>" % (n, rt))
+ cargs.append("%s.map_or(core::ptr::null(), |r| r as *const %s)" % (n, rt))
+ continue
+ raise Skip("const scalar ptr")
+ if nullable:
+ params.append("%s: Option<&mut %s>" % (n, rt))
+ cargs.append("%s.map_or(core::ptr::null_mut(), |r| r as *mut %s)" % (n, rt))
+ else:
+ params.append("%s: &mut %s" % (n, rt))
+ cargs.append(n)
+ continue
+ if model.is_struct(base):
+ if c["const"]:
+ if nullable:
+ params.append("%s: Option<&%s>" % (n, base))
+ cargs.append("%s.map_or(core::ptr::null(), |r| r as *const %s)" % (n, base))
+ else:
+ params.append("%s: &%s" % (n, base))
+ cargs.append("%s as *const %s" % (n, base))
+ else:
+ if nullable:
+ params.append("%s: Option<&mut %s>" % (n, base))
+ cargs.append("%s.map_or(core::ptr::null_mut(), |r| r as *mut %s)" % (n, base))
+ else:
+ params.append("%s: &mut %s" % (n, base))
+ cargs.append("%s as *mut %s" % (n, base))
+ continue
+ if dflt == "NULL":
+ cargs.append("core::ptr::null_mut()")
+ continue
+ raise Skip("type " + t)
+ # return
+ rt = f["ret"]
+ if f.get("ctor"):
+ ret_s = " -> crate::Owned<%s>" % f["scope"]
+ wrap = "crate::Owned::from_raw(%s)"
+ elif not rt or rt == "void":
+ ret_s, wrap = "", "%s"
+ else:
+ c = g.parse_ctype(rt)
+ base = c["base"]
+ sk = model.scalar_kind(base)
+ if c["ref"] and not c["ptr"]:
+ if model.is_struct(base):
+ ret_s = " -> &'static %s%s" % ("" if c["const"] else "mut ", base)
+ wrap = "&%s*%%s" % ("" if c["const"] else "mut ")
+ else:
+ raise Skip("ret ref")
+ elif not c["ptr"]:
+ if sk or base in ("ImVec2", "ImVec4") or base in model.structs:
+ ret_s = " -> " + rs_type(base, model, g)
+ wrap = "%s"
+ else:
+ raise Skip("ret")
+ elif len(c["ptr"]) == 1 and base == "char":
+ ret_s = " -> &'static str"
+ wrap = "crate::from_cstr(%s)"
+ elif len(c["ptr"]) == 1 and model.is_struct(base):
+ ret_s = " -> Option<&'static %s%s>" % ("" if c["const"] else "mut ", base)
+ wrap = "%s.%s()" % ("%s", "as_ref" if c["const"] else "as_mut")
+ else:
+ ret_s = " -> " + rs_type(g.c_ret_type(f, model), model, g)
+ wrap = "%s"
+ # name
+ if impl_of:
+ prefix = impl_of + "_"
+ rname = g.snake(cname[len(prefix):])
+ if f.get("ctor"):
+ rname = rname.replace("new", "new", 1)
+ else:
+ rname = g.snake(cname[len("ImGui_"):])
+ rname = ident(rname)
+ if rname in used_names:
+ raise Skip("name clash " + rname)
+ used_names.add(rname)
+ self_p = []
+ if is_method:
+ if f.get("const"):
+ self_p = ["&self"]
+ cargs.insert(0, "self as *const Self")
+ else:
+ self_p = ["&mut self"]
+ cargs.insert(0, "self as *mut Self")
+ call = "sys::%s(%s)" % (call_name, ", ".join(cargs))
+ body = []
+ body.extend(pre)
+ if post:
+ body.append("let __r = unsafe { %s };" % call)
+ body.extend(post)
+ body.append(wrap % "__r" if "%s" in wrap else "__r")
+ else:
+ body.append("unsafe { %s }" % (wrap % call))
+ doc = "%s::%s" % (f["scope"], f["name"]) if f["scope"] != "ImGui" else "ImGui::" + f["name"]
+ vis = "pub fn"
+ out.append(" /// `%s`" % doc if impl_of else "/// `%s`" % doc)
+ ind = " " if impl_of else ""
+ sig = ", ".join(self_p + params)
+ out.append("%s#[allow(clippy::too_many_arguments, unused_unsafe)]" % ind)
+ out.append("%s%s %s(%s)%s {" % (ind, vis, rname, sig, ret_s))
+ for b in body:
+ out.append(ind + " " + b)
+ out.append(ind + "}")
+ return rname
+
+
+def emit(api, model, g):
+ S = []
+ w = S.append
+ w("//! Raw FFI to Dear ImGui %s through its C API (bindings/imgui/c/cimgui.h)." % api["version"])
+ w("//! " + g.GEN_NOTE)
+ w("#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals, dead_code, clippy::all, improper_ctypes)]")
+ w("")
+ w("use core::ffi::{c_char, c_int, c_uint, c_void};")
+ w("")
+ w("/// `va_list` functions (`ImGui_TextV`...) are not declared: use the variadic ones.")
+ w("pub type VaList = *mut c_void;")
+ w("")
+ w("#[repr(C)]")
+ w("pub struct ImVector<T> {")
+ w(" pub Size: c_int,")
+ w(" pub Capacity: c_int,")
+ w(" pub Data: *mut T,")
+ w("}")
+ w("impl<T> ImVector<T> {")
+ w(" /// The elements (empty when Data is null).")
+ w(" pub fn as_slice(&self) -> &[T] {")
+ w(" if self.Data.is_null() || self.Size <= 0 { &[] } else { unsafe { core::slice::from_raw_parts(self.Data, self.Size as usize) } }")
+ w(" }")
+ w("}")
+ w("")
+ # typedefs
+ emitted = set()
+ for t in api["typedefs"]:
+ if t["obsolete"] or t["name"] in model.structs:
+ continue
+ if t["type"] == "fnptr":
+ w("pub type %s = %s;" % (t["name"], rs_fnptr(t["fnptr"], model, g)))
+ else:
+ w("pub type %s = %s;" % (t["name"], rs_type(t["type"], model, g)))
+ emitted.add(t["name"])
+ for e in api["enums"]:
+ n = e["name"]
+ if n and not n.endswith("_") and n not in emitted:
+ w("pub type %s = %s;" % (n, BUILTIN_RS.get(e["underlying"] or "int", e["underlying"] or "c_int")))
+ emitted.add(n)
+ w("")
+ nconst = 0
+ for e in api["enums"]:
+ rt = enum_rust_type(e, model)
+ for v in e["values"]:
+ if v["obsolete"]:
+ continue
+ w("pub const %s: %s = %s;" % (v["name"], rt, const_value(v["value"], rt)))
+ nconst += 1
+ for k, v in api["defines"].items():
+ if k.startswith(("IMGUI_", "IM_")):
+ if v.startswith('"'):
+ w("pub const %s: &core::ffi::CStr = c%s;" % (k, v))
+ else:
+ w("pub const %s: i64 = %s;" % (k, v))
+ w("")
+ for n in api["opaque"]:
+ w("#[repr(C)]")
+ w("pub struct %s {" % n)
+ w(" _opaque: [u8; 0],")
+ w("}")
+ unions = []
+ for sn, (inner, cap) in sorted(g.c_smallstacks(api).items()):
+ w("#[repr(C)]")
+ w("pub struct %s {" % sn)
+ w(" pub LocalData: [%s; %d]," % (rs_type(inner, model, g), cap))
+ w(" pub Size: u16,")
+ w("}")
+ struct_lines = []
+ for s in api["structs"]:
+ emit_struct(s, model, g, struct_lines, unions)
+ for un, members in unions:
+ w("#[repr(C)]")
+ w("#[derive(Clone, Copy)]")
+ w("pub union %s {" % un)
+ for n, t in members:
+ w(" pub %s: %s," % (n, t))
+ w("}")
+ S.extend(struct_lines)
+ w("")
+ w('unsafe extern "C" {')
+ nffi = 0
+ missing = []
+ for f in g.all_functions(api):
+ if f["obsolete"] or not g.c_supported(f, model):
+ continue
+ for cname, nargs in g.c_variants(f):
+ try:
+ params = []
+ if f["scope"] != "ImGui" and not f.get("static") and not f.get("ctor"):
+ params.append("self_: %s%s" % ("*const " if f.get("const") else "*mut ", f["scope"]))
+ for a in [a for a in f["args"] if a["type"] != "..."][:nargs]:
+ params.append("%s: %s" % (ident(a["name"]), rs_param_type(a, model, g)))
+ if f.get("variadic"):
+ params.append("...")
+ line = " pub fn %s(%s)%s;" % (cname, ", ".join(params), rs_ret_type(f, model, g))
+ except Skip as e:
+ missing.append("%s (%s)" % (cname, e))
+ continue
+ w(line)
+ nffi += 1
+ for s in api["structs"]:
+ if s["ctors"]:
+ w(" pub fn %s_Delete(self_: *mut %s);" % (s["name"], s["name"]))
+ w(" pub fn ImTextureRef_FromID(tex_id: ImTextureID) -> ImTextureRef;")
+ w(" pub fn cImGui_SizeOf(type_name: *const c_char) -> usize;")
+ w("}")
+ w("")
+ w("/// Structs whose Rust size differs from C++ (`sizeof`): empty when the layouts match.")
+ w("pub fn layout_mismatches() -> Vec<(&'static str, usize, usize)> {")
+ w(" let mut bad = Vec::new();")
+ for s in api["structs"]:
+ w(' let c = unsafe { cImGui_SizeOf(c"%s".as_ptr()) };' % s["name"])
+ w(' if c != core::mem::size_of::<%s>() { bad.push(("%s", core::mem::size_of::<%s>(), c)); }' % (s["name"], s["name"], s["name"]))
+ w(" bad")
+ w("}")
+ g.OUT_RS_SYS.parent.mkdir(parents=True, exist_ok=True)
+ g.OUT_RS_SYS.write_text("\n".join(S) + "\n", encoding="utf-8", newline="\n")
+
+ # ---- safe layer
+ F = []
+ w = F.append
+ w("//! The safe layer over sys.rs: snake_case functions taking &str, &mut for in/out")
+ w("//! values, slices for (pointer, count) pairs; methods on the imgui structs.")
+ w("//! `button(label)` takes the required arguments, `button_ex(label, size)` all of them.")
+ w("//! " + g.GEN_NOTE)
+ w("#![allow(clippy::all, unused_mut, unused_variables)]")
+ w("")
+ w("use crate::sys::{self, *};")
+ w("use core::ffi::{c_char, c_int, c_uint, c_void};")
+ w("use std::ffi::CString;")
+ w("")
+ stats = {"namespace_functions": 0, "methods_and_ctors": 0, "ffi_functions": nffi, "ffi_missing": missing, "missing": []}
+ used = set()
+ ns_done = set()
+ for f in api["functions"]:
+ if f["obsolete"] or not g.c_supported(f, model) or f.get("va_list"):
+ continue
+ ok = False
+ for cname, nargs in g.c_variants(f):
+ body = []
+ try:
+ safe_variant(f, cname, nargs, model, g, body, used)
+ F.extend(body)
+ ok = True
+ except Skip as e:
+ stats["missing"].append("%s (%s)" % (cname, e))
+ if ok:
+ stats["namespace_functions"] += 1
+ impls = {}
+ for s in api["structs"]:
+ used_m = set()
+ body_all = []
+ for f in s["ctors"] + s["methods"]:
+ if f["obsolete"] or not g.c_supported(f, model) or f.get("va_list"):
+ continue
+ ok = False
+ for cname, nargs in g.c_variants(f):
+ body = []
+ try:
+ safe_variant(f, cname, nargs, model, g, body, used_m, impl_of=s["name"])
+ body_all.extend(body)
+ ok = True
+ except Skip as e:
+ stats["missing"].append("%s (%s)" % (cname, e))
+ if ok:
+ stats["methods_and_ctors"] += 1
+ if body_all:
+ w("impl %s {" % s["name"])
+ F.extend(body_all)
+ w("}")
+ if s["ctors"]:
+ w("impl crate::Delete for %s {" % s["name"])
+ w(" unsafe fn delete(p: *mut Self) { unsafe { sys::%s_Delete(p) } }" % s["name"])
+ w("}")
+ g.OUT_RS_SAFE.write_text("\n".join(F) + "\n", encoding="utf-8", newline="\n")
+ stats["constants"] = nconst
+ return stats
diff --git a/bindings/imgui/gen/imgui_api.json b/bindings/imgui/gen/imgui_api.json
new file mode 100644
index 0000000..1401e88
--- /dev/null
+++ b/bindings/imgui/gen/imgui_api.json
@@ -0,0 +1,22797 @@
+{
+ "version": "1.93.1 WIP",
+ "defines": {
+ "IMGUI_VERSION": "\"1.93.1 WIP\"",
+ "IMGUI_VERSION_NUM": "19302",
+ "IMGUI_PAYLOAD_TYPE_COLOR_3F": "\"_COL3F\"",
+ "IMGUI_PAYLOAD_TYPE_COLOR_4F": "\"_COL4F\"",
+ "IM_UNICODE_CODEPOINT_INVALID": "0xFFFD",
+ "IM_UNICODE_CODEPOINT_MAX": "0xFFFF",
+ "IM_COL32_R_SHIFT": "0",
+ "IM_COL32_G_SHIFT": "8",
+ "IM_COL32_B_SHIFT": "16",
+ "IM_COL32_A_SHIFT": "24",
+ "IM_COL32_A_MASK": "0xFF000000",
+ "ImFontAtlasRectId_Invalid": "-1"
+ },
+ "typedefs": [
+ {
+ "name": "ImGuiID",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "ImS8",
+ "type": "signed char",
+ "obsolete": false
+ },
+ {
+ "name": "ImU8",
+ "type": "unsigned char",
+ "obsolete": false
+ },
+ {
+ "name": "ImS16",
+ "type": "signed short",
+ "obsolete": false
+ },
+ {
+ "name": "ImU16",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "ImS32",
+ "type": "signed int",
+ "obsolete": false
+ },
+ {
+ "name": "ImU32",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "ImS64",
+ "type": "signed long long",
+ "obsolete": false
+ },
+ {
+ "name": "ImU64",
+ "type": "unsigned long long",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCond",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseButton",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTableBgTarget",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImDrawFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImDrawTextFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImFontFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImFontAtlasFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiBackendFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiButtonFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiChildFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiColorEditFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiConfigFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiComboFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDragDropFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiFocusedFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiHoveredFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiInputFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiInputTextFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiItemFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKeyChord",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiListClipperFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiPopupFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMultiSelectFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiSelectableFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiSliderFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTabBarFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTabItemFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTableFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTableColumnFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTableRowFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiTreeNodeFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiViewportFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiWindowFlags",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImWchar32",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "ImWchar16",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "ImWchar",
+ "type": "ImWchar16",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiSelectionUserData",
+ "type": "ImS64",
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiInputTextCallback",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "int",
+ "args": [
+ {
+ "name": "data",
+ "type": "ImGuiInputTextCallbackData*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiSizeCallback",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "data",
+ "type": "ImGuiSizeCallbackData*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMemAllocFunc",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void*",
+ "args": [
+ {
+ "name": "sz",
+ "type": "size_t"
+ },
+ {
+ "name": "user_data",
+ "type": "void*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMemFreeFunc",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "ptr",
+ "type": "void*"
+ },
+ {
+ "name": "user_data",
+ "type": "void*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureID",
+ "type": "ImU64",
+ "obsolete": false
+ },
+ {
+ "name": "ImDrawIdx",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "ImDrawCallback",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "parent_list",
+ "type": "const ImDrawList*"
+ },
+ {
+ "name": "cmd",
+ "type": "const ImDrawCmd*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "ImFontAtlasRectId",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ImDrawListFlags",
+ "type": "ImDrawFlags",
+ "obsolete": true
+ },
+ {
+ "name": "ImFontAtlasCustomRect",
+ "type": "ImFontAtlasRect",
+ "obsolete": true
+ }
+ ],
+ "enums": [
+ {
+ "name": "ImGuiWindowFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiWindowFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoTitleBar",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoResize",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoMove",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoScrollbar",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoScrollWithMouse",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoCollapse",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiWindowFlags_AlwaysAutoResize",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoBackground",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoSavedSettings",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoMouseInputs",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiWindowFlags_MenuBar",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiWindowFlags_HorizontalScrollbar",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoFocusOnAppearing",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoBringToFrontOnFocus",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiWindowFlags_AlwaysVerticalScrollbar",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiWindowFlags_AlwaysHorizontalScrollbar",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoNavInputs",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoNavFocus",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiWindowFlags_UnsavedDocument",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoNav",
+ "value": 196608,
+ "obsolete": false,
+ "expr": "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoDecoration",
+ "value": 43,
+ "obsolete": false,
+ "expr": "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse"
+ },
+ {
+ "name": "ImGuiWindowFlags_NoInputs",
+ "value": 197120,
+ "obsolete": false,
+ "expr": "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus"
+ },
+ {
+ "name": "ImGuiWindowFlags_ChildWindow",
+ "value": 16777216,
+ "obsolete": false,
+ "expr": "1 << 24"
+ },
+ {
+ "name": "ImGuiWindowFlags_Tooltip",
+ "value": 33554432,
+ "obsolete": false,
+ "expr": "1 << 25"
+ },
+ {
+ "name": "ImGuiWindowFlags_Popup",
+ "value": 67108864,
+ "obsolete": false,
+ "expr": "1 << 26"
+ },
+ {
+ "name": "ImGuiWindowFlags_Modal",
+ "value": 134217728,
+ "obsolete": false,
+ "expr": "1 << 27"
+ },
+ {
+ "name": "ImGuiWindowFlags_ChildMenu",
+ "value": 268435456,
+ "obsolete": false,
+ "expr": "1 << 28"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiChildFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiChildFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiChildFlags_Borders",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiChildFlags_AlwaysUseWindowPadding",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiChildFlags_ResizeX",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiChildFlags_ResizeY",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiChildFlags_AutoResizeX",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiChildFlags_AutoResizeY",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiChildFlags_AlwaysAutoResize",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiChildFlags_FrameStyle",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiChildFlags_NavFlattened",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiItemFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiItemFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiItemFlags_NoTabStop",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiItemFlags_NoNav",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiItemFlags_NoNavDefaultFocus",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiItemFlags_ButtonRepeat",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiItemFlags_AutoClosePopups",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiItemFlags_AllowDuplicateId",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiItemFlags_Disabled",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiItemFlags_LiveEditOnInputText",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiItemFlags_LiveEditOnInputScalar",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiItemFlags_LiveEditOnInput",
+ "value": 384,
+ "obsolete": false,
+ "expr": "ImGuiItemFlags_LiveEditOnInputText | ImGuiItemFlags_LiveEditOnInputScalar"
+ },
+ {
+ "name": "ImGuiItemFlags_MixedValue",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiInputTextFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiInputTextFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CharsDecimal",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CharsHexadecimal",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CharsScientific",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CharsUppercase",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CharsNoBlank",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiInputTextFlags_AllowTabInput",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiInputTextFlags_EnterReturnsTrue",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiInputTextFlags_EscapeClearsAll",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CtrlEnterForNewLine",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiInputTextFlags_ReadOnly",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiInputTextFlags_Password",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiInputTextFlags_AlwaysOverwrite",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiInputTextFlags_AutoSelectAll",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiInputTextFlags_ParseEmptyRefVal",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiInputTextFlags_DisplayEmptyRefVal",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiInputTextFlags_NoHorizontalScroll",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiInputTextFlags_NoUndoRedo",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiInputTextFlags_ElideLeft",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackCompletion",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackHistory",
+ "value": 524288,
+ "obsolete": false,
+ "expr": "1 << 19"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackAlways",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackCharFilter",
+ "value": 2097152,
+ "obsolete": false,
+ "expr": "1 << 21"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackResize",
+ "value": 4194304,
+ "obsolete": false,
+ "expr": "1 << 22"
+ },
+ {
+ "name": "ImGuiInputTextFlags_CallbackEdit",
+ "value": 8388608,
+ "obsolete": false,
+ "expr": "1 << 23"
+ },
+ {
+ "name": "ImGuiInputTextFlags_WordWrap",
+ "value": 16777216,
+ "obsolete": false,
+ "expr": "1 << 24"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTreeNodeFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_Selected",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_Framed",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_AllowOverlap",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_NoTreePushOnOpen",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_NoAutoOpenOnLog",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_DefaultOpen",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_OpenOnDoubleClick",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_OpenOnArrow",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_Leaf",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_Bullet",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_FramePadding",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_SpanAvailWidth",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_SpanFullWidth",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_SpanLabelWidth",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_SpanAllColumns",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_LabelSpanAllColumns",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_NavLeftJumpsToParent",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_CollapsingHeader",
+ "value": 26,
+ "obsolete": false,
+ "expr": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_DrawLinesNone",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_DrawLinesFull",
+ "value": 524288,
+ "obsolete": false,
+ "expr": "1 << 19"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_DrawLinesToNodes",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere",
+ "value": 131072,
+ "obsolete": true,
+ "expr": "ImGuiTreeNodeFlags_NavLeftJumpsToParent"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiPopupFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiPopupFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiPopupFlags_MouseButtonLeft",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiPopupFlags_MouseButtonRight",
+ "value": 8,
+ "obsolete": false,
+ "expr": "2 << 2"
+ },
+ {
+ "name": "ImGuiPopupFlags_MouseButtonMiddle",
+ "value": 12,
+ "obsolete": false,
+ "expr": "3 << 2"
+ },
+ {
+ "name": "ImGuiPopupFlags_NoReopen",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiPopupFlags_NoOpenOverExistingPopup",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiPopupFlags_NoOpenOverItems",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiPopupFlags_AnyPopupId",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiPopupFlags_AnyPopupLevel",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiPopupFlags_AnyPopup",
+ "value": 3072,
+ "obsolete": false,
+ "expr": "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel"
+ },
+ {
+ "name": "ImGuiPopupFlags_MouseButtonShift_",
+ "value": 2,
+ "obsolete": false,
+ "expr": "2"
+ },
+ {
+ "name": "ImGuiPopupFlags_MouseButtonMask_",
+ "value": 12,
+ "obsolete": false,
+ "expr": "0x0C"
+ },
+ {
+ "name": "ImGuiPopupFlags_InvalidMask_",
+ "value": 3,
+ "obsolete": false,
+ "expr": "0x03"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiSelectableFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiSelectableFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiSelectableFlags_NoAutoClosePopups",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiSelectableFlags_SpanAllColumns",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiSelectableFlags_AllowDoubleClick",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiSelectableFlags_Disabled",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiSelectableFlags_AllowOverlap",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiSelectableFlags_Highlight",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiSelectableFlags_SelectOnNav",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiComboFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiComboFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiComboFlags_PopupAlignLeft",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiComboFlags_HeightSmall",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiComboFlags_HeightRegular",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiComboFlags_HeightLarge",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiComboFlags_HeightLargest",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiComboFlags_NoArrowButton",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiComboFlags_NoPreview",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiComboFlags_WidthFitPreview",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiComboFlags_HeightMask_",
+ "value": 30,
+ "obsolete": false,
+ "expr": "ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTabBarFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTabBarFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTabBarFlags_Reorderable",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiTabBarFlags_AutoSelectNewTabs",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiTabBarFlags_TabListPopupButton",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiTabBarFlags_NoTabListScrollingButtons",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiTabBarFlags_NoTooltip",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiTabBarFlags_DrawSelectedOverline",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyMixed",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyShrink",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyScroll",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyMask_",
+ "value": 896,
+ "obsolete": false,
+ "expr": "ImGuiTabBarFlags_FittingPolicyMixed | ImGuiTabBarFlags_FittingPolicyShrink | ImGuiTabBarFlags_FittingPolicyScroll"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyDefault_",
+ "value": 128,
+ "obsolete": false,
+ "expr": "ImGuiTabBarFlags_FittingPolicyMixed"
+ },
+ {
+ "name": "ImGuiTabBarFlags_FittingPolicyResizeDown",
+ "value": 256,
+ "obsolete": true,
+ "expr": "ImGuiTabBarFlags_FittingPolicyShrink"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTabItemFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTabItemFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTabItemFlags_UnsavedDocument",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiTabItemFlags_SetSelected",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiTabItemFlags_NoPushId",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiTabItemFlags_NoTooltip",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiTabItemFlags_NoReorder",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiTabItemFlags_Leading",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiTabItemFlags_Trailing",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiTabItemFlags_NoAssumedClosure",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiFocusedFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiFocusedFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiFocusedFlags_ChildWindows",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiFocusedFlags_RootWindow",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiFocusedFlags_AnyWindow",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiFocusedFlags_NoPopupHierarchy",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiFocusedFlags_RootAndChildWindows",
+ "value": 3,
+ "obsolete": false,
+ "expr": "ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiHoveredFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiHoveredFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiHoveredFlags_ChildWindows",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiHoveredFlags_RootWindow",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AnyWindow",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiHoveredFlags_NoPopupHierarchy",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenBlockedByPopup",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenOverlappedByItem",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenOverlappedByWindow",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenDisabled",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiHoveredFlags_NoNavOverride",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiHoveredFlags_AllowWhenOverlapped",
+ "value": 768,
+ "obsolete": false,
+ "expr": "ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow"
+ },
+ {
+ "name": "ImGuiHoveredFlags_RectOnly",
+ "value": 928,
+ "obsolete": false,
+ "expr": "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped"
+ },
+ {
+ "name": "ImGuiHoveredFlags_RootAndChildWindows",
+ "value": 3,
+ "obsolete": false,
+ "expr": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows"
+ },
+ {
+ "name": "ImGuiHoveredFlags_ForTooltip",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiHoveredFlags_Stationary",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiHoveredFlags_DelayNone",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiHoveredFlags_DelayShort",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiHoveredFlags_DelayNormal",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiHoveredFlags_NoSharedDelay",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiDragDropFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiDragDropFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiDragDropFlags_SourceNoPreviewTooltip",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiDragDropFlags_SourceNoDisableHover",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiDragDropFlags_SourceNoHoldToOpenOthers",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiDragDropFlags_SourceAllowNullID",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiDragDropFlags_SourceExtern",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiDragDropFlags_PayloadAutoExpire",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiDragDropFlags_PayloadNoCrossContext",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiDragDropFlags_PayloadNoCrossProcess",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiDragDropFlags_AcceptBeforeDelivery",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiDragDropFlags_AcceptNoDrawDefaultRect",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiDragDropFlags_AcceptNoPreviewTooltip",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiDragDropFlags_AcceptDrawAsHovered",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiDragDropFlags_AcceptPeekOnly",
+ "value": 3072,
+ "obsolete": false,
+ "expr": "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiDataType_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiDataType_S8",
+ "value": 0,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_U8",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_S16",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_U16",
+ "value": 3,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_S32",
+ "value": 4,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_U32",
+ "value": 5,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_S64",
+ "value": 6,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_U64",
+ "value": 7,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_Float",
+ "value": 8,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_Double",
+ "value": 9,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_Bool",
+ "value": 10,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_String",
+ "value": 11,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiDataType_COUNT",
+ "value": 12,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiDir",
+ "underlying": "int",
+ "values": [
+ {
+ "name": "ImGuiDir_None",
+ "value": -1,
+ "obsolete": false,
+ "expr": "- 1"
+ },
+ {
+ "name": "ImGuiDir_Left",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiDir_Right",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1"
+ },
+ {
+ "name": "ImGuiDir_Up",
+ "value": 2,
+ "obsolete": false,
+ "expr": "2"
+ },
+ {
+ "name": "ImGuiDir_Down",
+ "value": 3,
+ "obsolete": false,
+ "expr": "3"
+ },
+ {
+ "name": "ImGuiDir_COUNT",
+ "value": 4,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiSortDirection",
+ "underlying": "ImU8",
+ "values": [
+ {
+ "name": "ImGuiSortDirection_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiSortDirection_Ascending",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1"
+ },
+ {
+ "name": "ImGuiSortDirection_Descending",
+ "value": 2,
+ "obsolete": false,
+ "expr": "2"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiKey",
+ "underlying": "int",
+ "values": [
+ {
+ "name": "ImGuiKey_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiKey_NamedKey_BEGIN",
+ "value": 512,
+ "obsolete": false,
+ "expr": "512"
+ },
+ {
+ "name": "ImGuiKey_Tab",
+ "value": 512,
+ "obsolete": false,
+ "expr": "512"
+ },
+ {
+ "name": "ImGuiKey_LeftArrow",
+ "value": 513,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightArrow",
+ "value": 514,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_UpArrow",
+ "value": 515,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_DownArrow",
+ "value": 516,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_PageUp",
+ "value": 517,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_PageDown",
+ "value": 518,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Home",
+ "value": 519,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_End",
+ "value": 520,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Insert",
+ "value": 521,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Delete",
+ "value": 522,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Backspace",
+ "value": 523,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Space",
+ "value": 524,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Enter",
+ "value": 525,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Escape",
+ "value": 526,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_LeftCtrl",
+ "value": 527,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_LeftShift",
+ "value": 528,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_LeftAlt",
+ "value": 529,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_LeftSuper",
+ "value": 530,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightCtrl",
+ "value": 531,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightShift",
+ "value": 532,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightAlt",
+ "value": 533,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightSuper",
+ "value": 534,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Menu",
+ "value": 535,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_0",
+ "value": 536,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_1",
+ "value": 537,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_2",
+ "value": 538,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_3",
+ "value": 539,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_4",
+ "value": 540,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_5",
+ "value": 541,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_6",
+ "value": 542,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_7",
+ "value": 543,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_8",
+ "value": 544,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_9",
+ "value": 545,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_A",
+ "value": 546,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_B",
+ "value": 547,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_C",
+ "value": 548,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_D",
+ "value": 549,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_E",
+ "value": 550,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F",
+ "value": 551,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_G",
+ "value": 552,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_H",
+ "value": 553,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_I",
+ "value": 554,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_J",
+ "value": 555,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_K",
+ "value": 556,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_L",
+ "value": 557,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_M",
+ "value": 558,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_N",
+ "value": 559,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_O",
+ "value": 560,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_P",
+ "value": 561,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Q",
+ "value": 562,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_R",
+ "value": 563,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_S",
+ "value": 564,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_T",
+ "value": 565,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_U",
+ "value": 566,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_V",
+ "value": 567,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_W",
+ "value": 568,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_X",
+ "value": 569,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Y",
+ "value": 570,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Z",
+ "value": 571,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F1",
+ "value": 572,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F2",
+ "value": 573,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F3",
+ "value": 574,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F4",
+ "value": 575,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F5",
+ "value": 576,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F6",
+ "value": 577,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F7",
+ "value": 578,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F8",
+ "value": 579,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F9",
+ "value": 580,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F10",
+ "value": 581,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F11",
+ "value": 582,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F12",
+ "value": 583,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F13",
+ "value": 584,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F14",
+ "value": 585,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F15",
+ "value": 586,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F16",
+ "value": 587,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F17",
+ "value": 588,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F18",
+ "value": 589,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F19",
+ "value": 590,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F20",
+ "value": 591,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F21",
+ "value": 592,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F22",
+ "value": 593,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F23",
+ "value": 594,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_F24",
+ "value": 595,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Apostrophe",
+ "value": 596,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Comma",
+ "value": 597,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Minus",
+ "value": 598,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Period",
+ "value": 599,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Slash",
+ "value": 600,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Semicolon",
+ "value": 601,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Equal",
+ "value": 602,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_LeftBracket",
+ "value": 603,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Backslash",
+ "value": 604,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_RightBracket",
+ "value": 605,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GraveAccent",
+ "value": 606,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_CapsLock",
+ "value": 607,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_ScrollLock",
+ "value": 608,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_NumLock",
+ "value": 609,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_PrintScreen",
+ "value": 610,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Pause",
+ "value": 611,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad0",
+ "value": 612,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad1",
+ "value": 613,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad2",
+ "value": 614,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad3",
+ "value": 615,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad4",
+ "value": 616,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad5",
+ "value": 617,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad6",
+ "value": 618,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad7",
+ "value": 619,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad8",
+ "value": 620,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Keypad9",
+ "value": 621,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadDecimal",
+ "value": 622,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadDivide",
+ "value": 623,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadMultiply",
+ "value": 624,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadSubtract",
+ "value": 625,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadAdd",
+ "value": 626,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadEnter",
+ "value": 627,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_KeypadEqual",
+ "value": 628,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_AppBack",
+ "value": 629,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_AppForward",
+ "value": 630,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_Oem102",
+ "value": 631,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadStart",
+ "value": 632,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadBack",
+ "value": 633,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadFaceLeft",
+ "value": 634,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadFaceRight",
+ "value": 635,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadFaceUp",
+ "value": 636,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadFaceDown",
+ "value": 637,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadDpadLeft",
+ "value": 638,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadDpadRight",
+ "value": 639,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadDpadUp",
+ "value": 640,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadDpadDown",
+ "value": 641,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadL1",
+ "value": 642,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadR1",
+ "value": 643,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadL2",
+ "value": 644,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadR2",
+ "value": 645,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadL3",
+ "value": 646,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadR3",
+ "value": 647,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadLStickLeft",
+ "value": 648,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadLStickRight",
+ "value": 649,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadLStickUp",
+ "value": 650,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadLStickDown",
+ "value": 651,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadRStickLeft",
+ "value": 652,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadRStickRight",
+ "value": 653,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadRStickUp",
+ "value": 654,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_GamepadRStickDown",
+ "value": 655,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseLeft",
+ "value": 656,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseRight",
+ "value": 657,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseMiddle",
+ "value": 658,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseX1",
+ "value": 659,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseX2",
+ "value": 660,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseWheelX",
+ "value": 661,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_MouseWheelY",
+ "value": 662,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_ReservedForModCtrl",
+ "value": 663,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_ReservedForModShift",
+ "value": 664,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_ReservedForModAlt",
+ "value": 665,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_ReservedForModSuper",
+ "value": 666,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_NamedKey_END",
+ "value": 667,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiKey_NamedKey_COUNT",
+ "value": 155,
+ "obsolete": false,
+ "expr": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN"
+ },
+ {
+ "name": "ImGuiMod_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiMod_Ctrl",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiMod_Shift",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiMod_Alt",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiMod_Super",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiMod_Mask_",
+ "value": 61440,
+ "obsolete": false,
+ "expr": "0xF000"
+ },
+ {
+ "name": "ImGuiKey_COUNT",
+ "value": 667,
+ "obsolete": true,
+ "expr": "ImGuiKey_NamedKey_END"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiInputFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiInputFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiInputFlags_Repeat",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteActive",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteFocused",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteGlobal",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteAlways",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteOverFocused",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteOverActive",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteUnlessBgFocused",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiInputFlags_RouteFromRootWindow",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiInputFlags_Tooltip",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiConfigFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiConfigFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiConfigFlags_NavEnableKeyboard",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiConfigFlags_NavEnableGamepad",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiConfigFlags_NoMouse",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiConfigFlags_NoMouseCursorChange",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiConfigFlags_NoKeyboard",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiConfigFlags_IsSRGB",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiConfigFlags_IsTouchScreen",
+ "value": 2097152,
+ "obsolete": false,
+ "expr": "1 << 21"
+ },
+ {
+ "name": "ImGuiConfigFlags_NavEnableSetMousePos",
+ "value": 4,
+ "obsolete": true,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiConfigFlags_NavNoCaptureKeyboard",
+ "value": 8,
+ "obsolete": true,
+ "expr": "1 << 3"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiBackendFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiBackendFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiBackendFlags_HasGamepad",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiBackendFlags_HasMouseCursors",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiBackendFlags_HasSetMousePos",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiBackendFlags_RendererHasVtxOffset",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiBackendFlags_RendererHasTextures",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiCol_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiCol_Text",
+ "value": 0,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TextDisabled",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_WindowBg",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ChildBg",
+ "value": 3,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_PopupBg",
+ "value": 4,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_Border",
+ "value": 5,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_BorderShadow",
+ "value": 6,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_FrameBg",
+ "value": 7,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_FrameBgHovered",
+ "value": 8,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_FrameBgActive",
+ "value": 9,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TitleBg",
+ "value": 10,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TitleBgActive",
+ "value": 11,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TitleBgCollapsed",
+ "value": 12,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_MenuBarBg",
+ "value": 13,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ScrollbarBg",
+ "value": 14,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ScrollbarGrab",
+ "value": 15,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ScrollbarGrabHovered",
+ "value": 16,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ScrollbarGrabActive",
+ "value": 17,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_CheckMark",
+ "value": 18,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_CheckboxSelectedBg",
+ "value": 19,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_SliderGrab",
+ "value": 20,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_SliderGrabActive",
+ "value": 21,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_Button",
+ "value": 22,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ButtonHovered",
+ "value": 23,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ButtonActive",
+ "value": 24,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_Header",
+ "value": 25,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_HeaderHovered",
+ "value": 26,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_HeaderActive",
+ "value": 27,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_Separator",
+ "value": 28,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_SeparatorHovered",
+ "value": 29,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_SeparatorActive",
+ "value": 30,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ResizeGrip",
+ "value": 31,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ResizeGripHovered",
+ "value": 32,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ResizeGripActive",
+ "value": 33,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_InputTextCursor",
+ "value": 34,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabHovered",
+ "value": 35,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_Tab",
+ "value": 36,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabSelected",
+ "value": 37,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabSelectedOverline",
+ "value": 38,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabDimmed",
+ "value": 39,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabDimmedSelected",
+ "value": 40,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TabDimmedSelectedOverline",
+ "value": 41,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_PlotLines",
+ "value": 42,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_PlotLinesHovered",
+ "value": 43,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_PlotHistogram",
+ "value": 44,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_PlotHistogramHovered",
+ "value": 45,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TableHeaderBg",
+ "value": 46,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TableBorderStrong",
+ "value": 47,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TableBorderLight",
+ "value": 48,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TableRowBg",
+ "value": 49,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TableRowBgAlt",
+ "value": 50,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TextLink",
+ "value": 51,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TextSelectedBg",
+ "value": 52,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_TreeLines",
+ "value": 53,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_DragDropTarget",
+ "value": 54,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_DragDropTargetBg",
+ "value": 55,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_UnsavedMarker",
+ "value": 56,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_NavCursor",
+ "value": 57,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_NavWindowingHighlight",
+ "value": 58,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_NavWindowingDimBg",
+ "value": 59,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_ModalWindowDimBg",
+ "value": 60,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_COUNT",
+ "value": 61,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiCol_NavHighlight",
+ "value": 57,
+ "obsolete": true,
+ "expr": "ImGuiCol_NavCursor"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiStyleVar_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiStyleVar_Alpha",
+ "value": 0,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_DisabledAlpha",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_WindowPadding",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_WindowRounding",
+ "value": 3,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_WindowBorderSize",
+ "value": 4,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_WindowMinSize",
+ "value": 5,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_WindowTitleAlign",
+ "value": 6,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ChildRounding",
+ "value": 7,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ChildBorderSize",
+ "value": 8,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_PopupRounding",
+ "value": 9,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_PopupBorderSize",
+ "value": 10,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_FramePadding",
+ "value": 11,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_FrameRounding",
+ "value": 12,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_FrameBorderSize",
+ "value": 13,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ItemSpacing",
+ "value": 14,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ItemInnerSpacing",
+ "value": 15,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_IndentSpacing",
+ "value": 16,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_CellPadding",
+ "value": 17,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ScrollbarSize",
+ "value": 18,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ScrollbarRounding",
+ "value": 19,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ScrollbarPadding",
+ "value": 20,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_GrabMinSize",
+ "value": 21,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_GrabRounding",
+ "value": 22,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ImageRounding",
+ "value": 23,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ImageBorderSize",
+ "value": 24,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabRounding",
+ "value": 25,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabBorderSize",
+ "value": 26,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabMinWidthBase",
+ "value": 27,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabMinWidthShrink",
+ "value": 28,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabBarBorderSize",
+ "value": 29,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TabBarOverlineSize",
+ "value": 30,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TableAngledHeadersAngle",
+ "value": 31,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TableAngledHeadersTextAlign",
+ "value": 32,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TreeLinesSize",
+ "value": 33,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_TreeLinesRounding",
+ "value": 34,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_MenuItemRounding",
+ "value": 35,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SelectableRounding",
+ "value": 36,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_DragDropTargetRounding",
+ "value": 37,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_ButtonTextAlign",
+ "value": 38,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SelectableTextAlign",
+ "value": 39,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SeparatorSize",
+ "value": 40,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SeparatorTextBorderSize",
+ "value": 41,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SeparatorTextAlign",
+ "value": 42,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_SeparatorTextPadding",
+ "value": 43,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiStyleVar_COUNT",
+ "value": 44,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiButtonFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiButtonFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiButtonFlags_MouseButtonLeft",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiButtonFlags_MouseButtonRight",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiButtonFlags_MouseButtonMiddle",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiButtonFlags_MouseButtonMask_",
+ "value": 7,
+ "obsolete": false,
+ "expr": "ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle"
+ },
+ {
+ "name": "ImGuiButtonFlags_EnableNav",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiButtonFlags_AllowOverlap",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiColorEditFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiColorEditFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoAlpha",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoPicker",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoOptions",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoSmallPreview",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoInputs",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoTooltip",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoLabel",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoSidePreview",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoDragDrop",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoBorder",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiColorEditFlags_NoColorMarkers",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaOpaque",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaNoBg",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaPreviewHalf",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaBar",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiColorEditFlags_HDR",
+ "value": 524288,
+ "obsolete": false,
+ "expr": "1 << 19"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DisplayRGB",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DisplayHSV",
+ "value": 2097152,
+ "obsolete": false,
+ "expr": "1 << 21"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DisplayHex",
+ "value": 4194304,
+ "obsolete": false,
+ "expr": "1 << 22"
+ },
+ {
+ "name": "ImGuiColorEditFlags_Uint8",
+ "value": 8388608,
+ "obsolete": false,
+ "expr": "1 << 23"
+ },
+ {
+ "name": "ImGuiColorEditFlags_Float",
+ "value": 16777216,
+ "obsolete": false,
+ "expr": "1 << 24"
+ },
+ {
+ "name": "ImGuiColorEditFlags_PickerHueBar",
+ "value": 33554432,
+ "obsolete": false,
+ "expr": "1 << 25"
+ },
+ {
+ "name": "ImGuiColorEditFlags_PickerHueWheel",
+ "value": 67108864,
+ "obsolete": false,
+ "expr": "1 << 26"
+ },
+ {
+ "name": "ImGuiColorEditFlags_PickerNoRotate",
+ "value": 134217728,
+ "obsolete": false,
+ "expr": "1 << 27"
+ },
+ {
+ "name": "ImGuiColorEditFlags_InputRGB",
+ "value": 268435456,
+ "obsolete": false,
+ "expr": "1 << 28"
+ },
+ {
+ "name": "ImGuiColorEditFlags_InputHSV",
+ "value": 536870912,
+ "obsolete": false,
+ "expr": "1 << 29"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DefaultOptions_",
+ "value": 311427072,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaMask_",
+ "value": 28674,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaOpaque | ImGuiColorEditFlags_AlphaNoBg | ImGuiColorEditFlags_AlphaPreviewHalf"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DisplayMask_",
+ "value": 7340032,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex"
+ },
+ {
+ "name": "ImGuiColorEditFlags_DataTypeMask_",
+ "value": 25165824,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float"
+ },
+ {
+ "name": "ImGuiColorEditFlags_PickerMask_",
+ "value": 100663296,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar"
+ },
+ {
+ "name": "ImGuiColorEditFlags_InputMask_",
+ "value": 805306368,
+ "obsolete": false,
+ "expr": "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV"
+ },
+ {
+ "name": "ImGuiColorEditFlags_AlphaPreview",
+ "value": 0,
+ "obsolete": true,
+ "expr": "0"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiSliderFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiSliderFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiSliderFlags_Logarithmic",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiSliderFlags_NoRoundToFormat",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiSliderFlags_NoInput",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiSliderFlags_WrapAround",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiSliderFlags_ClampOnInput",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiSliderFlags_ClampZeroRange",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiSliderFlags_NoSpeedTweaks",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiSliderFlags_ColorMarkers",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiSliderFlags_AlwaysClamp",
+ "value": 1536,
+ "obsolete": false,
+ "expr": "ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange"
+ },
+ {
+ "name": "ImGuiSliderFlags_InvalidMask_",
+ "value": 1879048207,
+ "obsolete": false,
+ "expr": "0x7000000F"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiMouseButton_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiMouseButton_Left",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiMouseButton_Right",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1"
+ },
+ {
+ "name": "ImGuiMouseButton_Middle",
+ "value": 2,
+ "obsolete": false,
+ "expr": "2"
+ },
+ {
+ "name": "ImGuiMouseButton_COUNT",
+ "value": 5,
+ "obsolete": false,
+ "expr": "5"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiMouseCursor_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiMouseCursor_None",
+ "value": -1,
+ "obsolete": false,
+ "expr": "- 1"
+ },
+ {
+ "name": "ImGuiMouseCursor_Arrow",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiMouseCursor_TextInput",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_ResizeAll",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_ResizeNS",
+ "value": 3,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_ResizeEW",
+ "value": 4,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_ResizeNESW",
+ "value": 5,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_ResizeNWSE",
+ "value": 6,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_Hand",
+ "value": 7,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_Wait",
+ "value": 8,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_Progress",
+ "value": 9,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_NotAllowed",
+ "value": 10,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseCursor_COUNT",
+ "value": 11,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiMouseSource",
+ "underlying": "int",
+ "values": [
+ {
+ "name": "ImGuiMouseSource_Mouse",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiMouseSource_TouchScreen",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseSource_Pen",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiMouseSource_COUNT",
+ "value": 3,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiCond_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiCond_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiCond_Always",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiCond_Once",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiCond_FirstUseEver",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiCond_Appearing",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiTableFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTableFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTableFlags_Resizable",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiTableFlags_Reorderable",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiTableFlags_Hideable",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiTableFlags_Sortable",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiTableFlags_NoSavedSettings",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiTableFlags_ContextMenuInBody",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiTableFlags_RowBg",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersInnerH",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersOuterH",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersInnerV",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersOuterV",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersH",
+ "value": 384,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersV",
+ "value": 1536,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersInner",
+ "value": 640,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH"
+ },
+ {
+ "name": "ImGuiTableFlags_BordersOuter",
+ "value": 1280,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH"
+ },
+ {
+ "name": "ImGuiTableFlags_Borders",
+ "value": 1920,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter"
+ },
+ {
+ "name": "ImGuiTableFlags_NoBordersInBody",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiTableFlags_NoBordersInBodyUntilResize",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiTableFlags_SizingFixedFit",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiTableFlags_SizingFixedSame",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "2 << 13"
+ },
+ {
+ "name": "ImGuiTableFlags_SizingStretchProp",
+ "value": 24576,
+ "obsolete": false,
+ "expr": "3 << 13"
+ },
+ {
+ "name": "ImGuiTableFlags_SizingStretchSame",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "4 << 13"
+ },
+ {
+ "name": "ImGuiTableFlags_NoHostExtendX",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiTableFlags_NoHostExtendY",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiTableFlags_NoKeepColumnsVisible",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiTableFlags_PreciseWidths",
+ "value": 524288,
+ "obsolete": false,
+ "expr": "1 << 19"
+ },
+ {
+ "name": "ImGuiTableFlags_NoClip",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiTableFlags_PadOuterX",
+ "value": 2097152,
+ "obsolete": false,
+ "expr": "1 << 21"
+ },
+ {
+ "name": "ImGuiTableFlags_NoPadOuterX",
+ "value": 4194304,
+ "obsolete": false,
+ "expr": "1 << 22"
+ },
+ {
+ "name": "ImGuiTableFlags_NoPadInnerX",
+ "value": 8388608,
+ "obsolete": false,
+ "expr": "1 << 23"
+ },
+ {
+ "name": "ImGuiTableFlags_ScrollX",
+ "value": 16777216,
+ "obsolete": false,
+ "expr": "1 << 24"
+ },
+ {
+ "name": "ImGuiTableFlags_ScrollY",
+ "value": 33554432,
+ "obsolete": false,
+ "expr": "1 << 25"
+ },
+ {
+ "name": "ImGuiTableFlags_SortMulti",
+ "value": 67108864,
+ "obsolete": false,
+ "expr": "1 << 26"
+ },
+ {
+ "name": "ImGuiTableFlags_SortTristate",
+ "value": 134217728,
+ "obsolete": false,
+ "expr": "1 << 27"
+ },
+ {
+ "name": "ImGuiTableFlags_HighlightHoveredColumn",
+ "value": 268435456,
+ "obsolete": false,
+ "expr": "1 << 28"
+ },
+ {
+ "name": "ImGuiTableFlags_SizingMask_",
+ "value": 57344,
+ "obsolete": false,
+ "expr": "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTableColumnFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTableColumnFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_Disabled",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_DefaultHide",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_DefaultSort",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_WidthStretch",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_WidthFixed",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoResize",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoReorder",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoHide",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoClip",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoSort",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoSortAscending",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoSortDescending",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoHeaderLabel",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoHeaderWidth",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_PreferSortAscending",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_PreferSortDescending",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IndentEnable",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IndentDisable",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_AngledHeader",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "1 << 18"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IsEnabled",
+ "value": 16777216,
+ "obsolete": false,
+ "expr": "1 << 24"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IsVisible",
+ "value": 33554432,
+ "obsolete": false,
+ "expr": "1 << 25"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IsSorted",
+ "value": 67108864,
+ "obsolete": false,
+ "expr": "1 << 26"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IsHovered",
+ "value": 134217728,
+ "obsolete": false,
+ "expr": "1 << 27"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_WidthMask_",
+ "value": 24,
+ "obsolete": false,
+ "expr": "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_IndentMask_",
+ "value": 196608,
+ "obsolete": false,
+ "expr": "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_StatusMask_",
+ "value": 251658240,
+ "obsolete": false,
+ "expr": "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered"
+ },
+ {
+ "name": "ImGuiTableColumnFlags_NoDirectResize_",
+ "value": 1073741824,
+ "obsolete": false,
+ "expr": "1 << 30"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTableRowFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTableRowFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTableRowFlags_Headers",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiTableBgTarget_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiTableBgTarget_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiTableBgTarget_RowBg0",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1"
+ },
+ {
+ "name": "ImGuiTableBgTarget_RowBg1",
+ "value": 2,
+ "obsolete": false,
+ "expr": "2"
+ },
+ {
+ "name": "ImGuiTableBgTarget_CellBg",
+ "value": 3,
+ "obsolete": false,
+ "expr": "3"
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImGuiListClipperFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiListClipperFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiListClipperFlags_NoSetTableRowCounters",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiMultiSelectFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SingleSelect",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoSelectAll",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoRangeSelect",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoAutoSelect",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoAutoClear",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoAutoClearOnReselect",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_BoxSelect1d",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_BoxSelect2d",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_BoxSelectNoScroll",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_ClearOnEscape",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_ClearOnClickVoid",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_ScopeWindow",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_ScopeRect",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SelectOnAuto",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SelectOnClickAlways",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SelectOnClickRelease",
+ "value": 32768,
+ "obsolete": false,
+ "expr": "1 << 15"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NavWrapX",
+ "value": 65536,
+ "obsolete": false,
+ "expr": "1 << 16"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_NoSelectOnRightClick",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SelectOnMask_",
+ "value": 57344,
+ "obsolete": false,
+ "expr": "ImGuiMultiSelectFlags_SelectOnAuto | ImGuiMultiSelectFlags_SelectOnClickAlways | ImGuiMultiSelectFlags_SelectOnClickRelease"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_CheckboxMode_",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImGuiMultiSelectFlags_SelectOnClick",
+ "value": 8192,
+ "obsolete": true,
+ "expr": "ImGuiMultiSelectFlags_SelectOnAuto"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiSelectionRequestType",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiSelectionRequestType_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiSelectionRequestType_SetAll",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImGuiSelectionRequestType_SetRange",
+ "value": 2,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImDrawFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImDrawFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImDrawFlags_RoundTopLeft",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ },
+ {
+ "name": "ImDrawFlags_RoundTopRight",
+ "value": 32,
+ "obsolete": false,
+ "expr": "1 << 5"
+ },
+ {
+ "name": "ImDrawFlags_RoundBottomLeft",
+ "value": 64,
+ "obsolete": false,
+ "expr": "1 << 6"
+ },
+ {
+ "name": "ImDrawFlags_RoundBottomRight",
+ "value": 128,
+ "obsolete": false,
+ "expr": "1 << 7"
+ },
+ {
+ "name": "ImDrawFlags_RoundNone",
+ "value": 256,
+ "obsolete": false,
+ "expr": "1 << 8"
+ },
+ {
+ "name": "ImDrawFlags_RoundAll",
+ "value": 240,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundTopLeft | ImDrawFlags_RoundTopRight | ImDrawFlags_RoundBottomLeft | ImDrawFlags_RoundBottomRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundTop",
+ "value": 48,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundTopLeft | ImDrawFlags_RoundTopRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundBottom",
+ "value": 192,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundBottomLeft | ImDrawFlags_RoundBottomRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundLeft",
+ "value": 80,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundBottomLeft | ImDrawFlags_RoundTopLeft"
+ },
+ {
+ "name": "ImDrawFlags_RoundRight",
+ "value": 160,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundBottomRight | ImDrawFlags_RoundTopRight"
+ },
+ {
+ "name": "ImDrawFlags_Closed",
+ "value": 512,
+ "obsolete": false,
+ "expr": "1 << 9"
+ },
+ {
+ "name": "ImDrawFlags_JoinMiter",
+ "value": 1024,
+ "obsolete": false,
+ "expr": "1 << 10"
+ },
+ {
+ "name": "ImDrawFlags_CapSquare",
+ "value": 2048,
+ "obsolete": false,
+ "expr": "1 << 11"
+ },
+ {
+ "name": "ImDrawFlags_AAFill",
+ "value": 4096,
+ "obsolete": false,
+ "expr": "1 << 12"
+ },
+ {
+ "name": "ImDrawFlags_AALines",
+ "value": 8192,
+ "obsolete": false,
+ "expr": "1 << 13"
+ },
+ {
+ "name": "ImDrawFlags_AALineEnds",
+ "value": 16384,
+ "obsolete": false,
+ "expr": "1 << 14"
+ },
+ {
+ "name": "ImDrawFlags_StrokeInside",
+ "value": 131072,
+ "obsolete": false,
+ "expr": "1 << 17"
+ },
+ {
+ "name": "ImDrawFlags_StrokeCenter",
+ "value": 262144,
+ "obsolete": false,
+ "expr": "2 << 17"
+ },
+ {
+ "name": "ImDrawFlags_StrokeCenterBiased",
+ "value": 393216,
+ "obsolete": false,
+ "expr": "3 << 17"
+ },
+ {
+ "name": "ImDrawFlags_StrokeOutside",
+ "value": 524288,
+ "obsolete": false,
+ "expr": "4 << 17"
+ },
+ {
+ "name": "ImDrawFlags_StrokeLegacy",
+ "value": 917504,
+ "obsolete": false,
+ "expr": "7 << 17"
+ },
+ {
+ "name": "ImDrawFlags_TextNoPixelSnap",
+ "value": 1048576,
+ "obsolete": false,
+ "expr": "1 << 20"
+ },
+ {
+ "name": "ImDrawFlags_UseTexForRoundCorners",
+ "value": 2097152,
+ "obsolete": false,
+ "expr": "1 << 21"
+ },
+ {
+ "name": "ImDrawFlags_UseVtxOffset",
+ "value": 4194304,
+ "obsolete": false,
+ "expr": "1 << 22"
+ },
+ {
+ "name": "ImDrawFlags_AllowTexForRoundCorners_",
+ "value": 8388608,
+ "obsolete": false,
+ "expr": "1 << 23"
+ },
+ {
+ "name": "ImDrawFlags_RoundMask_",
+ "value": 496,
+ "obsolete": false,
+ "expr": "ImDrawFlags_RoundAll | ImDrawFlags_RoundNone"
+ },
+ {
+ "name": "ImDrawFlags_AllowInPushScope_",
+ "value": 8286704,
+ "obsolete": false,
+ "expr": "ImDrawFlags_AAFill | ImDrawFlags_AALines | ImDrawFlags_AALineEnds | ImDrawFlags_StrokeLegacy | ImDrawFlags_TextNoPixelSnap | ImDrawFlags_UseTexForRoundCorners | ImDrawFlags_UseVtxOffset | ImDrawFlags_RoundMask_"
+ },
+ {
+ "name": "ImDrawFlags_AllowInFrameScope_",
+ "value": 16675312,
+ "obsolete": false,
+ "expr": "ImDrawFlags_AllowInPushScope_ | ImDrawFlags_AllowTexForRoundCorners_"
+ },
+ {
+ "name": "ImDrawFlags_StrokeMask_",
+ "value": 917504,
+ "obsolete": false,
+ "expr": "0x07 << 17"
+ },
+ {
+ "name": "ImDrawFlags_InvalidMask_",
+ "value": -2147483633,
+ "obsolete": false,
+ "expr": "~ 0x7FFFFFF0"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersTopLeft",
+ "value": 16,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundTopLeft"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersTopRight",
+ "value": 32,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundTopRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersBottomLeft",
+ "value": 64,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundBottomLeft"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersBottomRight",
+ "value": 128,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundBottomRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersNone",
+ "value": 256,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundNone"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersAll",
+ "value": 240,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundAll"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersTop",
+ "value": 48,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundTop"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersBottom",
+ "value": 192,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundBottom"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersLeft",
+ "value": 80,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundLeft"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersRight",
+ "value": 160,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundRight"
+ },
+ {
+ "name": "ImDrawFlags_RoundCornersMask_",
+ "value": 496,
+ "obsolete": true,
+ "expr": "ImDrawFlags_RoundMask_"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImTextureFormat",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImTextureFormat_RGBA32",
+ "value": 0,
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureFormat_Alpha8",
+ "value": 1,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImTextureStatus",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImTextureStatus_OK",
+ "value": 0,
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureStatus_Destroyed",
+ "value": 1,
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureStatus_WantCreate",
+ "value": 2,
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureStatus_WantUpdates",
+ "value": 3,
+ "obsolete": false
+ },
+ {
+ "name": "ImTextureStatus_WantDestroy",
+ "value": 4,
+ "obsolete": false
+ }
+ ],
+ "flags": false
+ },
+ {
+ "name": "ImFontAtlasFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImFontAtlasFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImFontAtlasFlags_NoPowerOfTwoHeight",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImFontAtlasFlags_NoMouseCursors",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImFontAtlasFlags_NoBakedLines",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImFontAtlasFlags_NoBakedRoundCorners",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImFontFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImFontFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImFontFlags_NoLoadError",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImFontFlags_NoLoadGlyphs",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ },
+ {
+ "name": "ImFontFlags_LockBakedSizes",
+ "value": 8,
+ "obsolete": false,
+ "expr": "1 << 3"
+ },
+ {
+ "name": "ImFontFlags_ImplicitRefSize",
+ "value": 16,
+ "obsolete": false,
+ "expr": "1 << 4"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImGuiViewportFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImGuiViewportFlags_None",
+ "value": 0,
+ "obsolete": false,
+ "expr": "0"
+ },
+ {
+ "name": "ImGuiViewportFlags_IsPlatformWindow",
+ "value": 1,
+ "obsolete": false,
+ "expr": "1 << 0"
+ },
+ {
+ "name": "ImGuiViewportFlags_IsPlatformMonitor",
+ "value": 2,
+ "obsolete": false,
+ "expr": "1 << 1"
+ },
+ {
+ "name": "ImGuiViewportFlags_OwnedByApp",
+ "value": 4,
+ "obsolete": false,
+ "expr": "1 << 2"
+ }
+ ],
+ "flags": true
+ },
+ {
+ "name": "ImDrawListFlags_",
+ "underlying": null,
+ "values": [
+ {
+ "name": "ImDrawListFlags_None",
+ "value": 0,
+ "obsolete": true,
+ "expr": "ImDrawFlags_None"
+ },
+ {
+ "name": "ImDrawListFlags_AntiAliasedFill",
+ "value": 4096,
+ "obsolete": true,
+ "expr": "ImDrawFlags_AAFill"
+ },
+ {
+ "name": "ImDrawListFlags_AntiAliasedLines",
+ "value": 8192,
+ "obsolete": true,
+ "expr": "ImDrawFlags_AALines"
+ },
+ {
+ "name": "ImDrawListFlags_AntiAliasedLinesUseTex",
+ "value": 8192,
+ "obsolete": true,
+ "expr": "ImDrawFlags_AALines"
+ },
+ {
+ "name": "ImDrawListFlags_AllowVtxOffset",
+ "value": 4194304,
+ "obsolete": true,
+ "expr": "ImDrawFlags_UseVtxOffset"
+ },
+ {
+ "name": "ImDrawListFlags_TextNoPixelSnap",
+ "value": 1048576,
+ "obsolete": true,
+ "expr": "ImDrawFlags_TextNoPixelSnap"
+ }
+ ],
+ "flags": true
+ }
+ ],
+ "structs": [
+ {
+ "name": "ImVec2",
+ "fields": [
+ {
+ "name": "x",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "y",
+ "type": "float",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImVec2",
+ "scope": "ImVec2",
+ "ret": "ImVec2*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImVec2_New",
+ "c_full": "ImVec2_New",
+ "c_base": "ImVec2_New"
+ },
+ {
+ "name": "ImVec2",
+ "scope": "ImVec2",
+ "ret": "ImVec2*",
+ "args": [
+ {
+ "name": "_x",
+ "type": "float"
+ },
+ {
+ "name": "_y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImVec2_New",
+ "overload_of": "ImVec2_New",
+ "c_full": "ImVec2_NewFloat",
+ "c_base": "ImVec2_NewFloat"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImVec4",
+ "fields": [
+ {
+ "name": "x",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "y",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "z",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "w",
+ "type": "float",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImVec4",
+ "scope": "ImVec4",
+ "ret": "ImVec4*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImVec4_New",
+ "c_full": "ImVec4_New",
+ "c_base": "ImVec4_New"
+ },
+ {
+ "name": "ImVec4",
+ "scope": "ImVec4",
+ "ret": "ImVec4*",
+ "args": [
+ {
+ "name": "_x",
+ "type": "float"
+ },
+ {
+ "name": "_y",
+ "type": "float"
+ },
+ {
+ "name": "_z",
+ "type": "float"
+ },
+ {
+ "name": "_w",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImVec4_New",
+ "overload_of": "ImVec4_New",
+ "c_full": "ImVec4_NewFloat",
+ "c_base": "ImVec4_NewFloat"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImTextureRef",
+ "fields": [
+ {
+ "name": "_TexData",
+ "type": "ImTextureData*",
+ "obsolete": false
+ },
+ {
+ "name": "_TexID",
+ "type": "ImTextureID",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "GetTexID",
+ "scope": "ImTextureRef",
+ "ret": "ImTextureID",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImTextureRef_GetTexID",
+ "c_full": "ImTextureRef_GetTexID",
+ "c_base": "ImTextureRef_GetTexID"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImTextureRef",
+ "scope": "ImTextureRef",
+ "ret": "ImTextureRef*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImTextureRef_New",
+ "c_full": "ImTextureRef_New",
+ "c_base": "ImTextureRef_New"
+ },
+ {
+ "name": "ImTextureRef",
+ "scope": "ImTextureRef",
+ "ret": "ImTextureRef*",
+ "args": [
+ {
+ "name": "tex_id",
+ "type": "ImTextureID"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImTextureRef_New",
+ "overload_of": "ImTextureRef_New",
+ "c_full": "ImTextureRef_NewTextureID",
+ "c_base": "ImTextureRef_NewTextureID"
+ },
+ {
+ "name": "ImTextureRef",
+ "scope": "ImTextureRef",
+ "ret": "ImTextureRef*",
+ "args": [
+ {
+ "name": "tex_id",
+ "type": "void*"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiTableSortSpecs",
+ "fields": [
+ {
+ "name": "Specs",
+ "type": "const ImGuiTableColumnSortSpecs*",
+ "obsolete": false
+ },
+ {
+ "name": "SpecsCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "SpecsDirty",
+ "type": "bool",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiTableSortSpecs",
+ "scope": "ImGuiTableSortSpecs",
+ "ret": "ImGuiTableSortSpecs*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiTableSortSpecs_New",
+ "c_full": "ImGuiTableSortSpecs_New",
+ "c_base": "ImGuiTableSortSpecs_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiTableColumnSortSpecs",
+ "fields": [
+ {
+ "name": "ColumnUserID",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "ColumnIndex",
+ "type": "ImS16",
+ "obsolete": false
+ },
+ {
+ "name": "SortOrder",
+ "type": "ImS16",
+ "obsolete": false
+ },
+ {
+ "name": "SortDirection",
+ "type": "ImGuiSortDirection",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiTableColumnSortSpecs",
+ "scope": "ImGuiTableColumnSortSpecs",
+ "ret": "ImGuiTableColumnSortSpecs*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiTableColumnSortSpecs_New",
+ "c_full": "ImGuiTableColumnSortSpecs_New",
+ "c_base": "ImGuiTableColumnSortSpecs_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiStyle",
+ "fields": [
+ {
+ "name": "FontSizeBase",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FontScaleMain",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FontScaleDpi",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Alpha",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "DisabledAlpha",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "WindowPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "WindowRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "WindowBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "WindowBorderHoverPadding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "WindowMinSize",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "WindowTitleAlign",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "WindowMenuButtonPosition",
+ "type": "ImGuiDir",
+ "obsolete": false
+ },
+ {
+ "name": "ChildRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ChildBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "PopupRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "PopupBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FramePadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "FrameRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FrameBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ItemSpacing",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "ItemInnerSpacing",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "CellPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "TouchExtraPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "IndentSpacing",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ColumnsMinSpacing",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ScrollbarSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ScrollbarRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ScrollbarPadding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "GrabMinSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "GrabRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "LogSliderDeadzone",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ImageRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ImageBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabMinWidthBase",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabMinWidthShrink",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabCloseButtonMinWidthSelected",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabCloseButtonMinWidthUnselected",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabBarBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TabBarOverlineSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TableAngledHeadersAngle",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TableAngledHeadersTextAlign",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "TreeLinesFlags",
+ "type": "ImGuiTreeNodeFlags",
+ "obsolete": false
+ },
+ {
+ "name": "TreeLinesSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "TreeLinesRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MenuItemRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "SelectableRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "DragDropTargetRounding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "DragDropTargetBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "DragDropTargetPadding",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ColorMarkerSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ColorButtonPosition",
+ "type": "ImGuiDir",
+ "obsolete": false
+ },
+ {
+ "name": "ButtonTextAlign",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "SelectableTextAlign",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "InputTextCursorSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "SeparatorSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "SeparatorTextBorderSize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "SeparatorTextAlign",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "SeparatorTextPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DisplayWindowPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DisplaySafeAreaPadding",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "MouseCursorScale",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "SymbolArrowSizeFactor",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "SymbolArrowThicknessFactor",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "AntiAliasedLines",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "AntiAliasedLineEnds",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "AntiAliasedFill",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "CurveTessellationMaxError",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "CircleTessellationMaxError",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Colors",
+ "type": "ImVec4",
+ "obsolete": false,
+ "array": "ImGuiCol_COUNT"
+ },
+ {
+ "name": "HoverStationaryDelay",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "HoverDelayShort",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "HoverDelayNormal",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "HoverFlagsForTooltipMouse",
+ "type": "ImGuiHoveredFlags",
+ "obsolete": false
+ },
+ {
+ "name": "HoverFlagsForTooltipNav",
+ "type": "ImGuiHoveredFlags",
+ "obsolete": false
+ },
+ {
+ "name": "_MainScale",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "_NextFrameFontSizeBase",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "AntiAliasedLinesUseTex",
+ "type": "bool",
+ "obsolete": true
+ },
+ {
+ "name": "CurveTessellationTol",
+ "type": "float",
+ "obsolete": true
+ }
+ ],
+ "methods": [
+ {
+ "name": "ScaleAllSizes",
+ "scope": "ImGuiStyle",
+ "ret": "void",
+ "args": [
+ {
+ "name": "scale_factor",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStyle_ScaleAllSizes",
+ "c_full": "ImGuiStyle_ScaleAllSizes",
+ "c_base": "ImGuiStyle_ScaleAllSizes"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiStyle",
+ "scope": "ImGuiStyle",
+ "ret": "ImGuiStyle*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiStyle_New",
+ "c_full": "ImGuiStyle_New",
+ "c_base": "ImGuiStyle_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiKeyData",
+ "fields": [
+ {
+ "name": "Down",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "DownDuration",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "DownDurationPrev",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "AnalogValue",
+ "type": "float",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiKeyData",
+ "scope": "ImGuiKeyData",
+ "ret": "ImGuiKeyData*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImGuiKeyData_New",
+ "c_full": "ImGuiKeyData_New",
+ "c_base": "ImGuiKeyData_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiIO",
+ "fields": [
+ {
+ "name": "ConfigFlags",
+ "type": "ImGuiConfigFlags",
+ "obsolete": false
+ },
+ {
+ "name": "BackendFlags",
+ "type": "ImGuiBackendFlags",
+ "obsolete": false
+ },
+ {
+ "name": "DisplaySize",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DisplayFramebufferScale",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DeltaTime",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "IniSavingRate",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "IniFilename",
+ "type": "const char*",
+ "obsolete": false
+ },
+ {
+ "name": "LogFilename",
+ "type": "const char*",
+ "obsolete": false
+ },
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "Fonts",
+ "type": "ImFontAtlas*",
+ "obsolete": false
+ },
+ {
+ "name": "FontDefault",
+ "type": "ImFont*",
+ "obsolete": false
+ },
+ {
+ "name": "FontAllowUserScaling",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavSwapGamepadButtons",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavMoveSetMousePos",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavCaptureKeyboard",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavEscapeClearFocusItem",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavEscapeClearFocusWindow",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavCursorVisibleAuto",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigNavCursorVisibleAlways",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigMacOSXBehaviors",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigInputTrickleEventQueue",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigInputTextCursorBlink",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigInputTextEnterKeepActive",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigColorEditFlags",
+ "type": "ImGuiColorEditFlags",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDragClickToInputText",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigWindowsResizeFromEdges",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigWindowsMoveFromTitleBarOnly",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigWindowsCopyContentsWithCtrlC",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigScrollbarScrollByPage",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigIniSettingsSaveLastUsedDate",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigIniSettingsAutoDiscardMonths",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugIniSettings",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDrawCursor",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigMemoryCompactTimer",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDoubleClickTime",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDoubleClickMaxDist",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseSingleClickDelay",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDragThreshold",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "KeyRepeatDelay",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "KeyRepeatRate",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigErrorRecovery",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigErrorRecoveryEnableAssert",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigErrorRecoveryEnableDebugLog",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigErrorRecoveryEnableTooltip",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugIsDebuggerPresent",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugHighlightIdConflicts",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugHighlightIdConflictsShowItemPicker",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugBeginReturnValueOnce",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugBeginReturnValueLoop",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugIgnoreFocusLoss",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ConfigDebugDrawListDefaultsToStrokeLegacy",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "BackendPlatformName",
+ "type": "const char*",
+ "obsolete": false
+ },
+ {
+ "name": "BackendRendererName",
+ "type": "const char*",
+ "obsolete": false
+ },
+ {
+ "name": "BackendPlatformUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "BackendRendererUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "BackendLanguageUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "WantCaptureMouse",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantCaptureKeyboard",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantTextInput",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantSetMousePos",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantSaveIniSettings",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "NavActive",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "NavVisible",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "Framerate",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MetricsRenderVertices",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "MetricsRenderIndices",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "MetricsRenderWindows",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "MetricsActiveWindows",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDelta",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "Ctx",
+ "type": "ImGuiContext*",
+ "obsolete": false
+ },
+ {
+ "name": "MousePos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDown",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseWheel",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseWheelH",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MouseSource",
+ "type": "ImGuiMouseSource",
+ "obsolete": false
+ },
+ {
+ "name": "KeyCtrl",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "KeyShift",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "KeyAlt",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "KeySuper",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "KeyMods",
+ "type": "ImGuiKeyChord",
+ "obsolete": false
+ },
+ {
+ "name": "KeysData",
+ "type": "ImGuiKeyData",
+ "obsolete": false,
+ "array": "ImGuiKey_NamedKey_COUNT"
+ },
+ {
+ "name": "WantCaptureMouseUnlessPopupClose",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "MousePosPrev",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "MouseClickedPos",
+ "type": "ImVec2",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseClickedTime",
+ "type": "double",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseClicked",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseDoubleClicked",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseClickedCount",
+ "type": "ImU16",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseClickedLastCount",
+ "type": "ImU16",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseReleased",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseReleasedTime",
+ "type": "double",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseDownOwned",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseDownOwnedUnlessPopupClose",
+ "type": "bool",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseWheelRequestAxisSwap",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "MouseCtrlLeftAsRightClick",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "MouseDownDuration",
+ "type": "float",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseDownDurationPrev",
+ "type": "float",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "MouseDragMaxDistanceSqr",
+ "type": "float",
+ "obsolete": false,
+ "array": "5"
+ },
+ {
+ "name": "PenPressure",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "AppFocusLost",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "AppAcceptingEvents",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "InputQueueSurrogate",
+ "type": "ImWchar16",
+ "obsolete": false
+ },
+ {
+ "name": "InputQueueCharacters",
+ "type": "ImVector<ImWchar>",
+ "obsolete": false
+ },
+ {
+ "name": "FontGlobalScale",
+ "type": "float",
+ "obsolete": true
+ }
+ ],
+ "methods": [
+ {
+ "name": "AddKeyEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ },
+ {
+ "name": "down",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddKeyEvent",
+ "c_full": "ImGuiIO_AddKeyEvent",
+ "c_base": "ImGuiIO_AddKeyEvent"
+ },
+ {
+ "name": "AddKeyAnalogEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ },
+ {
+ "name": "down",
+ "type": "bool"
+ },
+ {
+ "name": "v",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddKeyAnalogEvent",
+ "c_full": "ImGuiIO_AddKeyAnalogEvent",
+ "c_base": "ImGuiIO_AddKeyAnalogEvent"
+ },
+ {
+ "name": "AddMousePosEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "x",
+ "type": "float"
+ },
+ {
+ "name": "y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddMousePosEvent",
+ "c_full": "ImGuiIO_AddMousePosEvent",
+ "c_base": "ImGuiIO_AddMousePosEvent"
+ },
+ {
+ "name": "AddMouseButtonEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "button",
+ "type": "int"
+ },
+ {
+ "name": "down",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddMouseButtonEvent",
+ "c_full": "ImGuiIO_AddMouseButtonEvent",
+ "c_base": "ImGuiIO_AddMouseButtonEvent"
+ },
+ {
+ "name": "AddMouseWheelEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "wheel_x",
+ "type": "float"
+ },
+ {
+ "name": "wheel_y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddMouseWheelEvent",
+ "c_full": "ImGuiIO_AddMouseWheelEvent",
+ "c_base": "ImGuiIO_AddMouseWheelEvent"
+ },
+ {
+ "name": "AddMouseSourceEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "source",
+ "type": "ImGuiMouseSource"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddMouseSourceEvent",
+ "c_full": "ImGuiIO_AddMouseSourceEvent",
+ "c_base": "ImGuiIO_AddMouseSourceEvent"
+ },
+ {
+ "name": "AddFocusEvent",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "focused",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddFocusEvent",
+ "c_full": "ImGuiIO_AddFocusEvent",
+ "c_base": "ImGuiIO_AddFocusEvent"
+ },
+ {
+ "name": "AddInputCharacter",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "c",
+ "type": "unsigned int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddInputCharacter",
+ "c_full": "ImGuiIO_AddInputCharacter",
+ "c_base": "ImGuiIO_AddInputCharacter"
+ },
+ {
+ "name": "AddInputCharacterUTF16",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar16"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddInputCharacterUTF16",
+ "c_full": "ImGuiIO_AddInputCharacterUTF16",
+ "c_base": "ImGuiIO_AddInputCharacterUTF16"
+ },
+ {
+ "name": "AddInputCharactersUTF8",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "str",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_AddInputCharactersUTF8",
+ "c_full": "ImGuiIO_AddInputCharactersUTF8",
+ "c_base": "ImGuiIO_AddInputCharactersUTF8"
+ },
+ {
+ "name": "SetKeyEventNativeData",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ },
+ {
+ "name": "native_keycode",
+ "type": "int"
+ },
+ {
+ "name": "native_scancode",
+ "type": "int"
+ },
+ {
+ "name": "native_legacy_index",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_SetKeyEventNativeData",
+ "c_short": "ImGuiIO_SetKeyEventNativeData",
+ "c_full": "ImGuiIO_SetKeyEventNativeDataEx",
+ "c_base": "ImGuiIO_SetKeyEventNativeData"
+ },
+ {
+ "name": "SetAppAcceptingEvents",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [
+ {
+ "name": "accepting_events",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_SetAppAcceptingEvents",
+ "c_full": "ImGuiIO_SetAppAcceptingEvents",
+ "c_base": "ImGuiIO_SetAppAcceptingEvents"
+ },
+ {
+ "name": "ClearEventsQueue",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_ClearEventsQueue",
+ "c_full": "ImGuiIO_ClearEventsQueue",
+ "c_base": "ImGuiIO_ClearEventsQueue"
+ },
+ {
+ "name": "ClearInputKeys",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_ClearInputKeys",
+ "c_full": "ImGuiIO_ClearInputKeys",
+ "c_base": "ImGuiIO_ClearInputKeys"
+ },
+ {
+ "name": "ClearInputMouse",
+ "scope": "ImGuiIO",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiIO_ClearInputMouse",
+ "c_full": "ImGuiIO_ClearInputMouse",
+ "c_base": "ImGuiIO_ClearInputMouse"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiIO",
+ "scope": "ImGuiIO",
+ "ret": "ImGuiIO*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiIO_New",
+ "c_full": "ImGuiIO_New",
+ "c_base": "ImGuiIO_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiInputTextCallbackData",
+ "fields": [
+ {
+ "name": "Ctx",
+ "type": "ImGuiContext*",
+ "obsolete": false
+ },
+ {
+ "name": "EventFlag",
+ "type": "ImGuiInputTextFlags",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImGuiInputTextFlags",
+ "obsolete": false
+ },
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "ID",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "EventKey",
+ "type": "ImGuiKey",
+ "obsolete": false
+ },
+ {
+ "name": "EventChar",
+ "type": "ImWchar",
+ "obsolete": false
+ },
+ {
+ "name": "EventActivated",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "BufDirty",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "Buf",
+ "type": "char*",
+ "obsolete": false
+ },
+ {
+ "name": "BufTextLen",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "BufSize",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "CursorPos",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "SelectionStart",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "SelectionEnd",
+ "type": "int",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "DeleteChars",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "int"
+ },
+ {
+ "name": "bytes_count",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_DeleteChars",
+ "c_full": "ImGuiInputTextCallbackData_DeleteChars",
+ "c_base": "ImGuiInputTextCallbackData_DeleteChars"
+ },
+ {
+ "name": "InsertChars",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "int"
+ },
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_InsertChars",
+ "c_short": "ImGuiInputTextCallbackData_InsertChars",
+ "c_full": "ImGuiInputTextCallbackData_InsertCharsEx",
+ "c_base": "ImGuiInputTextCallbackData_InsertChars"
+ },
+ {
+ "name": "SelectAll",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_SelectAll",
+ "c_full": "ImGuiInputTextCallbackData_SelectAll",
+ "c_base": "ImGuiInputTextCallbackData_SelectAll"
+ },
+ {
+ "name": "SetSelection",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "s",
+ "type": "int"
+ },
+ {
+ "name": "e",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_SetSelection",
+ "c_full": "ImGuiInputTextCallbackData_SetSelection",
+ "c_base": "ImGuiInputTextCallbackData_SetSelection"
+ },
+ {
+ "name": "ClearSelection",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_ClearSelection",
+ "c_full": "ImGuiInputTextCallbackData_ClearSelection",
+ "c_base": "ImGuiInputTextCallbackData_ClearSelection"
+ },
+ {
+ "name": "HasSelection",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiInputTextCallbackData_HasSelection",
+ "c_full": "ImGuiInputTextCallbackData_HasSelection",
+ "c_base": "ImGuiInputTextCallbackData_HasSelection"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiInputTextCallbackData",
+ "scope": "ImGuiInputTextCallbackData",
+ "ret": "ImGuiInputTextCallbackData*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiInputTextCallbackData_New",
+ "c_full": "ImGuiInputTextCallbackData_New",
+ "c_base": "ImGuiInputTextCallbackData_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiSizeCallbackData",
+ "fields": [
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "Pos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "CurrentSize",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DesiredSize",
+ "type": "ImVec2",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiSizeCallbackData",
+ "scope": "ImGuiSizeCallbackData",
+ "ret": "ImGuiSizeCallbackData*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImGuiSizeCallbackData_New",
+ "c_full": "ImGuiSizeCallbackData_New",
+ "c_base": "ImGuiSizeCallbackData_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiPayload",
+ "fields": [
+ {
+ "name": "Data",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "DataSize",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "SourceId",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "SourceParentId",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "DataFrameCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "DataType",
+ "type": "char",
+ "obsolete": false,
+ "array": "32 + 1"
+ },
+ {
+ "name": "Preview",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "Delivery",
+ "type": "bool",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Clear",
+ "scope": "ImGuiPayload",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiPayload_Clear",
+ "c_full": "ImGuiPayload_Clear",
+ "c_base": "ImGuiPayload_Clear"
+ },
+ {
+ "name": "IsDataType",
+ "scope": "ImGuiPayload",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "type",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiPayload_IsDataType",
+ "c_full": "ImGuiPayload_IsDataType",
+ "c_base": "ImGuiPayload_IsDataType"
+ },
+ {
+ "name": "IsPreview",
+ "scope": "ImGuiPayload",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiPayload_IsPreview",
+ "c_full": "ImGuiPayload_IsPreview",
+ "c_base": "ImGuiPayload_IsPreview"
+ },
+ {
+ "name": "IsDelivery",
+ "scope": "ImGuiPayload",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiPayload_IsDelivery",
+ "c_full": "ImGuiPayload_IsDelivery",
+ "c_base": "ImGuiPayload_IsDelivery"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiPayload",
+ "scope": "ImGuiPayload",
+ "ret": "ImGuiPayload*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiPayload_New",
+ "c_full": "ImGuiPayload_New",
+ "c_base": "ImGuiPayload_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiOnceUponAFrame",
+ "fields": [
+ {
+ "name": "RefFrame",
+ "type": "int",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiOnceUponAFrame",
+ "scope": "ImGuiOnceUponAFrame",
+ "ret": "ImGuiOnceUponAFrame*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiOnceUponAFrame_New",
+ "c_full": "ImGuiOnceUponAFrame_New",
+ "c_base": "ImGuiOnceUponAFrame_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiTextFilter",
+ "fields": [
+ {
+ "name": "InputBuf",
+ "type": "char",
+ "obsolete": false,
+ "array": "256"
+ },
+ {
+ "name": "_CountExclude",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "_Items",
+ "type": "ImVector<ImGuiTextFilterItem>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "PassFilter",
+ "scope": "ImGuiTextFilter",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_PassFilter",
+ "c_short": "ImGuiTextFilter_PassFilter",
+ "c_full": "ImGuiTextFilter_PassFilterEx",
+ "c_base": "ImGuiTextFilter_PassFilter"
+ },
+ {
+ "name": "Build",
+ "scope": "ImGuiTextFilter",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_Build",
+ "c_full": "ImGuiTextFilter_Build",
+ "c_base": "ImGuiTextFilter_Build"
+ },
+ {
+ "name": "Clear",
+ "scope": "ImGuiTextFilter",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_Clear",
+ "c_full": "ImGuiTextFilter_Clear",
+ "c_base": "ImGuiTextFilter_Clear"
+ },
+ {
+ "name": "IsActive",
+ "scope": "ImGuiTextFilter",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_IsActive",
+ "c_full": "ImGuiTextFilter_IsActive",
+ "c_base": "ImGuiTextFilter_IsActive"
+ },
+ {
+ "name": "Draw",
+ "scope": "ImGuiTextFilter",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*",
+ "default": "\"Filter\""
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_Draw",
+ "c_short": "ImGuiTextFilter_Draw",
+ "c_full": "ImGuiTextFilter_DrawEx",
+ "c_base": "ImGuiTextFilter_Draw"
+ },
+ {
+ "name": "DrawWithHint",
+ "scope": "ImGuiTextFilter",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*",
+ "default": "\"Filter\""
+ },
+ {
+ "name": "hint",
+ "type": "const char*",
+ "default": "\"incl -excl\""
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextFilter_DrawWithHint",
+ "c_short": "ImGuiTextFilter_DrawWithHint",
+ "c_full": "ImGuiTextFilter_DrawWithHintEx",
+ "c_base": "ImGuiTextFilter_DrawWithHint"
+ },
+ {
+ "name": "Draw",
+ "scope": "ImGuiTextFilter",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "width",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiTextFilter",
+ "scope": "ImGuiTextFilter",
+ "ret": "ImGuiTextFilter*",
+ "args": [
+ {
+ "name": "default_filter",
+ "type": "const char*",
+ "default": "\"\""
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiTextFilter_New",
+ "c_short": "ImGuiTextFilter_New",
+ "c_full": "ImGuiTextFilter_NewEx",
+ "c_base": "ImGuiTextFilter_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiTextBuffer",
+ "fields": [
+ {
+ "name": "Buf",
+ "type": "ImVector<char>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "begin",
+ "scope": "ImGuiTextBuffer",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_begin",
+ "c_full": "ImGuiTextBuffer_begin",
+ "c_base": "ImGuiTextBuffer_begin"
+ },
+ {
+ "name": "end",
+ "scope": "ImGuiTextBuffer",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_end",
+ "c_full": "ImGuiTextBuffer_end",
+ "c_base": "ImGuiTextBuffer_end"
+ },
+ {
+ "name": "size",
+ "scope": "ImGuiTextBuffer",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_size",
+ "c_full": "ImGuiTextBuffer_size",
+ "c_base": "ImGuiTextBuffer_size"
+ },
+ {
+ "name": "empty",
+ "scope": "ImGuiTextBuffer",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_empty",
+ "c_full": "ImGuiTextBuffer_empty",
+ "c_base": "ImGuiTextBuffer_empty"
+ },
+ {
+ "name": "clear",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_clear",
+ "c_full": "ImGuiTextBuffer_clear",
+ "c_base": "ImGuiTextBuffer_clear"
+ },
+ {
+ "name": "resize",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_resize",
+ "c_full": "ImGuiTextBuffer_resize",
+ "c_base": "ImGuiTextBuffer_resize"
+ },
+ {
+ "name": "reserve",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [
+ {
+ "name": "capacity",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_reserve",
+ "c_full": "ImGuiTextBuffer_reserve",
+ "c_base": "ImGuiTextBuffer_reserve"
+ },
+ {
+ "name": "c_str",
+ "scope": "ImGuiTextBuffer",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_c_str",
+ "c_full": "ImGuiTextBuffer_c_str",
+ "c_base": "ImGuiTextBuffer_c_str"
+ },
+ {
+ "name": "append",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [
+ {
+ "name": "str",
+ "type": "const char*"
+ },
+ {
+ "name": "str_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiTextBuffer_append",
+ "c_short": "ImGuiTextBuffer_append",
+ "c_full": "ImGuiTextBuffer_appendEx",
+ "c_base": "ImGuiTextBuffer_append"
+ },
+ {
+ "name": "appendf",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "variadic": true,
+ "overload_base": "ImGuiTextBuffer_appendf",
+ "c_full": "ImGuiTextBuffer_appendf",
+ "c_base": "ImGuiTextBuffer_appendf",
+ "vfunc": "appendfv"
+ },
+ {
+ "name": "appendfv",
+ "scope": "ImGuiTextBuffer",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "va_list": true,
+ "overload_base": "ImGuiTextBuffer_appendfv",
+ "c_full": "ImGuiTextBuffer_appendfv",
+ "c_base": "ImGuiTextBuffer_appendfv"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiTextBuffer",
+ "scope": "ImGuiTextBuffer",
+ "ret": "ImGuiTextBuffer*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiTextBuffer_New",
+ "c_full": "ImGuiTextBuffer_New",
+ "c_base": "ImGuiTextBuffer_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiStoragePair",
+ "fields": [
+ {
+ "name": "key",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "__union0",
+ "type": "union",
+ "union": [
+ {
+ "name": "val_i",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "val_f",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "val_p",
+ "type": "void*",
+ "obsolete": false
+ }
+ ],
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiStoragePair",
+ "scope": "ImGuiStoragePair",
+ "ret": "ImGuiStoragePair*",
+ "args": [
+ {
+ "name": "_key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "_val",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiStoragePair_New",
+ "c_full": "ImGuiStoragePair_New",
+ "c_base": "ImGuiStoragePair_New"
+ },
+ {
+ "name": "ImGuiStoragePair",
+ "scope": "ImGuiStoragePair",
+ "ret": "ImGuiStoragePair*",
+ "args": [
+ {
+ "name": "_key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "_val",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiStoragePair_New",
+ "overload_of": "ImGuiStoragePair_New",
+ "c_full": "ImGuiStoragePair_NewFloat",
+ "c_base": "ImGuiStoragePair_NewFloat"
+ },
+ {
+ "name": "ImGuiStoragePair",
+ "scope": "ImGuiStoragePair",
+ "ret": "ImGuiStoragePair*",
+ "args": [
+ {
+ "name": "_key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "_val",
+ "type": "void*"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiStoragePair_New",
+ "overload_of": "ImGuiStoragePair_New",
+ "c_full": "ImGuiStoragePair_NewPtr",
+ "c_base": "ImGuiStoragePair_NewPtr"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiStorage",
+ "fields": [
+ {
+ "name": "Data",
+ "type": "ImVector<ImGuiStoragePair>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Clear",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_Clear",
+ "c_full": "ImGuiStorage_Clear",
+ "c_base": "ImGuiStorage_Clear"
+ },
+ {
+ "name": "GetInt",
+ "scope": "ImGuiStorage",
+ "ret": "int",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetInt",
+ "c_short": "ImGuiStorage_GetInt",
+ "c_full": "ImGuiStorage_GetIntEx",
+ "c_base": "ImGuiStorage_GetInt"
+ },
+ {
+ "name": "SetInt",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "val",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_SetInt",
+ "c_full": "ImGuiStorage_SetInt",
+ "c_base": "ImGuiStorage_SetInt"
+ },
+ {
+ "name": "GetBool",
+ "scope": "ImGuiStorage",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "bool",
+ "default": "false"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetBool",
+ "c_short": "ImGuiStorage_GetBool",
+ "c_full": "ImGuiStorage_GetBoolEx",
+ "c_base": "ImGuiStorage_GetBool"
+ },
+ {
+ "name": "SetBool",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "val",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_SetBool",
+ "c_full": "ImGuiStorage_SetBool",
+ "c_base": "ImGuiStorage_SetBool"
+ },
+ {
+ "name": "GetFloat",
+ "scope": "ImGuiStorage",
+ "ret": "float",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetFloat",
+ "c_short": "ImGuiStorage_GetFloat",
+ "c_full": "ImGuiStorage_GetFloatEx",
+ "c_base": "ImGuiStorage_GetFloat"
+ },
+ {
+ "name": "SetFloat",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "val",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_SetFloat",
+ "c_full": "ImGuiStorage_SetFloat",
+ "c_base": "ImGuiStorage_SetFloat"
+ },
+ {
+ "name": "GetVoidPtr",
+ "scope": "ImGuiStorage",
+ "ret": "void*",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetVoidPtr",
+ "c_full": "ImGuiStorage_GetVoidPtr",
+ "c_base": "ImGuiStorage_GetVoidPtr"
+ },
+ {
+ "name": "SetVoidPtr",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "val",
+ "type": "void*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_SetVoidPtr",
+ "c_full": "ImGuiStorage_SetVoidPtr",
+ "c_base": "ImGuiStorage_SetVoidPtr"
+ },
+ {
+ "name": "GetIntRef",
+ "scope": "ImGuiStorage",
+ "ret": "int*",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetIntRef",
+ "c_short": "ImGuiStorage_GetIntRef",
+ "c_full": "ImGuiStorage_GetIntRefEx",
+ "c_base": "ImGuiStorage_GetIntRef"
+ },
+ {
+ "name": "GetBoolRef",
+ "scope": "ImGuiStorage",
+ "ret": "bool*",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "bool",
+ "default": "false"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetBoolRef",
+ "c_short": "ImGuiStorage_GetBoolRef",
+ "c_full": "ImGuiStorage_GetBoolRefEx",
+ "c_base": "ImGuiStorage_GetBoolRef"
+ },
+ {
+ "name": "GetFloatRef",
+ "scope": "ImGuiStorage",
+ "ret": "float*",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetFloatRef",
+ "c_short": "ImGuiStorage_GetFloatRef",
+ "c_full": "ImGuiStorage_GetFloatRefEx",
+ "c_base": "ImGuiStorage_GetFloatRef"
+ },
+ {
+ "name": "GetVoidPtrRef",
+ "scope": "ImGuiStorage",
+ "ret": "void**",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "default_val",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_GetVoidPtrRef",
+ "c_short": "ImGuiStorage_GetVoidPtrRef",
+ "c_full": "ImGuiStorage_GetVoidPtrRefEx",
+ "c_base": "ImGuiStorage_GetVoidPtrRef"
+ },
+ {
+ "name": "BuildSortByKey",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_BuildSortByKey",
+ "c_full": "ImGuiStorage_BuildSortByKey",
+ "c_base": "ImGuiStorage_BuildSortByKey"
+ },
+ {
+ "name": "SetAllInt",
+ "scope": "ImGuiStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "val",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiStorage_SetAllInt",
+ "c_full": "ImGuiStorage_SetAllInt",
+ "c_base": "ImGuiStorage_SetAllInt"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiStorage",
+ "scope": "ImGuiStorage",
+ "ret": "ImGuiStorage*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImGuiStorage_New",
+ "c_full": "ImGuiStorage_New",
+ "c_base": "ImGuiStorage_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiListClipper",
+ "fields": [
+ {
+ "name": "DisplayStart",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "DisplayEnd",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "UserIndex",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ItemsCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "ItemsHeight",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImGuiListClipperFlags",
+ "obsolete": false
+ },
+ {
+ "name": "StartPosY",
+ "type": "double",
+ "obsolete": false
+ },
+ {
+ "name": "StartSeekOffsetY",
+ "type": "double",
+ "obsolete": false
+ },
+ {
+ "name": "Ctx",
+ "type": "ImGuiContext*",
+ "obsolete": false
+ },
+ {
+ "name": "TempData",
+ "type": "void*",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Begin",
+ "scope": "ImGuiListClipper",
+ "ret": "void",
+ "args": [
+ {
+ "name": "items_count",
+ "type": "int"
+ },
+ {
+ "name": "items_height",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_Begin",
+ "c_short": "ImGuiListClipper_Begin",
+ "c_full": "ImGuiListClipper_BeginEx",
+ "c_base": "ImGuiListClipper_Begin"
+ },
+ {
+ "name": "End",
+ "scope": "ImGuiListClipper",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_End",
+ "c_full": "ImGuiListClipper_End",
+ "c_base": "ImGuiListClipper_End"
+ },
+ {
+ "name": "Step",
+ "scope": "ImGuiListClipper",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_Step",
+ "c_full": "ImGuiListClipper_Step",
+ "c_base": "ImGuiListClipper_Step"
+ },
+ {
+ "name": "IncludeItemByIndex",
+ "scope": "ImGuiListClipper",
+ "ret": "void",
+ "args": [
+ {
+ "name": "item_index",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_IncludeItemByIndex",
+ "c_full": "ImGuiListClipper_IncludeItemByIndex",
+ "c_base": "ImGuiListClipper_IncludeItemByIndex"
+ },
+ {
+ "name": "IncludeItemsByIndex",
+ "scope": "ImGuiListClipper",
+ "ret": "void",
+ "args": [
+ {
+ "name": "item_begin",
+ "type": "int"
+ },
+ {
+ "name": "item_end",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_IncludeItemsByIndex",
+ "c_full": "ImGuiListClipper_IncludeItemsByIndex",
+ "c_base": "ImGuiListClipper_IncludeItemsByIndex"
+ },
+ {
+ "name": "SeekCursorForItem",
+ "scope": "ImGuiListClipper",
+ "ret": "void",
+ "args": [
+ {
+ "name": "item_index",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiListClipper_SeekCursorForItem",
+ "c_full": "ImGuiListClipper_SeekCursorForItem",
+ "c_base": "ImGuiListClipper_SeekCursorForItem"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiListClipper",
+ "scope": "ImGuiListClipper",
+ "ret": "ImGuiListClipper*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiListClipper_New",
+ "c_full": "ImGuiListClipper_New",
+ "c_base": "ImGuiListClipper_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImColor",
+ "fields": [
+ {
+ "name": "Value",
+ "type": "ImVec4",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "SetHSV",
+ "scope": "ImColor",
+ "ret": "void",
+ "args": [
+ {
+ "name": "h",
+ "type": "float"
+ },
+ {
+ "name": "s",
+ "type": "float"
+ },
+ {
+ "name": "v",
+ "type": "float"
+ },
+ {
+ "name": "a",
+ "type": "float",
+ "default": "1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImColor_SetHSV",
+ "c_short": "ImColor_SetHSV",
+ "c_full": "ImColor_SetHSVEx",
+ "c_base": "ImColor_SetHSV"
+ },
+ {
+ "name": "HSV",
+ "scope": "ImColor",
+ "ret": "ImColor",
+ "args": [
+ {
+ "name": "h",
+ "type": "float"
+ },
+ {
+ "name": "s",
+ "type": "float"
+ },
+ {
+ "name": "v",
+ "type": "float"
+ },
+ {
+ "name": "a",
+ "type": "float",
+ "default": "1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": true,
+ "overload_base": "ImColor_HSV",
+ "c_short": "ImColor_HSV",
+ "c_full": "ImColor_HSVEx",
+ "c_base": "ImColor_HSV"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImColor",
+ "scope": "ImColor",
+ "ret": "ImColor*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImColor_New",
+ "c_full": "ImColor_New",
+ "c_base": "ImColor_New"
+ },
+ {
+ "name": "ImColor",
+ "scope": "ImColor",
+ "ret": "ImColor*",
+ "args": [
+ {
+ "name": "r",
+ "type": "float"
+ },
+ {
+ "name": "g",
+ "type": "float"
+ },
+ {
+ "name": "b",
+ "type": "float"
+ },
+ {
+ "name": "a",
+ "type": "float",
+ "default": "1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImColor_New",
+ "overload_of": "ImColor_New",
+ "c_short": "ImColor_NewFloat",
+ "c_full": "ImColor_NewFloatEx",
+ "c_base": "ImColor_NewFloat"
+ },
+ {
+ "name": "ImColor",
+ "scope": "ImColor",
+ "ret": "ImColor*",
+ "args": [
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImColor_New",
+ "overload_of": "ImColor_New",
+ "c_full": "ImColor_NewVec4",
+ "c_base": "ImColor_NewVec4"
+ },
+ {
+ "name": "ImColor",
+ "scope": "ImColor",
+ "ret": "ImColor*",
+ "args": [
+ {
+ "name": "r",
+ "type": "int"
+ },
+ {
+ "name": "g",
+ "type": "int"
+ },
+ {
+ "name": "b",
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "type": "int",
+ "default": "255"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImColor_New",
+ "overload_of": "ImColor_New",
+ "c_short": "ImColor_NewInt",
+ "c_full": "ImColor_NewIntEx",
+ "c_base": "ImColor_NewInt"
+ },
+ {
+ "name": "ImColor",
+ "scope": "ImColor",
+ "ret": "ImColor*",
+ "args": [
+ {
+ "name": "rgba",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImColor_New",
+ "overload_of": "ImColor_New",
+ "c_full": "ImColor_NewU32",
+ "c_base": "ImColor_NewU32"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiMultiSelectIO",
+ "fields": [
+ {
+ "name": "Requests",
+ "type": "ImVector<ImGuiSelectionRequest>",
+ "obsolete": false
+ },
+ {
+ "name": "RangeSrcItem",
+ "type": "ImGuiSelectionUserData",
+ "obsolete": false
+ },
+ {
+ "name": "NavIdItem",
+ "type": "ImGuiSelectionUserData",
+ "obsolete": false
+ },
+ {
+ "name": "NavIdSelected",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "RangeSrcReset",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "ItemsCount",
+ "type": "int",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiMultiSelectIO",
+ "scope": "ImGuiMultiSelectIO",
+ "ret": "ImGuiMultiSelectIO*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImGuiMultiSelectIO_New",
+ "c_full": "ImGuiMultiSelectIO_New",
+ "c_base": "ImGuiMultiSelectIO_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiSelectionRequest",
+ "fields": [
+ {
+ "name": "Type",
+ "type": "ImGuiSelectionRequestType",
+ "obsolete": false
+ },
+ {
+ "name": "Selected",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "RangeDirection",
+ "type": "ImS8",
+ "obsolete": false
+ },
+ {
+ "name": "RangeFirstItem",
+ "type": "ImGuiSelectionUserData",
+ "obsolete": false
+ },
+ {
+ "name": "RangeLastItem",
+ "type": "ImGuiSelectionUserData",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiSelectionRequest",
+ "scope": "ImGuiSelectionRequest",
+ "ret": "ImGuiSelectionRequest*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImGuiSelectionRequest_New",
+ "c_full": "ImGuiSelectionRequest_New",
+ "c_base": "ImGuiSelectionRequest_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiSelectionBasicStorage",
+ "fields": [
+ {
+ "name": "Size",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "PreserveOrder",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "AdapterIndexToStorageId",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "self",
+ "type": "ImGuiSelectionBasicStorage*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "_SelectionOrder",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "_Storage",
+ "type": "ImGuiStorage",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "ApplyRequests",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ms_io",
+ "type": "ImGuiMultiSelectIO*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_ApplyRequests",
+ "c_full": "ImGuiSelectionBasicStorage_ApplyRequests",
+ "c_base": "ImGuiSelectionBasicStorage_ApplyRequests"
+ },
+ {
+ "name": "Contains",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImGuiID"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_Contains",
+ "c_full": "ImGuiSelectionBasicStorage_Contains",
+ "c_base": "ImGuiSelectionBasicStorage_Contains"
+ },
+ {
+ "name": "Clear",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_Clear",
+ "c_full": "ImGuiSelectionBasicStorage_Clear",
+ "c_base": "ImGuiSelectionBasicStorage_Clear"
+ },
+ {
+ "name": "Swap",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "r",
+ "type": "ImGuiSelectionBasicStorage&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_Swap",
+ "c_full": "ImGuiSelectionBasicStorage_Swap",
+ "c_base": "ImGuiSelectionBasicStorage_Swap"
+ },
+ {
+ "name": "SetItemSelected",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "selected",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_SetItemSelected",
+ "c_full": "ImGuiSelectionBasicStorage_SetItemSelected",
+ "c_base": "ImGuiSelectionBasicStorage_SetItemSelected"
+ },
+ {
+ "name": "GetNextSelectedItem",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "opaque_it",
+ "type": "void**"
+ },
+ {
+ "name": "out_id",
+ "type": "ImGuiID*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_GetNextSelectedItem",
+ "c_full": "ImGuiSelectionBasicStorage_GetNextSelectedItem",
+ "c_base": "ImGuiSelectionBasicStorage_GetNextSelectedItem"
+ },
+ {
+ "name": "GetStorageIdFromIndex",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionBasicStorage_GetStorageIdFromIndex",
+ "c_full": "ImGuiSelectionBasicStorage_GetStorageIdFromIndex",
+ "c_base": "ImGuiSelectionBasicStorage_GetStorageIdFromIndex"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiSelectionBasicStorage",
+ "scope": "ImGuiSelectionBasicStorage",
+ "ret": "ImGuiSelectionBasicStorage*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiSelectionBasicStorage_New",
+ "c_full": "ImGuiSelectionBasicStorage_New",
+ "c_base": "ImGuiSelectionBasicStorage_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiSelectionExternalStorage",
+ "fields": [
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "AdapterSetItemSelected",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "self",
+ "type": "ImGuiSelectionExternalStorage*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ },
+ {
+ "name": "selected",
+ "type": "bool"
+ }
+ ]
+ },
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "ApplyRequests",
+ "scope": "ImGuiSelectionExternalStorage",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ms_io",
+ "type": "ImGuiMultiSelectIO*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiSelectionExternalStorage_ApplyRequests",
+ "c_full": "ImGuiSelectionExternalStorage_ApplyRequests",
+ "c_base": "ImGuiSelectionExternalStorage_ApplyRequests"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiSelectionExternalStorage",
+ "scope": "ImGuiSelectionExternalStorage",
+ "ret": "ImGuiSelectionExternalStorage*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiSelectionExternalStorage_New",
+ "c_full": "ImGuiSelectionExternalStorage_New",
+ "c_base": "ImGuiSelectionExternalStorage_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawCmd",
+ "fields": [
+ {
+ "name": "ClipRect",
+ "type": "ImVec4",
+ "obsolete": false
+ },
+ {
+ "name": "TexRef",
+ "type": "ImTextureRef",
+ "obsolete": false
+ },
+ {
+ "name": "VtxOffset",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "IdxOffset",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "ElemCount",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "UserCallback",
+ "type": "ImDrawCallback",
+ "obsolete": false
+ },
+ {
+ "name": "UserCallbackData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "UserCallbackDataSize",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "UserCallbackDataOffset",
+ "type": "int",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "GetTexID",
+ "scope": "ImDrawCmd",
+ "ret": "ImTextureID",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImDrawCmd_GetTexID",
+ "c_full": "ImDrawCmd_GetTexID",
+ "c_base": "ImDrawCmd_GetTexID"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImDrawCmd",
+ "scope": "ImDrawCmd",
+ "ret": "ImDrawCmd*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImDrawCmd_New",
+ "c_full": "ImDrawCmd_New",
+ "c_base": "ImDrawCmd_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawVert",
+ "fields": [
+ {
+ "name": "pos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "uv",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "col",
+ "type": "ImU32",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImDrawVert",
+ "scope": "ImDrawVert",
+ "ret": "ImDrawVert*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImDrawVert_New",
+ "c_full": "ImDrawVert_New",
+ "c_base": "ImDrawVert_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawCmdHeader",
+ "fields": [
+ {
+ "name": "ClipRect",
+ "type": "ImVec4",
+ "obsolete": false
+ },
+ {
+ "name": "TexRef",
+ "type": "ImTextureRef",
+ "obsolete": false
+ },
+ {
+ "name": "VtxOffset",
+ "type": "unsigned int",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImDrawCmdHeader",
+ "scope": "ImDrawCmdHeader",
+ "ret": "ImDrawCmdHeader*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImDrawCmdHeader_New",
+ "c_full": "ImDrawCmdHeader_New",
+ "c_base": "ImDrawCmdHeader_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawChannel",
+ "fields": [
+ {
+ "name": "_CmdBuffer",
+ "type": "ImVector<ImDrawCmd>",
+ "obsolete": false
+ },
+ {
+ "name": "_IdxBuffer",
+ "type": "ImVector<ImDrawIdx>",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImDrawChannel",
+ "scope": "ImDrawChannel",
+ "ret": "ImDrawChannel*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImDrawChannel_New",
+ "c_full": "ImDrawChannel_New",
+ "c_base": "ImDrawChannel_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawListSplitter",
+ "fields": [
+ {
+ "name": "_Current",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "_Count",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "_Channels",
+ "type": "ImVector<ImDrawChannel>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Clear",
+ "scope": "ImDrawListSplitter",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawListSplitter_Clear",
+ "c_full": "ImDrawListSplitter_Clear",
+ "c_base": "ImDrawListSplitter_Clear"
+ },
+ {
+ "name": "ClearFreeMemory",
+ "scope": "ImDrawListSplitter",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawListSplitter_ClearFreeMemory",
+ "c_full": "ImDrawListSplitter_ClearFreeMemory",
+ "c_base": "ImDrawListSplitter_ClearFreeMemory"
+ },
+ {
+ "name": "Split",
+ "scope": "ImDrawListSplitter",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ },
+ {
+ "name": "count",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawListSplitter_Split",
+ "c_full": "ImDrawListSplitter_Split",
+ "c_base": "ImDrawListSplitter_Split"
+ },
+ {
+ "name": "Merge",
+ "scope": "ImDrawListSplitter",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawListSplitter_Merge",
+ "c_full": "ImDrawListSplitter_Merge",
+ "c_base": "ImDrawListSplitter_Merge"
+ },
+ {
+ "name": "SetCurrentChannel",
+ "scope": "ImDrawListSplitter",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ },
+ {
+ "name": "channel_idx",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawListSplitter_SetCurrentChannel",
+ "c_full": "ImDrawListSplitter_SetCurrentChannel",
+ "c_base": "ImDrawListSplitter_SetCurrentChannel"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImDrawListSplitter",
+ "scope": "ImDrawListSplitter",
+ "ret": "ImDrawListSplitter*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImDrawListSplitter_New",
+ "c_full": "ImDrawListSplitter_New",
+ "c_base": "ImDrawListSplitter_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawList",
+ "fields": [
+ {
+ "name": "CmdBuffer",
+ "type": "ImVector<ImDrawCmd>",
+ "obsolete": false
+ },
+ {
+ "name": "IdxBuffer",
+ "type": "ImVector<ImDrawIdx>",
+ "obsolete": false
+ },
+ {
+ "name": "VtxBuffer",
+ "type": "ImVector<ImDrawVert>",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImDrawFlags",
+ "obsolete": false
+ },
+ {
+ "name": "_VtxCurrentIdx",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "_Data",
+ "type": "ImDrawListSharedData*",
+ "obsolete": false
+ },
+ {
+ "name": "_VtxWritePtr",
+ "type": "ImDrawVert*",
+ "obsolete": false
+ },
+ {
+ "name": "_IdxWritePtr",
+ "type": "ImDrawIdx*",
+ "obsolete": false
+ },
+ {
+ "name": "_Path",
+ "type": "ImVector<ImVec2>",
+ "obsolete": false
+ },
+ {
+ "name": "_CmdHeader",
+ "type": "ImDrawCmdHeader",
+ "obsolete": false
+ },
+ {
+ "name": "_Splitter",
+ "type": "ImDrawListSplitter",
+ "obsolete": false
+ },
+ {
+ "name": "_ClipRectStack",
+ "type": "ImVector<ImVec4>",
+ "obsolete": false
+ },
+ {
+ "name": "_TextureStack",
+ "type": "ImVector<ImTextureRef>",
+ "obsolete": false
+ },
+ {
+ "name": "_CallbacksDataBuf",
+ "type": "ImVector<ImU8>",
+ "obsolete": false
+ },
+ {
+ "name": "_DrawFlagsStack",
+ "type": "ImSmallStack_<ImDrawFlags, 3>",
+ "obsolete": false
+ },
+ {
+ "name": "_FringeScale",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "_InvFringeScale",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "_FringeScaleIsInteger",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "_OwnerName",
+ "type": "const char*",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "PushClipRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "clip_rect_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "clip_rect_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "intersect_with_current_clip_rect",
+ "type": "bool",
+ "default": "false"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PushClipRect",
+ "c_short": "ImDrawList_PushClipRect",
+ "c_full": "ImDrawList_PushClipRectEx",
+ "c_base": "ImDrawList_PushClipRect"
+ },
+ {
+ "name": "PushClipRectFullScreen",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PushClipRectFullScreen",
+ "c_full": "ImDrawList_PushClipRectFullScreen",
+ "c_base": "ImDrawList_PushClipRectFullScreen"
+ },
+ {
+ "name": "PopClipRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PopClipRect",
+ "c_full": "ImDrawList_PopClipRect",
+ "c_base": "ImDrawList_PopClipRect"
+ },
+ {
+ "name": "PushTexture",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PushTexture",
+ "c_full": "ImDrawList_PushTexture",
+ "c_base": "ImDrawList_PushTexture"
+ },
+ {
+ "name": "PopTexture",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PopTexture",
+ "c_full": "ImDrawList_PopTexture",
+ "c_base": "ImDrawList_PopTexture"
+ },
+ {
+ "name": "PushDrawFlag",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ },
+ {
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PushDrawFlag",
+ "c_full": "ImDrawList_PushDrawFlag",
+ "c_base": "ImDrawList_PushDrawFlag"
+ },
+ {
+ "name": "PopDrawFlag",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PopDrawFlag",
+ "c_full": "ImDrawList_PopDrawFlag",
+ "c_base": "ImDrawList_PopDrawFlag"
+ },
+ {
+ "name": "GetClipRectMin",
+ "scope": "ImDrawList",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImDrawList_GetClipRectMin",
+ "c_full": "ImDrawList_GetClipRectMin",
+ "c_base": "ImDrawList_GetClipRectMin"
+ },
+ {
+ "name": "GetClipRectMax",
+ "scope": "ImDrawList",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImDrawList_GetClipRectMax",
+ "c_full": "ImDrawList_GetClipRectMax",
+ "c_base": "ImDrawList_GetClipRectMax"
+ },
+ {
+ "name": "AddLine",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddLine",
+ "c_short": "ImDrawList_AddLine",
+ "c_full": "ImDrawList_AddLineEx",
+ "c_base": "ImDrawList_AddLine"
+ },
+ {
+ "name": "AddLineH",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "min_x",
+ "type": "float"
+ },
+ {
+ "name": "max_x",
+ "type": "float"
+ },
+ {
+ "name": "y",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddLineH",
+ "c_short": "ImDrawList_AddLineH",
+ "c_full": "ImDrawList_AddLineHEx",
+ "c_base": "ImDrawList_AddLineH"
+ },
+ {
+ "name": "AddLineV",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "x",
+ "type": "float"
+ },
+ {
+ "name": "min_y",
+ "type": "float"
+ },
+ {
+ "name": "max_y",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddLineV",
+ "c_short": "ImDrawList_AddLineV",
+ "c_full": "ImDrawList_AddLineVEx",
+ "c_base": "ImDrawList_AddLineV"
+ },
+ {
+ "name": "AddRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rounding",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddRect",
+ "c_short": "ImDrawList_AddRect",
+ "c_full": "ImDrawList_AddRectEx",
+ "c_base": "ImDrawList_AddRect"
+ },
+ {
+ "name": "AddRectFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rounding",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddRectFilled",
+ "c_short": "ImDrawList_AddRectFilled",
+ "c_full": "ImDrawList_AddRectFilledEx",
+ "c_base": "ImDrawList_AddRectFilled"
+ },
+ {
+ "name": "AddRectFilledMultiColor",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col_upr_left",
+ "type": "ImU32"
+ },
+ {
+ "name": "col_upr_right",
+ "type": "ImU32"
+ },
+ {
+ "name": "col_bot_right",
+ "type": "ImU32"
+ },
+ {
+ "name": "col_bot_left",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddRectFilledMultiColor",
+ "c_full": "ImDrawList_AddRectFilledMultiColor",
+ "c_base": "ImDrawList_AddRectFilledMultiColor"
+ },
+ {
+ "name": "AddQuad",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p4",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddQuad",
+ "c_short": "ImDrawList_AddQuad",
+ "c_full": "ImDrawList_AddQuadEx",
+ "c_base": "ImDrawList_AddQuad"
+ },
+ {
+ "name": "AddQuadFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p4",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddQuadFilled",
+ "c_full": "ImDrawList_AddQuadFilled",
+ "c_base": "ImDrawList_AddQuadFilled"
+ },
+ {
+ "name": "AddTriangle",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddTriangle",
+ "c_short": "ImDrawList_AddTriangle",
+ "c_full": "ImDrawList_AddTriangleEx",
+ "c_base": "ImDrawList_AddTriangle"
+ },
+ {
+ "name": "AddTriangleFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddTriangleFilled",
+ "c_full": "ImDrawList_AddTriangleFilled",
+ "c_base": "ImDrawList_AddTriangleFilled"
+ },
+ {
+ "name": "AddCircle",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddCircle",
+ "c_short": "ImDrawList_AddCircle",
+ "c_full": "ImDrawList_AddCircleEx",
+ "c_base": "ImDrawList_AddCircle"
+ },
+ {
+ "name": "AddCircleFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddCircleFilled",
+ "c_short": "ImDrawList_AddCircleFilled",
+ "c_full": "ImDrawList_AddCircleFilledEx",
+ "c_base": "ImDrawList_AddCircleFilled"
+ },
+ {
+ "name": "AddNgon",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "num_segments",
+ "type": "int"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddNgon",
+ "c_short": "ImDrawList_AddNgon",
+ "c_full": "ImDrawList_AddNgonEx",
+ "c_base": "ImDrawList_AddNgon"
+ },
+ {
+ "name": "AddNgonFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "num_segments",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddNgonFilled",
+ "c_full": "ImDrawList_AddNgonFilled",
+ "c_base": "ImDrawList_AddNgonFilled"
+ },
+ {
+ "name": "AddEllipse",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rot",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddEllipse",
+ "c_short": "ImDrawList_AddEllipse",
+ "c_full": "ImDrawList_AddEllipseEx",
+ "c_base": "ImDrawList_AddEllipse"
+ },
+ {
+ "name": "AddEllipseFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rot",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddEllipseFilled",
+ "c_short": "ImDrawList_AddEllipseFilled",
+ "c_full": "ImDrawList_AddEllipseFilledEx",
+ "c_base": "ImDrawList_AddEllipseFilled"
+ },
+ {
+ "name": "AddText",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "text_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddText",
+ "c_short": "ImDrawList_AddText",
+ "c_full": "ImDrawList_AddTextEx",
+ "c_base": "ImDrawList_AddText"
+ },
+ {
+ "name": "AddText",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "font",
+ "type": "ImFont*"
+ },
+ {
+ "name": "font_size",
+ "type": "float"
+ },
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "text_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "cpu_fine_clip_rect",
+ "type": "const ImVec4*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddText",
+ "overload_of": "ImDrawList_AddTextEx",
+ "c_short": "ImDrawList_AddTextFontPtr",
+ "c_full": "ImDrawList_AddTextFontPtrEx",
+ "c_base": "ImDrawList_AddTextFontPtr"
+ },
+ {
+ "name": "AddBezierCubic",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p4",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddBezierCubic",
+ "c_short": "ImDrawList_AddBezierCubic",
+ "c_full": "ImDrawList_AddBezierCubicEx",
+ "c_base": "ImDrawList_AddBezierCubic"
+ },
+ {
+ "name": "AddBezierQuadratic",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddBezierQuadratic",
+ "c_short": "ImDrawList_AddBezierQuadratic",
+ "c_full": "ImDrawList_AddBezierQuadraticEx",
+ "c_base": "ImDrawList_AddBezierQuadratic"
+ },
+ {
+ "name": "AddPolyline",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "points",
+ "type": "const ImVec2*"
+ },
+ {
+ "name": "num_points",
+ "type": "int"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddPolyline",
+ "c_short": "ImDrawList_AddPolyline",
+ "c_full": "ImDrawList_AddPolylineEx",
+ "c_base": "ImDrawList_AddPolyline"
+ },
+ {
+ "name": "AddConvexPolyFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "points",
+ "type": "const ImVec2*"
+ },
+ {
+ "name": "num_points",
+ "type": "int"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddConvexPolyFilled",
+ "c_short": "ImDrawList_AddConvexPolyFilled",
+ "c_full": "ImDrawList_AddConvexPolyFilledEx",
+ "c_base": "ImDrawList_AddConvexPolyFilled"
+ },
+ {
+ "name": "AddConcavePolyFilled",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "points",
+ "type": "const ImVec2*"
+ },
+ {
+ "name": "num_points",
+ "type": "int"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddConcavePolyFilled",
+ "c_full": "ImDrawList_AddConcavePolyFilled",
+ "c_base": "ImDrawList_AddConcavePolyFilled"
+ },
+ {
+ "name": "AddImage",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_min",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "uv_max",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 1)"
+ },
+ {
+ "name": "col",
+ "type": "ImU32",
+ "default": "IM_COL32_WHITE"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddImage",
+ "c_short": "ImDrawList_AddImage",
+ "c_full": "ImDrawList_AddImageEx",
+ "c_base": "ImDrawList_AddImage"
+ },
+ {
+ "name": "AddImageQuad",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p4",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv1",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "uv2",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 0)"
+ },
+ {
+ "name": "uv3",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 1)"
+ },
+ {
+ "name": "uv4",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 1)"
+ },
+ {
+ "name": "col",
+ "type": "ImU32",
+ "default": "IM_COL32_WHITE"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddImageQuad",
+ "c_short": "ImDrawList_AddImageQuad",
+ "c_full": "ImDrawList_AddImageQuadEx",
+ "c_base": "ImDrawList_AddImageQuad"
+ },
+ {
+ "name": "AddImageRounded",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rounding",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddImageRounded",
+ "c_short": "ImDrawList_AddImageRounded",
+ "c_full": "ImDrawList_AddImageRoundedEx",
+ "c_base": "ImDrawList_AddImageRounded"
+ },
+ {
+ "name": "PathClear",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathClear",
+ "c_full": "ImDrawList_PathClear",
+ "c_base": "ImDrawList_PathClear"
+ },
+ {
+ "name": "PathLineTo",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathLineTo",
+ "c_full": "ImDrawList_PathLineTo",
+ "c_base": "ImDrawList_PathLineTo"
+ },
+ {
+ "name": "PathLineToMergeDuplicate",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathLineToMergeDuplicate",
+ "c_full": "ImDrawList_PathLineToMergeDuplicate",
+ "c_base": "ImDrawList_PathLineToMergeDuplicate"
+ },
+ {
+ "name": "PathFillConvex",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathFillConvex",
+ "c_short": "ImDrawList_PathFillConvex",
+ "c_full": "ImDrawList_PathFillConvexEx",
+ "c_base": "ImDrawList_PathFillConvex"
+ },
+ {
+ "name": "PathFillConcave",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathFillConcave",
+ "c_full": "ImDrawList_PathFillConcave",
+ "c_base": "ImDrawList_PathFillConcave"
+ },
+ {
+ "name": "PathStroke",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathStroke",
+ "c_short": "ImDrawList_PathStroke",
+ "c_full": "ImDrawList_PathStrokeEx",
+ "c_base": "ImDrawList_PathStroke"
+ },
+ {
+ "name": "PathArcTo",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "a_min",
+ "type": "float"
+ },
+ {
+ "name": "a_max",
+ "type": "float"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathArcTo",
+ "c_short": "ImDrawList_PathArcTo",
+ "c_full": "ImDrawList_PathArcToEx",
+ "c_base": "ImDrawList_PathArcTo"
+ },
+ {
+ "name": "PathArcToFast",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "a_min_of_12",
+ "type": "int"
+ },
+ {
+ "name": "a_max_of_12",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathArcToFast",
+ "c_full": "ImDrawList_PathArcToFast",
+ "c_base": "ImDrawList_PathArcToFast"
+ },
+ {
+ "name": "PathEllipticalArcTo",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "rot",
+ "type": "float"
+ },
+ {
+ "name": "a_min",
+ "type": "float"
+ },
+ {
+ "name": "a_max",
+ "type": "float"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathEllipticalArcTo",
+ "c_short": "ImDrawList_PathEllipticalArcTo",
+ "c_full": "ImDrawList_PathEllipticalArcToEx",
+ "c_base": "ImDrawList_PathEllipticalArcTo"
+ },
+ {
+ "name": "PathBezierCubicCurveTo",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p4",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathBezierCubicCurveTo",
+ "c_short": "ImDrawList_PathBezierCubicCurveTo",
+ "c_full": "ImDrawList_PathBezierCubicCurveToEx",
+ "c_base": "ImDrawList_PathBezierCubicCurveTo"
+ },
+ {
+ "name": "PathBezierQuadraticCurveTo",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p3",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "num_segments",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathBezierQuadraticCurveTo",
+ "c_short": "ImDrawList_PathBezierQuadraticCurveTo",
+ "c_full": "ImDrawList_PathBezierQuadraticCurveToEx",
+ "c_base": "ImDrawList_PathBezierQuadraticCurveTo"
+ },
+ {
+ "name": "PathRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "rect_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "rect_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "rounding",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PathRect",
+ "c_short": "ImDrawList_PathRect",
+ "c_full": "ImDrawList_PathRectEx",
+ "c_base": "ImDrawList_PathRect"
+ },
+ {
+ "name": "AddCallback",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "callback",
+ "type": "ImDrawCallback"
+ },
+ {
+ "name": "userdata",
+ "type": "void*",
+ "default": "NULL"
+ },
+ {
+ "name": "userdata_size",
+ "type": "size_t",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddCallback",
+ "c_short": "ImDrawList_AddCallback",
+ "c_full": "ImDrawList_AddCallbackEx",
+ "c_base": "ImDrawList_AddCallback"
+ },
+ {
+ "name": "AddDrawCmd",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_AddDrawCmd",
+ "c_full": "ImDrawList_AddDrawCmd",
+ "c_base": "ImDrawList_AddDrawCmd"
+ },
+ {
+ "name": "CloneOutput",
+ "scope": "ImDrawList",
+ "ret": "ImDrawList*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImDrawList_CloneOutput",
+ "c_full": "ImDrawList_CloneOutput",
+ "c_base": "ImDrawList_CloneOutput"
+ },
+ {
+ "name": "ChannelsSplit",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "count",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_ChannelsSplit",
+ "c_full": "ImDrawList_ChannelsSplit",
+ "c_base": "ImDrawList_ChannelsSplit"
+ },
+ {
+ "name": "ChannelsMerge",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_ChannelsMerge",
+ "c_full": "ImDrawList_ChannelsMerge",
+ "c_base": "ImDrawList_ChannelsMerge"
+ },
+ {
+ "name": "ChannelsSetCurrent",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "n",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_ChannelsSetCurrent",
+ "c_full": "ImDrawList_ChannelsSetCurrent",
+ "c_base": "ImDrawList_ChannelsSetCurrent"
+ },
+ {
+ "name": "PrimReserve",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx_count",
+ "type": "int"
+ },
+ {
+ "name": "vtx_count",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimReserve",
+ "c_full": "ImDrawList_PrimReserve",
+ "c_base": "ImDrawList_PrimReserve"
+ },
+ {
+ "name": "PrimUnreserve",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx_count",
+ "type": "int"
+ },
+ {
+ "name": "vtx_count",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimUnreserve",
+ "c_full": "ImDrawList_PrimUnreserve",
+ "c_base": "ImDrawList_PrimUnreserve"
+ },
+ {
+ "name": "PrimRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "a",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "b",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimRect",
+ "c_full": "ImDrawList_PrimRect",
+ "c_base": "ImDrawList_PrimRect"
+ },
+ {
+ "name": "PrimRectUV",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "a",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "b",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_a",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_b",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimRectUV",
+ "c_full": "ImDrawList_PrimRectUV",
+ "c_base": "ImDrawList_PrimRectUV"
+ },
+ {
+ "name": "PrimQuadUV",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "a",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "b",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "c",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "d",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_a",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_b",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_c",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv_d",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimQuadUV",
+ "c_full": "ImDrawList_PrimQuadUV",
+ "c_base": "ImDrawList_PrimQuadUV"
+ },
+ {
+ "name": "PrimWriteVtx",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimWriteVtx",
+ "c_full": "ImDrawList_PrimWriteVtx",
+ "c_base": "ImDrawList_PrimWriteVtx"
+ },
+ {
+ "name": "PrimWriteIdx",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImDrawIdx"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimWriteIdx",
+ "c_full": "ImDrawList_PrimWriteIdx",
+ "c_base": "ImDrawList_PrimWriteIdx"
+ },
+ {
+ "name": "PrimVtx",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList_PrimVtx",
+ "c_full": "ImDrawList_PrimVtx",
+ "c_base": "ImDrawList_PrimVtx"
+ },
+ {
+ "name": "AddRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rounding",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "AddPolyline",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "points",
+ "type": "const ImVec2*"
+ },
+ {
+ "name": "num_points",
+ "type": "int"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "PathStroke",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "PushTextureID",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "PopTextureID",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "_SetDrawListSharedData",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "data",
+ "type": "ImDrawListSharedData*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__SetDrawListSharedData",
+ "c_full": "ImDrawList__SetDrawListSharedData",
+ "c_base": "ImDrawList__SetDrawListSharedData"
+ },
+ {
+ "name": "_ResetForNewFrame",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__ResetForNewFrame",
+ "c_full": "ImDrawList__ResetForNewFrame",
+ "c_base": "ImDrawList__ResetForNewFrame"
+ },
+ {
+ "name": "_SetPixelDensity",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pixel_density",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__SetPixelDensity",
+ "c_full": "ImDrawList__SetPixelDensity",
+ "c_base": "ImDrawList__SetPixelDensity"
+ },
+ {
+ "name": "_ClearFreeMemory",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__ClearFreeMemory",
+ "c_full": "ImDrawList__ClearFreeMemory",
+ "c_base": "ImDrawList__ClearFreeMemory"
+ },
+ {
+ "name": "_PopUnusedDrawCmd",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__PopUnusedDrawCmd",
+ "c_full": "ImDrawList__PopUnusedDrawCmd",
+ "c_base": "ImDrawList__PopUnusedDrawCmd"
+ },
+ {
+ "name": "_TryMergeDrawCmds",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__TryMergeDrawCmds",
+ "c_full": "ImDrawList__TryMergeDrawCmds",
+ "c_base": "ImDrawList__TryMergeDrawCmds"
+ },
+ {
+ "name": "_OnChangedClipRect",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__OnChangedClipRect",
+ "c_full": "ImDrawList__OnChangedClipRect",
+ "c_base": "ImDrawList__OnChangedClipRect"
+ },
+ {
+ "name": "_OnChangedTexture",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__OnChangedTexture",
+ "c_full": "ImDrawList__OnChangedTexture",
+ "c_base": "ImDrawList__OnChangedTexture"
+ },
+ {
+ "name": "_OnChangedVtxOffset",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__OnChangedVtxOffset",
+ "c_full": "ImDrawList__OnChangedVtxOffset",
+ "c_base": "ImDrawList__OnChangedVtxOffset"
+ },
+ {
+ "name": "_SetTexture",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__SetTexture",
+ "c_full": "ImDrawList__SetTexture",
+ "c_base": "ImDrawList__SetTexture"
+ },
+ {
+ "name": "_CalcCircleAutoSegmentCount",
+ "scope": "ImDrawList",
+ "ret": "int",
+ "args": [
+ {
+ "name": "radius",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImDrawList__CalcCircleAutoSegmentCount",
+ "c_full": "ImDrawList__CalcCircleAutoSegmentCount",
+ "c_base": "ImDrawList__CalcCircleAutoSegmentCount"
+ },
+ {
+ "name": "_PathArcToFastEx",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "a_min_sample",
+ "type": "int"
+ },
+ {
+ "name": "a_max_sample",
+ "type": "int"
+ },
+ {
+ "name": "a_step",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__PathArcToFastEx",
+ "c_full": "ImDrawList__PathArcToFastEx",
+ "c_base": "ImDrawList__PathArcToFastEx"
+ },
+ {
+ "name": "_PathArcToN",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "radius",
+ "type": "float"
+ },
+ {
+ "name": "a_min",
+ "type": "float"
+ },
+ {
+ "name": "a_max",
+ "type": "float"
+ },
+ {
+ "name": "num_segments",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__PathArcToN",
+ "c_full": "ImDrawList__PathArcToN",
+ "c_base": "ImDrawList__PathArcToN"
+ },
+ {
+ "name": "_AddRectFilledBaked",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "r",
+ "type": "float"
+ },
+ {
+ "name": "tex_uvs",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__AddRectFilledBaked",
+ "c_full": "ImDrawList__AddRectFilledBaked",
+ "c_base": "ImDrawList__AddRectFilledBaked"
+ },
+ {
+ "name": "_AddRectBaked",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "r",
+ "type": "float"
+ },
+ {
+ "name": "t",
+ "type": "float"
+ },
+ {
+ "name": "tex_uvs",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__AddRectBaked",
+ "c_full": "ImDrawList__AddRectBaked",
+ "c_base": "ImDrawList__AddRectBaked"
+ },
+ {
+ "name": "_AddLine",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p2",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__AddLine",
+ "c_full": "ImDrawList__AddLine",
+ "c_base": "ImDrawList__AddLine"
+ },
+ {
+ "name": "_AddRectTinyRounding",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "p_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "rounding",
+ "type": "float"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__AddRectTinyRounding",
+ "c_full": "ImDrawList__AddRectTinyRounding",
+ "c_base": "ImDrawList__AddRectTinyRounding"
+ },
+ {
+ "name": "_SelectLineTexture",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "screen_thickness",
+ "type": "float"
+ },
+ {
+ "name": "out_uv0",
+ "type": "ImVec2*"
+ },
+ {
+ "name": "out_uv1",
+ "type": "ImVec2*"
+ },
+ {
+ "name": "out_fringe",
+ "type": "float*"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__SelectLineTexture",
+ "c_full": "ImDrawList__SelectLineTexture",
+ "c_base": "ImDrawList__SelectLineTexture"
+ },
+ {
+ "name": "_CalculateCenterBiasedOffset",
+ "scope": "ImDrawList",
+ "ret": "float",
+ "args": [
+ {
+ "name": "thickness",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__CalculateCenterBiasedOffset",
+ "c_full": "ImDrawList__CalculateCenterBiasedOffset",
+ "c_base": "ImDrawList__CalculateCenterBiasedOffset"
+ },
+ {
+ "name": "_AddPolyline",
+ "scope": "ImDrawList",
+ "ret": "void",
+ "args": [
+ {
+ "name": "points",
+ "type": "const ImVec2*"
+ },
+ {
+ "name": "num_points",
+ "type": "int"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "thickness",
+ "type": "float"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawFlags"
+ },
+ {
+ "name": "max_inner_offset",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawList__AddPolyline",
+ "c_full": "ImDrawList__AddPolyline",
+ "c_base": "ImDrawList__AddPolyline"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImDrawList",
+ "scope": "ImDrawList",
+ "ret": "ImDrawList*",
+ "args": [
+ {
+ "name": "shared_data",
+ "type": "ImDrawListSharedData*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImDrawList_New",
+ "c_full": "ImDrawList_New",
+ "c_base": "ImDrawList_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImDrawData",
+ "fields": [
+ {
+ "name": "Valid",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "FrameCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TotalIdxCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TotalVtxCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "CmdLists",
+ "type": "ImVector<ImDrawList*>",
+ "obsolete": false
+ },
+ {
+ "name": "DisplayPos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "DisplaySize",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "FramebufferScale",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "OwnerViewport",
+ "type": "ImGuiViewport*",
+ "obsolete": false
+ },
+ {
+ "name": "Textures",
+ "type": "ImVector<ImTextureData*>*",
+ "obsolete": false
+ },
+ {
+ "name": "CmdListsCount",
+ "type": "int",
+ "obsolete": true
+ }
+ ],
+ "methods": [
+ {
+ "name": "Clear",
+ "scope": "ImDrawData",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawData_Clear",
+ "c_full": "ImDrawData_Clear",
+ "c_base": "ImDrawData_Clear"
+ },
+ {
+ "name": "AddDrawList",
+ "scope": "ImDrawData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawData_AddDrawList",
+ "c_full": "ImDrawData_AddDrawList",
+ "c_base": "ImDrawData_AddDrawList"
+ },
+ {
+ "name": "DeIndexAllBuffers",
+ "scope": "ImDrawData",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawData_DeIndexAllBuffers",
+ "c_full": "ImDrawData_DeIndexAllBuffers",
+ "c_base": "ImDrawData_DeIndexAllBuffers"
+ },
+ {
+ "name": "ScaleClipRects",
+ "scope": "ImDrawData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fb_scale",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImDrawData_ScaleClipRects",
+ "c_full": "ImDrawData_ScaleClipRects",
+ "c_base": "ImDrawData_ScaleClipRects"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImDrawData",
+ "scope": "ImDrawData",
+ "ret": "ImDrawData*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImDrawData_New",
+ "c_full": "ImDrawData_New",
+ "c_base": "ImDrawData_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImTextureRect",
+ "fields": [
+ {
+ "name": "x",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "y",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "w",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "h",
+ "type": "unsigned short",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImTextureRect",
+ "scope": "ImTextureRect",
+ "ret": "ImTextureRect*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "implicit": true,
+ "overload_base": "ImTextureRect_New",
+ "c_full": "ImTextureRect_New",
+ "c_base": "ImTextureRect_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImTextureData",
+ "fields": [
+ {
+ "name": "UniqueID",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Status",
+ "type": "ImTextureStatus",
+ "obsolete": false
+ },
+ {
+ "name": "BackendUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "QueueUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "TexID",
+ "type": "ImTextureID",
+ "obsolete": false
+ },
+ {
+ "name": "Format",
+ "type": "ImTextureFormat",
+ "obsolete": false
+ },
+ {
+ "name": "Width",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Height",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "BytesPerPixel",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Pixels",
+ "type": "unsigned char*",
+ "obsolete": false
+ },
+ {
+ "name": "UsedRect",
+ "type": "ImTextureRect",
+ "obsolete": false
+ },
+ {
+ "name": "UpdateRect",
+ "type": "ImTextureRect",
+ "obsolete": false
+ },
+ {
+ "name": "Updates",
+ "type": "ImVector<ImTextureRect>",
+ "obsolete": false
+ },
+ {
+ "name": "UnusedFrames",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "RefCount",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "UseColors",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantDestroyNextFrame",
+ "type": "bool",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Create",
+ "scope": "ImTextureData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "format",
+ "type": "ImTextureFormat"
+ },
+ {
+ "name": "w",
+ "type": "int"
+ },
+ {
+ "name": "h",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_Create",
+ "c_full": "ImTextureData_Create",
+ "c_base": "ImTextureData_Create"
+ },
+ {
+ "name": "DestroyPixels",
+ "scope": "ImTextureData",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_DestroyPixels",
+ "c_full": "ImTextureData_DestroyPixels",
+ "c_base": "ImTextureData_DestroyPixels"
+ },
+ {
+ "name": "GetPixels",
+ "scope": "ImTextureData",
+ "ret": "void*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_GetPixels",
+ "c_full": "ImTextureData_GetPixels",
+ "c_base": "ImTextureData_GetPixels"
+ },
+ {
+ "name": "GetPixelsAt",
+ "scope": "ImTextureData",
+ "ret": "void*",
+ "args": [
+ {
+ "name": "x",
+ "type": "int"
+ },
+ {
+ "name": "y",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_GetPixelsAt",
+ "c_full": "ImTextureData_GetPixelsAt",
+ "c_base": "ImTextureData_GetPixelsAt"
+ },
+ {
+ "name": "GetSizeInBytes",
+ "scope": "ImTextureData",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImTextureData_GetSizeInBytes",
+ "c_full": "ImTextureData_GetSizeInBytes",
+ "c_base": "ImTextureData_GetSizeInBytes"
+ },
+ {
+ "name": "GetPitch",
+ "scope": "ImTextureData",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImTextureData_GetPitch",
+ "c_full": "ImTextureData_GetPitch",
+ "c_base": "ImTextureData_GetPitch"
+ },
+ {
+ "name": "GetTexRef",
+ "scope": "ImTextureData",
+ "ret": "ImTextureRef",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_GetTexRef",
+ "c_full": "ImTextureData_GetTexRef",
+ "c_base": "ImTextureData_GetTexRef"
+ },
+ {
+ "name": "GetTexID",
+ "scope": "ImTextureData",
+ "ret": "ImTextureID",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImTextureData_GetTexID",
+ "c_full": "ImTextureData_GetTexID",
+ "c_base": "ImTextureData_GetTexID"
+ },
+ {
+ "name": "SetTexID",
+ "scope": "ImTextureData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_id",
+ "type": "ImTextureID"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_SetTexID",
+ "c_full": "ImTextureData_SetTexID",
+ "c_base": "ImTextureData_SetTexID"
+ },
+ {
+ "name": "SetStatus",
+ "scope": "ImTextureData",
+ "ret": "void",
+ "args": [
+ {
+ "name": "status",
+ "type": "ImTextureStatus"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImTextureData_SetStatus",
+ "c_full": "ImTextureData_SetStatus",
+ "c_base": "ImTextureData_SetStatus"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImTextureData",
+ "scope": "ImTextureData",
+ "ret": "ImTextureData*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImTextureData_New",
+ "c_full": "ImTextureData_New",
+ "c_base": "ImTextureData_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImFontConfig",
+ "fields": [
+ {
+ "name": "Name",
+ "type": "char",
+ "obsolete": false,
+ "array": "40"
+ },
+ {
+ "name": "FontData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "FontDataSize",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "FontDataOwnedByAtlas",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "MergeMode",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "PixelSnapH",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "OversampleH",
+ "type": "ImS8",
+ "obsolete": false
+ },
+ {
+ "name": "OversampleV",
+ "type": "ImS8",
+ "obsolete": false
+ },
+ {
+ "name": "EllipsisChar",
+ "type": "ImWchar",
+ "obsolete": false
+ },
+ {
+ "name": "SizePixels",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphRanges",
+ "type": "const ImWchar*",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphExcludeRanges",
+ "type": "const ImWchar*",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphOffset",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphMinAdvanceX",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphMaxAdvanceX",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "GlyphExtraAdvanceX",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FontNo",
+ "type": "ImU32",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderFlags",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "RasterizerMultiply",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "RasterizerDensity",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ExtraSizeScale",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImFontFlags",
+ "obsolete": false
+ },
+ {
+ "name": "DstFont",
+ "type": "ImFont*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoader",
+ "type": "const ImFontLoader*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "PixelSnapV",
+ "type": "bool",
+ "obsolete": true
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImFontConfig",
+ "scope": "ImFontConfig",
+ "ret": "ImFontConfig*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontConfig_New",
+ "c_full": "ImFontConfig_New",
+ "c_base": "ImFontConfig_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImFontGlyph",
+ "fields": [
+ {
+ "name": "Colored",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 1
+ },
+ {
+ "name": "Visible",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 1
+ },
+ {
+ "name": "SourceIdx",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 4
+ },
+ {
+ "name": "Codepoint",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 26
+ },
+ {
+ "name": "AdvanceX",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "X0",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Y0",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "X1",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Y1",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "U0",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "V0",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "U1",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "V1",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "PackId",
+ "type": "int",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImFontGlyph",
+ "scope": "ImFontGlyph",
+ "ret": "ImFontGlyph*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontGlyph_New",
+ "c_full": "ImFontGlyph_New",
+ "c_base": "ImFontGlyph_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImFontGlyphRangesBuilder",
+ "fields": [
+ {
+ "name": "UsedChars",
+ "type": "ImVector<ImU32>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "Clear",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_Clear",
+ "c_full": "ImFontGlyphRangesBuilder_Clear",
+ "c_base": "ImFontGlyphRangesBuilder_Clear"
+ },
+ {
+ "name": "GetBit",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "n",
+ "type": "size_t"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_GetBit",
+ "c_full": "ImFontGlyphRangesBuilder_GetBit",
+ "c_base": "ImFontGlyphRangesBuilder_GetBit"
+ },
+ {
+ "name": "SetBit",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [
+ {
+ "name": "n",
+ "type": "size_t"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_SetBit",
+ "c_full": "ImFontGlyphRangesBuilder_SetBit",
+ "c_base": "ImFontGlyphRangesBuilder_SetBit"
+ },
+ {
+ "name": "AddChar",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_AddChar",
+ "c_full": "ImFontGlyphRangesBuilder_AddChar",
+ "c_base": "ImFontGlyphRangesBuilder_AddChar"
+ },
+ {
+ "name": "AddText",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_AddText",
+ "c_short": "ImFontGlyphRangesBuilder_AddText",
+ "c_full": "ImFontGlyphRangesBuilder_AddTextEx",
+ "c_base": "ImFontGlyphRangesBuilder_AddText"
+ },
+ {
+ "name": "AddRanges",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ranges",
+ "type": "const ImWchar*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_AddRanges",
+ "c_full": "ImFontGlyphRangesBuilder_AddRanges",
+ "c_base": "ImFontGlyphRangesBuilder_AddRanges"
+ },
+ {
+ "name": "BuildRanges",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "void",
+ "args": [
+ {
+ "name": "out_ranges",
+ "type": "ImVector<ImWchar>*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontGlyphRangesBuilder_BuildRanges",
+ "c_full": "ImFontGlyphRangesBuilder_BuildRanges",
+ "c_base": "ImFontGlyphRangesBuilder_BuildRanges"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImFontGlyphRangesBuilder",
+ "scope": "ImFontGlyphRangesBuilder",
+ "ret": "ImFontGlyphRangesBuilder*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontGlyphRangesBuilder_New",
+ "c_full": "ImFontGlyphRangesBuilder_New",
+ "c_base": "ImFontGlyphRangesBuilder_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImFontAtlasRect",
+ "fields": [
+ {
+ "name": "x",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "y",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "w",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "h",
+ "type": "unsigned short",
+ "obsolete": false
+ },
+ {
+ "name": "uv0",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "uv1",
+ "type": "ImVec2",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImFontAtlasRect",
+ "scope": "ImFontAtlasRect",
+ "ret": "ImFontAtlasRect*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontAtlasRect_New",
+ "c_full": "ImFontAtlasRect_New",
+ "c_base": "ImFontAtlasRect_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImFontAtlas",
+ "fields": [
+ {
+ "name": "Flags",
+ "type": "ImFontAtlasFlags",
+ "obsolete": false
+ },
+ {
+ "name": "TexDesiredFormat",
+ "type": "ImTextureFormat",
+ "obsolete": false
+ },
+ {
+ "name": "TexGlyphPadding",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TexMinWidth",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TexMinHeight",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TexMaxWidth",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "TexMaxHeight",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "UserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "__union0",
+ "type": "union",
+ "union": [
+ {
+ "name": "TexRef",
+ "type": "ImTextureRef",
+ "obsolete": true
+ },
+ {
+ "name": "TexID",
+ "type": "ImTextureRef",
+ "obsolete": true
+ }
+ ],
+ "obsolete": true
+ },
+ {
+ "name": "TexData",
+ "type": "ImTextureData*",
+ "obsolete": false
+ },
+ {
+ "name": "TexList",
+ "type": "ImVector<ImTextureData*>",
+ "obsolete": false
+ },
+ {
+ "name": "Locked",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "RendererHasTextures",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "TexIsBuilt",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "TexPixelsUseColors",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "TexUvScale",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "TexUvWhitePixel",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "Fonts",
+ "type": "ImVector<ImFont*>",
+ "obsolete": false
+ },
+ {
+ "name": "Sources",
+ "type": "ImVector<ImFontConfig>",
+ "obsolete": false
+ },
+ {
+ "name": "TexNextUniqueID",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "FontNextUniqueID",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "DrawListSharedDatas",
+ "type": "ImVector<ImDrawListSharedData*>",
+ "obsolete": false
+ },
+ {
+ "name": "Builder",
+ "type": "ImFontAtlasBuilder*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoader",
+ "type": "const ImFontLoader*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderName",
+ "type": "const char*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderFlags",
+ "type": "unsigned int",
+ "obsolete": false
+ },
+ {
+ "name": "RefCount",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "OwnerContext",
+ "type": "ImGuiContext*",
+ "obsolete": false
+ },
+ {
+ "name": "TempRect",
+ "type": "ImFontAtlasRect",
+ "obsolete": true
+ }
+ ],
+ "methods": [
+ {
+ "name": "AddFont",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFont",
+ "c_full": "ImFontAtlas_AddFont",
+ "c_base": "ImFontAtlas_AddFont"
+ },
+ {
+ "name": "AddFontDefault",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontDefault",
+ "c_short": "ImFontAtlas_AddFontDefault",
+ "c_full": "ImFontAtlas_AddFontDefaultEx",
+ "c_base": "ImFontAtlas_AddFontDefault"
+ },
+ {
+ "name": "AddFontDefaultVector",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontDefaultVector",
+ "c_short": "ImFontAtlas_AddFontDefaultVector",
+ "c_full": "ImFontAtlas_AddFontDefaultVectorEx",
+ "c_base": "ImFontAtlas_AddFontDefaultVector"
+ },
+ {
+ "name": "AddFontDefaultBitmap",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontDefaultBitmap",
+ "c_short": "ImFontAtlas_AddFontDefaultBitmap",
+ "c_full": "ImFontAtlas_AddFontDefaultBitmapEx",
+ "c_base": "ImFontAtlas_AddFontDefaultBitmap"
+ },
+ {
+ "name": "AddFontFromFileTTF",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "filename",
+ "type": "const char*"
+ },
+ {
+ "name": "size_pixels",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ },
+ {
+ "name": "glyph_ranges",
+ "type": "const ImWchar*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontFromFileTTF",
+ "c_short": "ImFontAtlas_AddFontFromFileTTF",
+ "c_full": "ImFontAtlas_AddFontFromFileTTFEx",
+ "c_base": "ImFontAtlas_AddFontFromFileTTF"
+ },
+ {
+ "name": "AddFontFromMemoryTTF",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "font_data",
+ "type": "void*"
+ },
+ {
+ "name": "font_data_size",
+ "type": "int"
+ },
+ {
+ "name": "size_pixels",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ },
+ {
+ "name": "glyph_ranges",
+ "type": "const ImWchar*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontFromMemoryTTF",
+ "c_short": "ImFontAtlas_AddFontFromMemoryTTF",
+ "c_full": "ImFontAtlas_AddFontFromMemoryTTFEx",
+ "c_base": "ImFontAtlas_AddFontFromMemoryTTF"
+ },
+ {
+ "name": "AddFontFromMemoryCompressedTTF",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "compressed_font_data",
+ "type": "const void*"
+ },
+ {
+ "name": "compressed_font_data_size",
+ "type": "int"
+ },
+ {
+ "name": "size_pixels",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ },
+ {
+ "name": "glyph_ranges",
+ "type": "const ImWchar*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontFromMemoryCompressedTTF",
+ "c_short": "ImFontAtlas_AddFontFromMemoryCompressedTTF",
+ "c_full": "ImFontAtlas_AddFontFromMemoryCompressedTTFEx",
+ "c_base": "ImFontAtlas_AddFontFromMemoryCompressedTTF"
+ },
+ {
+ "name": "AddFontFromMemoryCompressedBase85TTF",
+ "scope": "ImFontAtlas",
+ "ret": "ImFont*",
+ "args": [
+ {
+ "name": "compressed_font_data_base85",
+ "type": "const char*"
+ },
+ {
+ "name": "size_pixels",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "font_cfg",
+ "type": "const ImFontConfig*",
+ "default": "NULL"
+ },
+ {
+ "name": "glyph_ranges",
+ "type": "const ImWchar*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF",
+ "c_short": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF",
+ "c_full": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx",
+ "c_base": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"
+ },
+ {
+ "name": "RemoveFont",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "font",
+ "type": "ImFont*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_RemoveFont",
+ "c_full": "ImFontAtlas_RemoveFont",
+ "c_base": "ImFontAtlas_RemoveFont"
+ },
+ {
+ "name": "CompactCache",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_CompactCache",
+ "c_full": "ImFontAtlas_CompactCache",
+ "c_base": "ImFontAtlas_CompactCache"
+ },
+ {
+ "name": "SetFontLoader",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "font_loader",
+ "type": "const ImFontLoader*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_SetFontLoader",
+ "c_full": "ImFontAtlas_SetFontLoader",
+ "c_base": "ImFontAtlas_SetFontLoader"
+ },
+ {
+ "name": "Clear",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_Clear",
+ "c_full": "ImFontAtlas_Clear",
+ "c_base": "ImFontAtlas_Clear"
+ },
+ {
+ "name": "ClearFonts",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_ClearFonts",
+ "c_full": "ImFontAtlas_ClearFonts",
+ "c_base": "ImFontAtlas_ClearFonts"
+ },
+ {
+ "name": "ClearInputData",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_ClearInputData",
+ "c_full": "ImFontAtlas_ClearInputData",
+ "c_base": "ImFontAtlas_ClearInputData"
+ },
+ {
+ "name": "ClearTexData",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_ClearTexData",
+ "c_full": "ImFontAtlas_ClearTexData",
+ "c_base": "ImFontAtlas_ClearTexData"
+ },
+ {
+ "name": "Build",
+ "scope": "ImFontAtlas",
+ "ret": "bool",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetTexDataAsAlpha8",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "out_pixels",
+ "type": "unsigned char**"
+ },
+ {
+ "name": "out_width",
+ "type": "int*"
+ },
+ {
+ "name": "out_height",
+ "type": "int*"
+ },
+ {
+ "name": "out_bytes_per_pixel",
+ "type": "int*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetTexDataAsRGBA32",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "out_pixels",
+ "type": "unsigned char**"
+ },
+ {
+ "name": "out_width",
+ "type": "int*"
+ },
+ {
+ "name": "out_height",
+ "type": "int*"
+ },
+ {
+ "name": "out_bytes_per_pixel",
+ "type": "int*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "SetTexID",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImTextureID"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "SetTexID",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImTextureRef"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "IsBuilt",
+ "scope": "ImFontAtlas",
+ "ret": "bool",
+ "args": [],
+ "obsolete": true,
+ "api": false,
+ "const": true,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesDefault",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_GetGlyphRangesDefault",
+ "c_full": "ImFontAtlas_GetGlyphRangesDefault",
+ "c_base": "ImFontAtlas_GetGlyphRangesDefault"
+ },
+ {
+ "name": "GetGlyphRangesGreek",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesKorean",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesJapanese",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesChineseFull",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesChineseSimplifiedCommon",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesCyrillic",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesThai",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetGlyphRangesVietnamese",
+ "scope": "ImFontAtlas",
+ "ret": "const ImWchar*",
+ "args": [],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "AddCustomRect",
+ "scope": "ImFontAtlas",
+ "ret": "ImFontAtlasRectId",
+ "args": [
+ {
+ "name": "width",
+ "type": "int"
+ },
+ {
+ "name": "height",
+ "type": "int"
+ },
+ {
+ "name": "out_r",
+ "type": "ImFontAtlasRect*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_AddCustomRect",
+ "c_short": "ImFontAtlas_AddCustomRect",
+ "c_full": "ImFontAtlas_AddCustomRectEx",
+ "c_base": "ImFontAtlas_AddCustomRect"
+ },
+ {
+ "name": "RemoveCustomRect",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImFontAtlasRectId"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontAtlas_RemoveCustomRect",
+ "c_full": "ImFontAtlas_RemoveCustomRect",
+ "c_base": "ImFontAtlas_RemoveCustomRect"
+ },
+ {
+ "name": "GetCustomRect",
+ "scope": "ImFontAtlas",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImFontAtlasRectId"
+ },
+ {
+ "name": "out_r",
+ "type": "ImFontAtlasRect*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": true,
+ "static": false,
+ "overload_base": "ImFontAtlas_GetCustomRect",
+ "c_full": "ImFontAtlas_GetCustomRect",
+ "c_base": "ImFontAtlas_GetCustomRect"
+ },
+ {
+ "name": "AddCustomRectRegular",
+ "scope": "ImFontAtlas",
+ "ret": "ImFontAtlasRectId",
+ "args": [
+ {
+ "name": "w",
+ "type": "int"
+ },
+ {
+ "name": "h",
+ "type": "int"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "GetCustomRectByIndex",
+ "scope": "ImFontAtlas",
+ "ret": "const ImFontAtlasRect*",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImFontAtlasRectId"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "CalcCustomRectUV",
+ "scope": "ImFontAtlas",
+ "ret": "void",
+ "args": [
+ {
+ "name": "r",
+ "type": "const ImFontAtlasRect*"
+ },
+ {
+ "name": "out_uv_min",
+ "type": "ImVec2*"
+ },
+ {
+ "name": "out_uv_max",
+ "type": "ImVec2*"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": true,
+ "static": false
+ },
+ {
+ "name": "AddCustomRectFontGlyph",
+ "scope": "ImFontAtlas",
+ "ret": "ImFontAtlasRectId",
+ "args": [
+ {
+ "name": "font",
+ "type": "ImFont*"
+ },
+ {
+ "name": "codepoint",
+ "type": "ImWchar"
+ },
+ {
+ "name": "w",
+ "type": "int"
+ },
+ {
+ "name": "h",
+ "type": "int"
+ },
+ {
+ "name": "advance_x",
+ "type": "float"
+ },
+ {
+ "name": "offset",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "AddCustomRectFontGlyphForSize",
+ "scope": "ImFontAtlas",
+ "ret": "ImFontAtlasRectId",
+ "args": [
+ {
+ "name": "font",
+ "type": "ImFont*"
+ },
+ {
+ "name": "font_size",
+ "type": "float"
+ },
+ {
+ "name": "codepoint",
+ "type": "ImWchar"
+ },
+ {
+ "name": "w",
+ "type": "int"
+ },
+ {
+ "name": "h",
+ "type": "int"
+ },
+ {
+ "name": "advance_x",
+ "type": "float"
+ },
+ {
+ "name": "offset",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": true,
+ "api": true,
+ "const": false,
+ "static": false
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImFontAtlas",
+ "scope": "ImFontAtlas",
+ "ret": "ImFontAtlas*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontAtlas_New",
+ "c_full": "ImFontAtlas_New",
+ "c_base": "ImFontAtlas_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImFontBaked",
+ "fields": [
+ {
+ "name": "IndexAdvanceX",
+ "type": "ImVector<float>",
+ "obsolete": false
+ },
+ {
+ "name": "FallbackAdvanceX",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Size",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "RasterizerDensity",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "IndexLookup",
+ "type": "ImVector<ImU16>",
+ "obsolete": false
+ },
+ {
+ "name": "Glyphs",
+ "type": "ImVector<ImFontGlyph>",
+ "obsolete": false
+ },
+ {
+ "name": "FallbackGlyphIndex",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Ascent",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Descent",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "MetricsTotalSurface",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 26
+ },
+ {
+ "name": "WantDestroy",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 1
+ },
+ {
+ "name": "LoadNoFallback",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 1
+ },
+ {
+ "name": "LoadNoRenderOnLayout",
+ "type": "unsigned int",
+ "obsolete": false,
+ "bitfield": 1
+ },
+ {
+ "name": "LastUsedFrame",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "BakedId",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "OwnerFont",
+ "type": "ImFont*",
+ "obsolete": false
+ },
+ {
+ "name": "FontLoaderDatas",
+ "type": "void*",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "ClearOutputData",
+ "scope": "ImFontBaked",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontBaked_ClearOutputData",
+ "c_full": "ImFontBaked_ClearOutputData",
+ "c_base": "ImFontBaked_ClearOutputData"
+ },
+ {
+ "name": "FindGlyph",
+ "scope": "ImFontBaked",
+ "ret": "ImFontGlyph*",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontBaked_FindGlyph",
+ "c_full": "ImFontBaked_FindGlyph",
+ "c_base": "ImFontBaked_FindGlyph"
+ },
+ {
+ "name": "FindGlyphNoFallback",
+ "scope": "ImFontBaked",
+ "ret": "ImFontGlyph*",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontBaked_FindGlyphNoFallback",
+ "c_full": "ImFontBaked_FindGlyphNoFallback",
+ "c_base": "ImFontBaked_FindGlyphNoFallback"
+ },
+ {
+ "name": "GetCharAdvance",
+ "scope": "ImFontBaked",
+ "ret": "float",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontBaked_GetCharAdvance",
+ "c_full": "ImFontBaked_GetCharAdvance",
+ "c_base": "ImFontBaked_GetCharAdvance"
+ },
+ {
+ "name": "IsGlyphLoaded",
+ "scope": "ImFontBaked",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFontBaked_IsGlyphLoaded",
+ "c_full": "ImFontBaked_IsGlyphLoaded",
+ "c_base": "ImFontBaked_IsGlyphLoaded"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImFontBaked",
+ "scope": "ImFontBaked",
+ "ret": "ImFontBaked*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFontBaked_New",
+ "c_full": "ImFontBaked_New",
+ "c_base": "ImFontBaked_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImFont",
+ "fields": [
+ {
+ "name": "LastBaked",
+ "type": "ImFontBaked*",
+ "obsolete": false
+ },
+ {
+ "name": "OwnerAtlas",
+ "type": "ImFontAtlas*",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImFontFlags",
+ "obsolete": false
+ },
+ {
+ "name": "CurrentRasterizerDensity",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "FontId",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "LegacySize",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "Sources",
+ "type": "ImVector<ImFontConfig*>",
+ "obsolete": false
+ },
+ {
+ "name": "EllipsisChar",
+ "type": "ImWchar",
+ "obsolete": false
+ },
+ {
+ "name": "FallbackChar",
+ "type": "ImWchar",
+ "obsolete": false
+ },
+ {
+ "name": "Used8kPagesMap",
+ "type": "ImU8",
+ "obsolete": false,
+ "array": "(IM_UNICODE_CODEPOINT_MAX + 1) / 8192 / 8"
+ },
+ {
+ "name": "EllipsisAutoBake",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "RemapPairs",
+ "type": "ImGuiStorage",
+ "obsolete": false
+ },
+ {
+ "name": "Scale",
+ "type": "float",
+ "obsolete": true
+ }
+ ],
+ "methods": [
+ {
+ "name": "IsGlyphInFont",
+ "scope": "ImFont",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "c",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_IsGlyphInFont",
+ "c_full": "ImFont_IsGlyphInFont",
+ "c_base": "ImFont_IsGlyphInFont"
+ },
+ {
+ "name": "IsLoaded",
+ "scope": "ImFont",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImFont_IsLoaded",
+ "c_full": "ImFont_IsLoaded",
+ "c_base": "ImFont_IsLoaded"
+ },
+ {
+ "name": "GetDebugName",
+ "scope": "ImFont",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImFont_GetDebugName",
+ "c_full": "ImFont_GetDebugName",
+ "c_base": "ImFont_GetDebugName"
+ },
+ {
+ "name": "GetFontBaked",
+ "scope": "ImFont",
+ "ret": "ImFontBaked*",
+ "args": [
+ {
+ "name": "font_size",
+ "type": "float"
+ },
+ {
+ "name": "density",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_GetFontBaked",
+ "c_short": "ImFont_GetFontBaked",
+ "c_full": "ImFont_GetFontBakedEx",
+ "c_base": "ImFont_GetFontBaked"
+ },
+ {
+ "name": "CalcTextSizeA",
+ "scope": "ImFont",
+ "ret": "ImVec2",
+ "args": [
+ {
+ "name": "size",
+ "type": "float"
+ },
+ {
+ "name": "max_width",
+ "type": "float"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float"
+ },
+ {
+ "name": "text_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "out_remaining",
+ "type": "const char**",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_CalcTextSizeA",
+ "c_short": "ImFont_CalcTextSizeA",
+ "c_full": "ImFont_CalcTextSizeAEx",
+ "c_base": "ImFont_CalcTextSizeA"
+ },
+ {
+ "name": "CalcWordWrapPosition",
+ "scope": "ImFont",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "size",
+ "type": "float"
+ },
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_CalcWordWrapPosition",
+ "c_full": "ImFont_CalcWordWrapPosition",
+ "c_base": "ImFont_CalcWordWrapPosition"
+ },
+ {
+ "name": "RenderChar",
+ "scope": "ImFont",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ },
+ {
+ "name": "size",
+ "type": "float"
+ },
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "c",
+ "type": "ImWchar"
+ },
+ {
+ "name": "cpu_fine_clip",
+ "type": "const ImVec4*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_RenderChar",
+ "c_short": "ImFont_RenderChar",
+ "c_full": "ImFont_RenderCharEx",
+ "c_base": "ImFont_RenderChar"
+ },
+ {
+ "name": "RenderText",
+ "scope": "ImFont",
+ "ret": "void",
+ "args": [
+ {
+ "name": "draw_list",
+ "type": "ImDrawList*"
+ },
+ {
+ "name": "size",
+ "type": "float"
+ },
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "clip_rect",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "text_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "flags",
+ "type": "ImDrawTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_RenderText",
+ "c_short": "ImFont_RenderText",
+ "c_full": "ImFont_RenderTextEx",
+ "c_base": "ImFont_RenderText"
+ },
+ {
+ "name": "CalcWordWrapPositionA",
+ "scope": "ImFont",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "scale",
+ "type": "float"
+ },
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": false,
+ "const": false,
+ "static": false
+ },
+ {
+ "name": "ClearOutputData",
+ "scope": "ImFont",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_ClearOutputData",
+ "c_full": "ImFont_ClearOutputData",
+ "c_base": "ImFont_ClearOutputData"
+ },
+ {
+ "name": "AddRemapCodepoint",
+ "scope": "ImFont",
+ "ret": "void",
+ "args": [
+ {
+ "name": "from_codepoint",
+ "type": "ImWchar"
+ },
+ {
+ "name": "to_codepoint",
+ "type": "ImWchar"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_AddRemapCodepoint",
+ "c_full": "ImFont_AddRemapCodepoint",
+ "c_base": "ImFont_AddRemapCodepoint"
+ },
+ {
+ "name": "AddRemapCodepointToGlyphIndex",
+ "scope": "ImFont",
+ "ret": "void",
+ "args": [
+ {
+ "name": "from_codepoint",
+ "type": "ImWchar"
+ },
+ {
+ "name": "font_src_idx",
+ "type": "int"
+ },
+ {
+ "name": "glyph_idx",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_AddRemapCodepointToGlyphIndex",
+ "c_full": "ImFont_AddRemapCodepointToGlyphIndex",
+ "c_base": "ImFont_AddRemapCodepointToGlyphIndex"
+ },
+ {
+ "name": "IsGlyphRangeUnused",
+ "scope": "ImFont",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "c_begin",
+ "type": "unsigned int"
+ },
+ {
+ "name": "c_last",
+ "type": "unsigned int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImFont_IsGlyphRangeUnused",
+ "c_full": "ImFont_IsGlyphRangeUnused",
+ "c_base": "ImFont_IsGlyphRangeUnused"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImFont",
+ "scope": "ImFont",
+ "ret": "ImFont*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImFont_New",
+ "c_full": "ImFont_New",
+ "c_base": "ImFont_New"
+ }
+ ],
+ "has_dtor": true,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiViewport",
+ "fields": [
+ {
+ "name": "ID",
+ "type": "ImGuiID",
+ "obsolete": false
+ },
+ {
+ "name": "Flags",
+ "type": "ImGuiViewportFlags",
+ "obsolete": false
+ },
+ {
+ "name": "Pos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "Size",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "FramebufferScale",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "WorkPos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "WorkSize",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "PlatformHandle",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "PlatformHandleRaw",
+ "type": "void*",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "GetCenter",
+ "scope": "ImGuiViewport",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiViewport_GetCenter",
+ "c_full": "ImGuiViewport_GetCenter",
+ "c_base": "ImGuiViewport_GetCenter"
+ },
+ {
+ "name": "GetWorkCenter",
+ "scope": "ImGuiViewport",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": true,
+ "static": false,
+ "overload_base": "ImGuiViewport_GetWorkCenter",
+ "c_full": "ImGuiViewport_GetWorkCenter",
+ "c_base": "ImGuiViewport_GetWorkCenter"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiViewport",
+ "scope": "ImGuiViewport",
+ "ret": "ImGuiViewport*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiViewport_New",
+ "c_full": "ImGuiViewport_New",
+ "c_base": "ImGuiViewport_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiPlatformIO",
+ "fields": [
+ {
+ "name": "Platform_GetClipboardTextFn",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "Platform_SetClipboardTextFn",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*"
+ },
+ {
+ "name": "text",
+ "type": "const char*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "Platform_ClipboardUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "Platform_OpenInShellFn",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "bool",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*"
+ },
+ {
+ "name": "path",
+ "type": "const char*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "Platform_OpenInShellUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "Platform_SetImeDataFn",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "void",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*"
+ },
+ {
+ "name": "viewport",
+ "type": "ImGuiViewport*"
+ },
+ {
+ "name": "data",
+ "type": "ImGuiPlatformImeData*"
+ }
+ ]
+ },
+ "obsolete": false
+ },
+ {
+ "name": "Platform_ImeUserData",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "Platform_LocaleDecimalPoint",
+ "type": "ImWchar",
+ "obsolete": false
+ },
+ {
+ "name": "Platform_SessionDate",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Renderer_TextureMaxWidth",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Renderer_TextureMaxHeight",
+ "type": "int",
+ "obsolete": false
+ },
+ {
+ "name": "Renderer_RenderState",
+ "type": "void*",
+ "obsolete": false
+ },
+ {
+ "name": "DrawCallback_ResetRenderState",
+ "type": "ImDrawCallback",
+ "obsolete": false
+ },
+ {
+ "name": "DrawCallback_SetSamplerLinear",
+ "type": "ImDrawCallback",
+ "obsolete": false
+ },
+ {
+ "name": "DrawCallback_SetSamplerNearest",
+ "type": "ImDrawCallback",
+ "obsolete": false
+ },
+ {
+ "name": "DrawCallback_SetSamplerFromTex",
+ "type": "ImDrawCallback",
+ "obsolete": false
+ },
+ {
+ "name": "Textures",
+ "type": "ImVector<ImTextureData*>",
+ "obsolete": false
+ }
+ ],
+ "methods": [
+ {
+ "name": "ClearPlatformHandlers",
+ "scope": "ImGuiPlatformIO",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiPlatformIO_ClearPlatformHandlers",
+ "c_full": "ImGuiPlatformIO_ClearPlatformHandlers",
+ "c_base": "ImGuiPlatformIO_ClearPlatformHandlers"
+ },
+ {
+ "name": "ClearRendererHandlers",
+ "scope": "ImGuiPlatformIO",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "overload_base": "ImGuiPlatformIO_ClearRendererHandlers",
+ "c_full": "ImGuiPlatformIO_ClearRendererHandlers",
+ "c_base": "ImGuiPlatformIO_ClearRendererHandlers"
+ }
+ ],
+ "ctors": [
+ {
+ "name": "ImGuiPlatformIO",
+ "scope": "ImGuiPlatformIO",
+ "ret": "ImGuiPlatformIO*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiPlatformIO_New",
+ "c_full": "ImGuiPlatformIO_New",
+ "c_base": "ImGuiPlatformIO_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ },
+ {
+ "name": "ImGuiPlatformImeData",
+ "fields": [
+ {
+ "name": "WantVisible",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "WantTextInput",
+ "type": "bool",
+ "obsolete": false
+ },
+ {
+ "name": "InputPos",
+ "type": "ImVec2",
+ "obsolete": false
+ },
+ {
+ "name": "InputLineHeight",
+ "type": "float",
+ "obsolete": false
+ },
+ {
+ "name": "ViewportId",
+ "type": "ImGuiID",
+ "obsolete": false
+ }
+ ],
+ "methods": [],
+ "ctors": [
+ {
+ "name": "ImGuiPlatformImeData",
+ "scope": "ImGuiPlatformImeData",
+ "ret": "ImGuiPlatformImeData*",
+ "args": [],
+ "obsolete": false,
+ "api": false,
+ "const": false,
+ "static": false,
+ "ctor": true,
+ "overload_base": "ImGuiPlatformImeData_New",
+ "c_full": "ImGuiPlatformImeData_New",
+ "c_base": "ImGuiPlatformImeData_New"
+ }
+ ],
+ "has_dtor": false,
+ "opaque": false
+ }
+ ],
+ "opaque": [
+ "ImDrawListSharedData",
+ "ImFontAtlasBuilder",
+ "ImFontLoader",
+ "ImGuiContext",
+ "ImGuiTextFilterItem"
+ ],
+ "functions": [
+ {
+ "name": "CreateContext",
+ "scope": "ImGui",
+ "ret": "ImGuiContext*",
+ "args": [
+ {
+ "name": "shared_font_atlas",
+ "type": "ImFontAtlas*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CreateContext",
+ "c_short": "ImGui_CreateContext",
+ "c_full": "ImGui_CreateContextEx",
+ "c_base": "ImGui_CreateContext"
+ },
+ {
+ "name": "DestroyContext",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DestroyContext",
+ "c_short": "ImGui_DestroyContext",
+ "c_full": "ImGui_DestroyContextEx",
+ "c_base": "ImGui_DestroyContext"
+ },
+ {
+ "name": "GetCurrentContext",
+ "scope": "ImGui",
+ "ret": "ImGuiContext*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCurrentContext",
+ "c_full": "ImGui_GetCurrentContext",
+ "c_base": "ImGui_GetCurrentContext"
+ },
+ {
+ "name": "SetCurrentContext",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ctx",
+ "type": "ImGuiContext*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetCurrentContext",
+ "c_full": "ImGui_SetCurrentContext",
+ "c_base": "ImGui_SetCurrentContext"
+ },
+ {
+ "name": "GetIO",
+ "scope": "ImGui",
+ "ret": "ImGuiIO&",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetIO",
+ "c_full": "ImGui_GetIO",
+ "c_base": "ImGui_GetIO"
+ },
+ {
+ "name": "GetPlatformIO",
+ "scope": "ImGui",
+ "ret": "ImGuiPlatformIO&",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetPlatformIO",
+ "c_full": "ImGui_GetPlatformIO",
+ "c_base": "ImGui_GetPlatformIO"
+ },
+ {
+ "name": "GetStyle",
+ "scope": "ImGui",
+ "ret": "ImGuiStyle&",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetStyle",
+ "c_full": "ImGui_GetStyle",
+ "c_base": "ImGui_GetStyle"
+ },
+ {
+ "name": "NewFrame",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_NewFrame",
+ "c_full": "ImGui_NewFrame",
+ "c_base": "ImGui_NewFrame"
+ },
+ {
+ "name": "EndFrame",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndFrame",
+ "c_full": "ImGui_EndFrame",
+ "c_base": "ImGui_EndFrame"
+ },
+ {
+ "name": "Render",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Render",
+ "c_full": "ImGui_Render",
+ "c_base": "ImGui_Render"
+ },
+ {
+ "name": "GetDrawData",
+ "scope": "ImGui",
+ "ret": "ImDrawData*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetDrawData",
+ "c_full": "ImGui_GetDrawData",
+ "c_base": "ImGui_GetDrawData"
+ },
+ {
+ "name": "ShowDemoWindow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowDemoWindow",
+ "c_short": "ImGui_ShowDemoWindow",
+ "c_full": "ImGui_ShowDemoWindowEx",
+ "c_base": "ImGui_ShowDemoWindow"
+ },
+ {
+ "name": "ShowMetricsWindow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowMetricsWindow",
+ "c_short": "ImGui_ShowMetricsWindow",
+ "c_full": "ImGui_ShowMetricsWindowEx",
+ "c_base": "ImGui_ShowMetricsWindow"
+ },
+ {
+ "name": "ShowDebugLogWindow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowDebugLogWindow",
+ "c_short": "ImGui_ShowDebugLogWindow",
+ "c_full": "ImGui_ShowDebugLogWindowEx",
+ "c_base": "ImGui_ShowDebugLogWindow"
+ },
+ {
+ "name": "ShowIDStackToolWindow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowIDStackToolWindow",
+ "c_short": "ImGui_ShowIDStackToolWindow",
+ "c_full": "ImGui_ShowIDStackToolWindowEx",
+ "c_base": "ImGui_ShowIDStackToolWindow"
+ },
+ {
+ "name": "ShowAboutWindow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowAboutWindow",
+ "c_short": "ImGui_ShowAboutWindow",
+ "c_full": "ImGui_ShowAboutWindowEx",
+ "c_base": "ImGui_ShowAboutWindow"
+ },
+ {
+ "name": "ShowStyleEditor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ref",
+ "type": "ImGuiStyle*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowStyleEditor",
+ "c_short": "ImGui_ShowStyleEditor",
+ "c_full": "ImGui_ShowStyleEditorEx",
+ "c_base": "ImGui_ShowStyleEditor"
+ },
+ {
+ "name": "ShowStyleSelector",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowStyleSelector",
+ "c_full": "ImGui_ShowStyleSelector",
+ "c_base": "ImGui_ShowStyleSelector"
+ },
+ {
+ "name": "ShowFontSelector",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowFontSelector",
+ "c_full": "ImGui_ShowFontSelector",
+ "c_base": "ImGui_ShowFontSelector"
+ },
+ {
+ "name": "ShowUserGuide",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ShowUserGuide",
+ "c_full": "ImGui_ShowUserGuide",
+ "c_base": "ImGui_ShowUserGuide"
+ },
+ {
+ "name": "GetVersion",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetVersion",
+ "c_full": "ImGui_GetVersion",
+ "c_base": "ImGui_GetVersion"
+ },
+ {
+ "name": "StyleColorsDark",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "dst",
+ "type": "ImGuiStyle*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_StyleColorsDark",
+ "c_short": "ImGui_StyleColorsDark",
+ "c_full": "ImGui_StyleColorsDarkEx",
+ "c_base": "ImGui_StyleColorsDark"
+ },
+ {
+ "name": "StyleColorsLight",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "dst",
+ "type": "ImGuiStyle*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_StyleColorsLight",
+ "c_short": "ImGui_StyleColorsLight",
+ "c_full": "ImGui_StyleColorsLightEx",
+ "c_base": "ImGui_StyleColorsLight"
+ },
+ {
+ "name": "StyleColorsClassic",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "dst",
+ "type": "ImGuiStyle*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_StyleColorsClassic",
+ "c_short": "ImGui_StyleColorsClassic",
+ "c_full": "ImGui_StyleColorsClassicEx",
+ "c_base": "ImGui_StyleColorsClassic"
+ },
+ {
+ "name": "Begin",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ },
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiWindowFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Begin",
+ "c_short": "ImGui_Begin",
+ "c_full": "ImGui_BeginEx",
+ "c_base": "ImGui_Begin"
+ },
+ {
+ "name": "End",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_End",
+ "c_full": "ImGui_End",
+ "c_base": "ImGui_End"
+ },
+ {
+ "name": "BeginChild",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "child_flags",
+ "type": "ImGuiChildFlags",
+ "default": "0"
+ },
+ {
+ "name": "window_flags",
+ "type": "ImGuiWindowFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginChild",
+ "c_short": "ImGui_BeginChild",
+ "c_full": "ImGui_BeginChildEx",
+ "c_base": "ImGui_BeginChild"
+ },
+ {
+ "name": "BeginChild",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "child_flags",
+ "type": "ImGuiChildFlags",
+ "default": "0"
+ },
+ {
+ "name": "window_flags",
+ "type": "ImGuiWindowFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginChild",
+ "overload_of": "ImGui_BeginChildEx",
+ "c_short": "ImGui_BeginChildID",
+ "c_full": "ImGui_BeginChildIDEx",
+ "c_base": "ImGui_BeginChildID"
+ },
+ {
+ "name": "EndChild",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndChild",
+ "c_full": "ImGui_EndChild",
+ "c_base": "ImGui_EndChild"
+ },
+ {
+ "name": "IsWindowAppearing",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsWindowAppearing",
+ "c_full": "ImGui_IsWindowAppearing",
+ "c_base": "ImGui_IsWindowAppearing"
+ },
+ {
+ "name": "IsWindowCollapsed",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsWindowCollapsed",
+ "c_full": "ImGui_IsWindowCollapsed",
+ "c_base": "ImGui_IsWindowCollapsed"
+ },
+ {
+ "name": "IsWindowFocused",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiFocusedFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsWindowFocused",
+ "c_short": "ImGui_IsWindowFocused",
+ "c_full": "ImGui_IsWindowFocusedEx",
+ "c_base": "ImGui_IsWindowFocused"
+ },
+ {
+ "name": "IsWindowHovered",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiHoveredFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsWindowHovered",
+ "c_short": "ImGui_IsWindowHovered",
+ "c_full": "ImGui_IsWindowHoveredEx",
+ "c_base": "ImGui_IsWindowHovered"
+ },
+ {
+ "name": "GetWindowDrawList",
+ "scope": "ImGui",
+ "ret": "ImDrawList*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetWindowDrawList",
+ "c_full": "ImGui_GetWindowDrawList",
+ "c_base": "ImGui_GetWindowDrawList"
+ },
+ {
+ "name": "GetWindowPos",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetWindowPos",
+ "c_full": "ImGui_GetWindowPos",
+ "c_base": "ImGui_GetWindowPos"
+ },
+ {
+ "name": "GetWindowSize",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetWindowSize",
+ "c_full": "ImGui_GetWindowSize",
+ "c_base": "ImGui_GetWindowSize"
+ },
+ {
+ "name": "GetWindowWidth",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetWindowWidth",
+ "c_full": "ImGui_GetWindowWidth",
+ "c_base": "ImGui_GetWindowWidth"
+ },
+ {
+ "name": "GetWindowHeight",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetWindowHeight",
+ "c_full": "ImGui_GetWindowHeight",
+ "c_base": "ImGui_GetWindowHeight"
+ },
+ {
+ "name": "SetNextWindowPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ },
+ {
+ "name": "pivot",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowPos",
+ "c_short": "ImGui_SetNextWindowPos",
+ "c_full": "ImGui_SetNextWindowPosEx",
+ "c_base": "ImGui_SetNextWindowPos"
+ },
+ {
+ "name": "SetNextWindowSize",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowSize",
+ "c_short": "ImGui_SetNextWindowSize",
+ "c_full": "ImGui_SetNextWindowSizeEx",
+ "c_base": "ImGui_SetNextWindowSize"
+ },
+ {
+ "name": "SetNextWindowSizeConstraints",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "size_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "custom_callback",
+ "type": "ImGuiSizeCallback",
+ "default": "NULL"
+ },
+ {
+ "name": "custom_callback_data",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowSizeConstraints",
+ "c_short": "ImGui_SetNextWindowSizeConstraints",
+ "c_full": "ImGui_SetNextWindowSizeConstraintsEx",
+ "c_base": "ImGui_SetNextWindowSizeConstraints"
+ },
+ {
+ "name": "SetNextWindowContentSize",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowContentSize",
+ "c_full": "ImGui_SetNextWindowContentSize",
+ "c_base": "ImGui_SetNextWindowContentSize"
+ },
+ {
+ "name": "SetNextWindowCollapsed",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "collapsed",
+ "type": "bool"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowCollapsed",
+ "c_short": "ImGui_SetNextWindowCollapsed",
+ "c_full": "ImGui_SetNextWindowCollapsedEx",
+ "c_base": "ImGui_SetNextWindowCollapsed"
+ },
+ {
+ "name": "SetNextWindowFocus",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowFocus",
+ "c_full": "ImGui_SetNextWindowFocus",
+ "c_base": "ImGui_SetNextWindowFocus"
+ },
+ {
+ "name": "SetNextWindowScroll",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "scroll",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowScroll",
+ "c_full": "ImGui_SetNextWindowScroll",
+ "c_base": "ImGui_SetNextWindowScroll"
+ },
+ {
+ "name": "SetNextWindowBgAlpha",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "alpha",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextWindowBgAlpha",
+ "c_full": "ImGui_SetNextWindowBgAlpha",
+ "c_base": "ImGui_SetNextWindowBgAlpha"
+ },
+ {
+ "name": "SetWindowPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowPos",
+ "c_short": "ImGui_SetWindowPos",
+ "c_full": "ImGui_SetWindowPosEx",
+ "c_base": "ImGui_SetWindowPos"
+ },
+ {
+ "name": "SetWindowSize",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowSize",
+ "c_short": "ImGui_SetWindowSize",
+ "c_full": "ImGui_SetWindowSizeEx",
+ "c_base": "ImGui_SetWindowSize"
+ },
+ {
+ "name": "SetWindowCollapsed",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "collapsed",
+ "type": "bool"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowCollapsed",
+ "c_short": "ImGui_SetWindowCollapsed",
+ "c_full": "ImGui_SetWindowCollapsedEx",
+ "c_base": "ImGui_SetWindowCollapsed"
+ },
+ {
+ "name": "SetWindowFocus",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowFocus",
+ "c_full": "ImGui_SetWindowFocus",
+ "c_base": "ImGui_SetWindowFocus"
+ },
+ {
+ "name": "SetWindowPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ },
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowPos",
+ "overload_of": "ImGui_SetWindowPosEx",
+ "c_short": "ImGui_SetWindowPosStr",
+ "c_full": "ImGui_SetWindowPosStrEx",
+ "c_base": "ImGui_SetWindowPosStr"
+ },
+ {
+ "name": "SetWindowSize",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowSize",
+ "overload_of": "ImGui_SetWindowSizeEx",
+ "c_short": "ImGui_SetWindowSizeStr",
+ "c_full": "ImGui_SetWindowSizeStrEx",
+ "c_base": "ImGui_SetWindowSizeStr"
+ },
+ {
+ "name": "SetWindowCollapsed",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ },
+ {
+ "name": "collapsed",
+ "type": "bool"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowCollapsed",
+ "overload_of": "ImGui_SetWindowCollapsedEx",
+ "c_short": "ImGui_SetWindowCollapsedStr",
+ "c_full": "ImGui_SetWindowCollapsedStrEx",
+ "c_base": "ImGui_SetWindowCollapsedStr"
+ },
+ {
+ "name": "SetWindowFocus",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetWindowFocus",
+ "overload_of": "ImGui_SetWindowFocus",
+ "c_full": "ImGui_SetWindowFocusStr",
+ "c_base": "ImGui_SetWindowFocusStr"
+ },
+ {
+ "name": "GetScrollX",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetScrollX",
+ "c_full": "ImGui_GetScrollX",
+ "c_base": "ImGui_GetScrollX"
+ },
+ {
+ "name": "GetScrollY",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetScrollY",
+ "c_full": "ImGui_GetScrollY",
+ "c_base": "ImGui_GetScrollY"
+ },
+ {
+ "name": "SetScrollX",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "scroll_x",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollX",
+ "c_full": "ImGui_SetScrollX",
+ "c_base": "ImGui_SetScrollX"
+ },
+ {
+ "name": "SetScrollY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "scroll_y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollY",
+ "c_full": "ImGui_SetScrollY",
+ "c_base": "ImGui_SetScrollY"
+ },
+ {
+ "name": "GetScrollMaxX",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetScrollMaxX",
+ "c_full": "ImGui_GetScrollMaxX",
+ "c_base": "ImGui_GetScrollMaxX"
+ },
+ {
+ "name": "GetScrollMaxY",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetScrollMaxY",
+ "c_full": "ImGui_GetScrollMaxY",
+ "c_base": "ImGui_GetScrollMaxY"
+ },
+ {
+ "name": "SetScrollHereX",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center_x_ratio",
+ "type": "float",
+ "default": "0.5f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollHereX",
+ "c_short": "ImGui_SetScrollHereX",
+ "c_full": "ImGui_SetScrollHereXEx",
+ "c_base": "ImGui_SetScrollHereX"
+ },
+ {
+ "name": "SetScrollHereY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "center_y_ratio",
+ "type": "float",
+ "default": "0.5f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollHereY",
+ "c_short": "ImGui_SetScrollHereY",
+ "c_full": "ImGui_SetScrollHereYEx",
+ "c_base": "ImGui_SetScrollHereY"
+ },
+ {
+ "name": "SetScrollFromPosX",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "local_x",
+ "type": "float"
+ },
+ {
+ "name": "center_x_ratio",
+ "type": "float",
+ "default": "0.5f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollFromPosX",
+ "c_short": "ImGui_SetScrollFromPosX",
+ "c_full": "ImGui_SetScrollFromPosXEx",
+ "c_base": "ImGui_SetScrollFromPosX"
+ },
+ {
+ "name": "SetScrollFromPosY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "local_y",
+ "type": "float"
+ },
+ {
+ "name": "center_y_ratio",
+ "type": "float",
+ "default": "0.5f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetScrollFromPosY",
+ "c_short": "ImGui_SetScrollFromPosY",
+ "c_full": "ImGui_SetScrollFromPosYEx",
+ "c_base": "ImGui_SetScrollFromPosY"
+ },
+ {
+ "name": "PushFont",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "font",
+ "type": "ImFont*"
+ },
+ {
+ "name": "font_size_base_unscaled",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushFont",
+ "c_full": "ImGui_PushFont",
+ "c_base": "ImGui_PushFont"
+ },
+ {
+ "name": "PopFont",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopFont",
+ "c_full": "ImGui_PopFont",
+ "c_base": "ImGui_PopFont"
+ },
+ {
+ "name": "GetFont",
+ "scope": "ImGui",
+ "ret": "ImFont*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFont",
+ "c_full": "ImGui_GetFont",
+ "c_base": "ImGui_GetFont"
+ },
+ {
+ "name": "GetFontSize",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFontSize",
+ "c_full": "ImGui_GetFontSize",
+ "c_base": "ImGui_GetFontSize"
+ },
+ {
+ "name": "GetFontBaked",
+ "scope": "ImGui",
+ "ret": "ImFontBaked*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFontBaked",
+ "c_full": "ImGui_GetFontBaked",
+ "c_base": "ImGui_GetFontBaked"
+ },
+ {
+ "name": "PushStyleColor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ },
+ {
+ "name": "col",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleColor",
+ "c_full": "ImGui_PushStyleColor",
+ "c_base": "ImGui_PushStyleColor"
+ },
+ {
+ "name": "PushStyleColor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ },
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleColor",
+ "overload_of": "ImGui_PushStyleColor",
+ "c_full": "ImGui_PushStyleColorVec4",
+ "c_base": "ImGui_PushStyleColorVec4"
+ },
+ {
+ "name": "PopStyleColor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "count",
+ "type": "int",
+ "default": "1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopStyleColor",
+ "c_short": "ImGui_PopStyleColor",
+ "c_full": "ImGui_PopStyleColorEx",
+ "c_base": "ImGui_PopStyleColor"
+ },
+ {
+ "name": "PushStyleVar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiStyleVar"
+ },
+ {
+ "name": "val",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleVar",
+ "c_full": "ImGui_PushStyleVar",
+ "c_base": "ImGui_PushStyleVar"
+ },
+ {
+ "name": "PushStyleVar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiStyleVar"
+ },
+ {
+ "name": "val",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleVar",
+ "overload_of": "ImGui_PushStyleVar",
+ "c_full": "ImGui_PushStyleVarVec2",
+ "c_base": "ImGui_PushStyleVarVec2"
+ },
+ {
+ "name": "PushStyleVarX",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiStyleVar"
+ },
+ {
+ "name": "val_x",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleVarX",
+ "c_full": "ImGui_PushStyleVarX",
+ "c_base": "ImGui_PushStyleVarX"
+ },
+ {
+ "name": "PushStyleVarY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiStyleVar"
+ },
+ {
+ "name": "val_y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushStyleVarY",
+ "c_full": "ImGui_PushStyleVarY",
+ "c_base": "ImGui_PushStyleVarY"
+ },
+ {
+ "name": "PopStyleVar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "count",
+ "type": "int",
+ "default": "1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopStyleVar",
+ "c_short": "ImGui_PopStyleVar",
+ "c_full": "ImGui_PopStyleVarEx",
+ "c_base": "ImGui_PopStyleVar"
+ },
+ {
+ "name": "PushItemFlag",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "option",
+ "type": "ImGuiItemFlags"
+ },
+ {
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushItemFlag",
+ "c_full": "ImGui_PushItemFlag",
+ "c_base": "ImGui_PushItemFlag"
+ },
+ {
+ "name": "PopItemFlag",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopItemFlag",
+ "c_full": "ImGui_PopItemFlag",
+ "c_base": "ImGui_PopItemFlag"
+ },
+ {
+ "name": "PushItemWidth",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "item_width",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushItemWidth",
+ "c_full": "ImGui_PushItemWidth",
+ "c_base": "ImGui_PushItemWidth"
+ },
+ {
+ "name": "PopItemWidth",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopItemWidth",
+ "c_full": "ImGui_PopItemWidth",
+ "c_base": "ImGui_PopItemWidth"
+ },
+ {
+ "name": "SetNextItemWidth",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "item_width",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemWidth",
+ "c_full": "ImGui_SetNextItemWidth",
+ "c_base": "ImGui_SetNextItemWidth"
+ },
+ {
+ "name": "CalcItemWidth",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CalcItemWidth",
+ "c_full": "ImGui_CalcItemWidth",
+ "c_base": "ImGui_CalcItemWidth"
+ },
+ {
+ "name": "PushTextWrapPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "wrap_local_pos_x",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushTextWrapPos",
+ "c_short": "ImGui_PushTextWrapPos",
+ "c_full": "ImGui_PushTextWrapPosEx",
+ "c_base": "ImGui_PushTextWrapPos"
+ },
+ {
+ "name": "PopTextWrapPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopTextWrapPos",
+ "c_full": "ImGui_PopTextWrapPos",
+ "c_base": "ImGui_PopTextWrapPos"
+ },
+ {
+ "name": "GetFontTexUvWhitePixel",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFontTexUvWhitePixel",
+ "c_full": "ImGui_GetFontTexUvWhitePixel",
+ "c_base": "ImGui_GetFontTexUvWhitePixel"
+ },
+ {
+ "name": "GetColorU32",
+ "scope": "ImGui",
+ "ret": "ImU32",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ },
+ {
+ "name": "alpha_mul",
+ "type": "float",
+ "default": "1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColorU32",
+ "c_short": "ImGui_GetColorU32",
+ "c_full": "ImGui_GetColorU32Ex",
+ "c_base": "ImGui_GetColorU32"
+ },
+ {
+ "name": "GetColorU32",
+ "scope": "ImGui",
+ "ret": "ImU32",
+ "args": [
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColorU32",
+ "overload_of": "ImGui_GetColorU32Ex",
+ "c_full": "ImGui_GetColorU32Vec4",
+ "c_base": "ImGui_GetColorU32Vec4"
+ },
+ {
+ "name": "GetColorU32",
+ "scope": "ImGui",
+ "ret": "ImU32",
+ "args": [
+ {
+ "name": "col",
+ "type": "ImU32"
+ },
+ {
+ "name": "alpha_mul",
+ "type": "float",
+ "default": "1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColorU32",
+ "overload_of": "ImGui_GetColorU32Ex",
+ "c_short": "ImGui_GetColorU32U32",
+ "c_full": "ImGui_GetColorU32U32Ex",
+ "c_base": "ImGui_GetColorU32U32"
+ },
+ {
+ "name": "GetStyleColorVec4",
+ "scope": "ImGui",
+ "ret": "const ImVec4&",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetStyleColorVec4",
+ "c_full": "ImGui_GetStyleColorVec4",
+ "c_base": "ImGui_GetStyleColorVec4"
+ },
+ {
+ "name": "GetCursorScreenPos",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCursorScreenPos",
+ "c_full": "ImGui_GetCursorScreenPos",
+ "c_base": "ImGui_GetCursorScreenPos"
+ },
+ {
+ "name": "SetCursorScreenPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "pos",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetCursorScreenPos",
+ "c_full": "ImGui_SetCursorScreenPos",
+ "c_base": "ImGui_SetCursorScreenPos"
+ },
+ {
+ "name": "GetContentRegionAvail",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetContentRegionAvail",
+ "c_full": "ImGui_GetContentRegionAvail",
+ "c_base": "ImGui_GetContentRegionAvail"
+ },
+ {
+ "name": "GetCursorPos",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCursorPos",
+ "c_full": "ImGui_GetCursorPos",
+ "c_base": "ImGui_GetCursorPos"
+ },
+ {
+ "name": "GetCursorPosX",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCursorPosX",
+ "c_full": "ImGui_GetCursorPosX",
+ "c_base": "ImGui_GetCursorPosX"
+ },
+ {
+ "name": "GetCursorPosY",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCursorPosY",
+ "c_full": "ImGui_GetCursorPosY",
+ "c_base": "ImGui_GetCursorPosY"
+ },
+ {
+ "name": "SetCursorPos",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "local_pos",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetCursorPos",
+ "c_full": "ImGui_SetCursorPos",
+ "c_base": "ImGui_SetCursorPos"
+ },
+ {
+ "name": "SetCursorPosX",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "local_x",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetCursorPosX",
+ "c_full": "ImGui_SetCursorPosX",
+ "c_base": "ImGui_SetCursorPosX"
+ },
+ {
+ "name": "SetCursorPosY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "local_y",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetCursorPosY",
+ "c_full": "ImGui_SetCursorPosY",
+ "c_base": "ImGui_SetCursorPosY"
+ },
+ {
+ "name": "GetCursorStartPos",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetCursorStartPos",
+ "c_full": "ImGui_GetCursorStartPos",
+ "c_base": "ImGui_GetCursorStartPos"
+ },
+ {
+ "name": "Separator",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Separator",
+ "c_full": "ImGui_Separator",
+ "c_base": "ImGui_Separator"
+ },
+ {
+ "name": "SameLine",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "offset_from_start_x",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "spacing",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SameLine",
+ "c_short": "ImGui_SameLine",
+ "c_full": "ImGui_SameLineEx",
+ "c_base": "ImGui_SameLine"
+ },
+ {
+ "name": "NewLine",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_NewLine",
+ "c_full": "ImGui_NewLine",
+ "c_base": "ImGui_NewLine"
+ },
+ {
+ "name": "Spacing",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Spacing",
+ "c_full": "ImGui_Spacing",
+ "c_base": "ImGui_Spacing"
+ },
+ {
+ "name": "Dummy",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Dummy",
+ "c_full": "ImGui_Dummy",
+ "c_base": "ImGui_Dummy"
+ },
+ {
+ "name": "Indent",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "indent_w",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Indent",
+ "c_short": "ImGui_Indent",
+ "c_full": "ImGui_IndentEx",
+ "c_base": "ImGui_Indent"
+ },
+ {
+ "name": "Unindent",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "indent_w",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Unindent",
+ "c_short": "ImGui_Unindent",
+ "c_full": "ImGui_UnindentEx",
+ "c_base": "ImGui_Unindent"
+ },
+ {
+ "name": "BeginGroup",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginGroup",
+ "c_full": "ImGui_BeginGroup",
+ "c_base": "ImGui_BeginGroup"
+ },
+ {
+ "name": "EndGroup",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndGroup",
+ "c_full": "ImGui_EndGroup",
+ "c_base": "ImGui_EndGroup"
+ },
+ {
+ "name": "AlignTextToFramePadding",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_AlignTextToFramePadding",
+ "c_full": "ImGui_AlignTextToFramePadding",
+ "c_base": "ImGui_AlignTextToFramePadding"
+ },
+ {
+ "name": "GetTextLineHeight",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetTextLineHeight",
+ "c_full": "ImGui_GetTextLineHeight",
+ "c_base": "ImGui_GetTextLineHeight"
+ },
+ {
+ "name": "GetTextLineHeightWithSpacing",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetTextLineHeightWithSpacing",
+ "c_full": "ImGui_GetTextLineHeightWithSpacing",
+ "c_base": "ImGui_GetTextLineHeightWithSpacing"
+ },
+ {
+ "name": "GetFrameHeight",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFrameHeight",
+ "c_full": "ImGui_GetFrameHeight",
+ "c_base": "ImGui_GetFrameHeight"
+ },
+ {
+ "name": "GetFrameHeightWithSpacing",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFrameHeightWithSpacing",
+ "c_full": "ImGui_GetFrameHeightWithSpacing",
+ "c_base": "ImGui_GetFrameHeightWithSpacing"
+ },
+ {
+ "name": "PushID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushID",
+ "c_full": "ImGui_PushID",
+ "c_base": "ImGui_PushID"
+ },
+ {
+ "name": "PushID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "str_id_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "str_id_end",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushID",
+ "overload_of": "ImGui_PushID",
+ "c_full": "ImGui_PushIDStr",
+ "c_base": "ImGui_PushIDStr"
+ },
+ {
+ "name": "PushID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushID",
+ "overload_of": "ImGui_PushID",
+ "c_full": "ImGui_PushIDPtr",
+ "c_base": "ImGui_PushIDPtr"
+ },
+ {
+ "name": "PushID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "int_id",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushID",
+ "overload_of": "ImGui_PushID",
+ "c_full": "ImGui_PushIDInt",
+ "c_base": "ImGui_PushIDInt"
+ },
+ {
+ "name": "PopID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopID",
+ "c_full": "ImGui_PopID",
+ "c_base": "ImGui_PopID"
+ },
+ {
+ "name": "GetID",
+ "scope": "ImGui",
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetID",
+ "c_full": "ImGui_GetID",
+ "c_base": "ImGui_GetID"
+ },
+ {
+ "name": "GetID",
+ "scope": "ImGui",
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "str_id_begin",
+ "type": "const char*"
+ },
+ {
+ "name": "str_id_end",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetID",
+ "overload_of": "ImGui_GetID",
+ "c_full": "ImGui_GetIDStr",
+ "c_base": "ImGui_GetIDStr"
+ },
+ {
+ "name": "GetID",
+ "scope": "ImGui",
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetID",
+ "overload_of": "ImGui_GetID",
+ "c_full": "ImGui_GetIDPtr",
+ "c_base": "ImGui_GetIDPtr"
+ },
+ {
+ "name": "GetID",
+ "scope": "ImGui",
+ "ret": "ImGuiID",
+ "args": [
+ {
+ "name": "int_id",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetID",
+ "overload_of": "ImGui_GetID",
+ "c_full": "ImGui_GetIDInt",
+ "c_base": "ImGui_GetIDInt"
+ },
+ {
+ "name": "TextUnformatted",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TextUnformatted",
+ "c_short": "ImGui_TextUnformatted",
+ "c_full": "ImGui_TextUnformattedEx",
+ "c_base": "ImGui_TextUnformatted"
+ },
+ {
+ "name": "Text",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_Text",
+ "c_full": "ImGui_Text",
+ "c_base": "ImGui_Text",
+ "vfunc": "TextV"
+ },
+ {
+ "name": "TextV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TextV",
+ "c_full": "ImGui_TextV",
+ "c_base": "ImGui_TextV"
+ },
+ {
+ "name": "TextColored",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TextColored",
+ "c_full": "ImGui_TextColored",
+ "c_base": "ImGui_TextColored",
+ "vfunc": "TextColoredV"
+ },
+ {
+ "name": "TextColoredV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TextColoredV",
+ "c_full": "ImGui_TextColoredV",
+ "c_base": "ImGui_TextColoredV"
+ },
+ {
+ "name": "TextDisabled",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TextDisabled",
+ "c_full": "ImGui_TextDisabled",
+ "c_base": "ImGui_TextDisabled",
+ "vfunc": "TextDisabledV"
+ },
+ {
+ "name": "TextDisabledV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TextDisabledV",
+ "c_full": "ImGui_TextDisabledV",
+ "c_base": "ImGui_TextDisabledV"
+ },
+ {
+ "name": "TextWrapped",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TextWrapped",
+ "c_full": "ImGui_TextWrapped",
+ "c_base": "ImGui_TextWrapped",
+ "vfunc": "TextWrappedV"
+ },
+ {
+ "name": "TextWrappedV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TextWrappedV",
+ "c_full": "ImGui_TextWrappedV",
+ "c_base": "ImGui_TextWrappedV"
+ },
+ {
+ "name": "LabelText",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_LabelText",
+ "c_full": "ImGui_LabelText",
+ "c_base": "ImGui_LabelText",
+ "vfunc": "LabelTextV"
+ },
+ {
+ "name": "LabelTextV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_LabelTextV",
+ "c_full": "ImGui_LabelTextV",
+ "c_base": "ImGui_LabelTextV"
+ },
+ {
+ "name": "BulletText",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_BulletText",
+ "c_full": "ImGui_BulletText",
+ "c_base": "ImGui_BulletText",
+ "vfunc": "BulletTextV"
+ },
+ {
+ "name": "BulletTextV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_BulletTextV",
+ "c_full": "ImGui_BulletTextV",
+ "c_base": "ImGui_BulletTextV"
+ },
+ {
+ "name": "SeparatorText",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SeparatorText",
+ "c_full": "ImGui_SeparatorText",
+ "c_base": "ImGui_SeparatorText"
+ },
+ {
+ "name": "Button",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Button",
+ "c_short": "ImGui_Button",
+ "c_full": "ImGui_ButtonEx",
+ "c_base": "ImGui_Button"
+ },
+ {
+ "name": "SmallButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SmallButton",
+ "c_full": "ImGui_SmallButton",
+ "c_base": "ImGui_SmallButton"
+ },
+ {
+ "name": "InvisibleButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiButtonFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InvisibleButton",
+ "c_short": "ImGui_InvisibleButton",
+ "c_full": "ImGui_InvisibleButtonEx",
+ "c_base": "ImGui_InvisibleButton"
+ },
+ {
+ "name": "ArrowButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "dir",
+ "type": "ImGuiDir"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ArrowButton",
+ "c_full": "ImGui_ArrowButton",
+ "c_base": "ImGui_ArrowButton"
+ },
+ {
+ "name": "Checkbox",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "bool*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Checkbox",
+ "c_full": "ImGui_Checkbox",
+ "c_base": "ImGui_Checkbox"
+ },
+ {
+ "name": "CheckboxFlags",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "int*"
+ },
+ {
+ "name": "flags_value",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CheckboxFlags",
+ "c_full": "ImGui_CheckboxFlags",
+ "c_base": "ImGui_CheckboxFlags"
+ },
+ {
+ "name": "CheckboxFlags",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "unsigned int*"
+ },
+ {
+ "name": "flags_value",
+ "type": "unsigned int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CheckboxFlags",
+ "overload_of": "ImGui_CheckboxFlags",
+ "c_full": "ImGui_CheckboxFlagsUIntPtr",
+ "c_base": "ImGui_CheckboxFlagsUIntPtr"
+ },
+ {
+ "name": "RadioButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "active",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_RadioButton",
+ "c_full": "ImGui_RadioButton",
+ "c_base": "ImGui_RadioButton"
+ },
+ {
+ "name": "RadioButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int*"
+ },
+ {
+ "name": "v_button",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_RadioButton",
+ "overload_of": "ImGui_RadioButton",
+ "c_full": "ImGui_RadioButtonIntPtr",
+ "c_base": "ImGui_RadioButtonIntPtr"
+ },
+ {
+ "name": "ProgressBar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fraction",
+ "type": "float"
+ },
+ {
+ "name": "size_arg",
+ "type": "const ImVec2&",
+ "default": "ImVec2(- FLT_MIN, 0)"
+ },
+ {
+ "name": "overlay",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ProgressBar",
+ "c_short": "ImGui_ProgressBar",
+ "c_full": "ImGui_ProgressBarEx",
+ "c_base": "ImGui_ProgressBar"
+ },
+ {
+ "name": "Bullet",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Bullet",
+ "c_full": "ImGui_Bullet",
+ "c_base": "ImGui_Bullet"
+ },
+ {
+ "name": "TextLink",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TextLink",
+ "c_full": "ImGui_TextLink",
+ "c_base": "ImGui_TextLink"
+ },
+ {
+ "name": "TextLinkOpenURL",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "url",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TextLinkOpenURL",
+ "c_short": "ImGui_TextLinkOpenURL",
+ "c_full": "ImGui_TextLinkOpenURLEx",
+ "c_base": "ImGui_TextLinkOpenURL"
+ },
+ {
+ "name": "Image",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "image_size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv0",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "uv1",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 1)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Image",
+ "c_short": "ImGui_Image",
+ "c_full": "ImGui_ImageEx",
+ "c_base": "ImGui_Image"
+ },
+ {
+ "name": "ImageWithBg",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "image_size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv0",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "uv1",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 1)"
+ },
+ {
+ "name": "bg_col",
+ "type": "const ImVec4&",
+ "default": "ImVec4(0, 0, 0, 0)"
+ },
+ {
+ "name": "tint_col",
+ "type": "const ImVec4&",
+ "default": "ImVec4(1, 1, 1, 1)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ImageWithBg",
+ "c_short": "ImGui_ImageWithBg",
+ "c_full": "ImGui_ImageWithBgEx",
+ "c_base": "ImGui_ImageWithBg"
+ },
+ {
+ "name": "ImageButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "image_size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv0",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "uv1",
+ "type": "const ImVec2&",
+ "default": "ImVec2(1, 1)"
+ },
+ {
+ "name": "bg_col",
+ "type": "const ImVec4&",
+ "default": "ImVec4(0, 0, 0, 0)"
+ },
+ {
+ "name": "tint_col",
+ "type": "const ImVec4&",
+ "default": "ImVec4(1, 1, 1, 1)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ImageButton",
+ "c_short": "ImGui_ImageButton",
+ "c_full": "ImGui_ImageButtonEx",
+ "c_base": "ImGui_ImageButton"
+ },
+ {
+ "name": "BeginCombo",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "preview_value",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiComboFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginCombo",
+ "c_short": "ImGui_BeginCombo",
+ "c_full": "ImGui_BeginComboEx",
+ "c_base": "ImGui_BeginCombo"
+ },
+ {
+ "name": "EndCombo",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndCombo",
+ "c_full": "ImGui_EndCombo",
+ "c_base": "ImGui_EndCombo"
+ },
+ {
+ "name": "Combo",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "current_item",
+ "type": "int*"
+ },
+ {
+ "name": "items",
+ "type": "const char* const",
+ "array": ""
+ },
+ {
+ "name": "items_count",
+ "type": "int"
+ },
+ {
+ "name": "popup_max_height_in_items",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Combo",
+ "c_short": "ImGui_Combo",
+ "c_full": "ImGui_ComboEx",
+ "c_base": "ImGui_Combo"
+ },
+ {
+ "name": "Combo",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "current_item",
+ "type": "int*"
+ },
+ {
+ "name": "items_separated_by_zeros",
+ "type": "const char*"
+ },
+ {
+ "name": "popup_max_height_in_items",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Combo",
+ "overload_of": "ImGui_ComboEx",
+ "c_short": "ImGui_ComboStr",
+ "c_full": "ImGui_ComboStrEx",
+ "c_base": "ImGui_ComboStr"
+ },
+ {
+ "name": "Combo",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "current_item",
+ "type": "int*"
+ },
+ {
+ "name": "getter",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "user_data",
+ "type": "void*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ]
+ }
+ },
+ {
+ "name": "user_data",
+ "type": "void*"
+ },
+ {
+ "name": "items_count",
+ "type": "int"
+ },
+ {
+ "name": "popup_max_height_in_items",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Combo",
+ "overload_of": "ImGui_ComboEx",
+ "c_short": "ImGui_ComboCallback",
+ "c_full": "ImGui_ComboCallbackEx",
+ "c_base": "ImGui_ComboCallback"
+ },
+ {
+ "name": "DragFloat",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float*"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "v_max",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragFloat",
+ "c_short": "ImGui_DragFloat",
+ "c_full": "ImGui_DragFloatEx",
+ "c_base": "ImGui_DragFloat"
+ },
+ {
+ "name": "DragFloat2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "2"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "v_max",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragFloat2",
+ "c_short": "ImGui_DragFloat2",
+ "c_full": "ImGui_DragFloat2Ex",
+ "c_base": "ImGui_DragFloat2"
+ },
+ {
+ "name": "DragFloat3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "3"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "v_max",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragFloat3",
+ "c_short": "ImGui_DragFloat3",
+ "c_full": "ImGui_DragFloat3Ex",
+ "c_base": "ImGui_DragFloat3"
+ },
+ {
+ "name": "DragFloat4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "4"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "v_max",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragFloat4",
+ "c_short": "ImGui_DragFloat4",
+ "c_full": "ImGui_DragFloat4Ex",
+ "c_base": "ImGui_DragFloat4"
+ },
+ {
+ "name": "DragFloatRange2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v_current_min",
+ "type": "float*"
+ },
+ {
+ "name": "v_current_max",
+ "type": "float*"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "v_max",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "format_max",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragFloatRange2",
+ "c_short": "ImGui_DragFloatRange2",
+ "c_full": "ImGui_DragFloatRange2Ex",
+ "c_base": "ImGui_DragFloatRange2"
+ },
+ {
+ "name": "DragInt",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int*"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "v_max",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragInt",
+ "c_short": "ImGui_DragInt",
+ "c_full": "ImGui_DragIntEx",
+ "c_base": "ImGui_DragInt"
+ },
+ {
+ "name": "DragInt2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "2"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "v_max",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragInt2",
+ "c_short": "ImGui_DragInt2",
+ "c_full": "ImGui_DragInt2Ex",
+ "c_base": "ImGui_DragInt2"
+ },
+ {
+ "name": "DragInt3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "3"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "v_max",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragInt3",
+ "c_short": "ImGui_DragInt3",
+ "c_full": "ImGui_DragInt3Ex",
+ "c_base": "ImGui_DragInt3"
+ },
+ {
+ "name": "DragInt4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "4"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "v_max",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragInt4",
+ "c_short": "ImGui_DragInt4",
+ "c_full": "ImGui_DragInt4Ex",
+ "c_base": "ImGui_DragInt4"
+ },
+ {
+ "name": "DragIntRange2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v_current_min",
+ "type": "int*"
+ },
+ {
+ "name": "v_current_max",
+ "type": "int*"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "v_min",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "v_max",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "format_max",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragIntRange2",
+ "c_short": "ImGui_DragIntRange2",
+ "c_full": "ImGui_DragIntRange2Ex",
+ "c_base": "ImGui_DragIntRange2"
+ },
+ {
+ "name": "DragScalar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "p_min",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "p_max",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragScalar",
+ "c_short": "ImGui_DragScalar",
+ "c_full": "ImGui_DragScalarEx",
+ "c_base": "ImGui_DragScalar"
+ },
+ {
+ "name": "DragScalarN",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "components",
+ "type": "int"
+ },
+ {
+ "name": "v_speed",
+ "type": "float",
+ "default": "1.0f"
+ },
+ {
+ "name": "p_min",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "p_max",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DragScalarN",
+ "c_short": "ImGui_DragScalarN",
+ "c_full": "ImGui_DragScalarNEx",
+ "c_base": "ImGui_DragScalarN"
+ },
+ {
+ "name": "SliderFloat",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float*"
+ },
+ {
+ "name": "v_min",
+ "type": "float"
+ },
+ {
+ "name": "v_max",
+ "type": "float"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderFloat",
+ "c_short": "ImGui_SliderFloat",
+ "c_full": "ImGui_SliderFloatEx",
+ "c_base": "ImGui_SliderFloat"
+ },
+ {
+ "name": "SliderFloat2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "2"
+ },
+ {
+ "name": "v_min",
+ "type": "float"
+ },
+ {
+ "name": "v_max",
+ "type": "float"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderFloat2",
+ "c_short": "ImGui_SliderFloat2",
+ "c_full": "ImGui_SliderFloat2Ex",
+ "c_base": "ImGui_SliderFloat2"
+ },
+ {
+ "name": "SliderFloat3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "3"
+ },
+ {
+ "name": "v_min",
+ "type": "float"
+ },
+ {
+ "name": "v_max",
+ "type": "float"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderFloat3",
+ "c_short": "ImGui_SliderFloat3",
+ "c_full": "ImGui_SliderFloat3Ex",
+ "c_base": "ImGui_SliderFloat3"
+ },
+ {
+ "name": "SliderFloat4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "4"
+ },
+ {
+ "name": "v_min",
+ "type": "float"
+ },
+ {
+ "name": "v_max",
+ "type": "float"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderFloat4",
+ "c_short": "ImGui_SliderFloat4",
+ "c_full": "ImGui_SliderFloat4Ex",
+ "c_base": "ImGui_SliderFloat4"
+ },
+ {
+ "name": "SliderAngle",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v_rad",
+ "type": "float*"
+ },
+ {
+ "name": "v_degrees_min",
+ "type": "float",
+ "default": "- 360.0f"
+ },
+ {
+ "name": "v_degrees_max",
+ "type": "float",
+ "default": "+ 360.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.0f deg\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderAngle",
+ "c_short": "ImGui_SliderAngle",
+ "c_full": "ImGui_SliderAngleEx",
+ "c_base": "ImGui_SliderAngle"
+ },
+ {
+ "name": "SliderInt",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int*"
+ },
+ {
+ "name": "v_min",
+ "type": "int"
+ },
+ {
+ "name": "v_max",
+ "type": "int"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderInt",
+ "c_short": "ImGui_SliderInt",
+ "c_full": "ImGui_SliderIntEx",
+ "c_base": "ImGui_SliderInt"
+ },
+ {
+ "name": "SliderInt2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "2"
+ },
+ {
+ "name": "v_min",
+ "type": "int"
+ },
+ {
+ "name": "v_max",
+ "type": "int"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderInt2",
+ "c_short": "ImGui_SliderInt2",
+ "c_full": "ImGui_SliderInt2Ex",
+ "c_base": "ImGui_SliderInt2"
+ },
+ {
+ "name": "SliderInt3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "3"
+ },
+ {
+ "name": "v_min",
+ "type": "int"
+ },
+ {
+ "name": "v_max",
+ "type": "int"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderInt3",
+ "c_short": "ImGui_SliderInt3",
+ "c_full": "ImGui_SliderInt3Ex",
+ "c_base": "ImGui_SliderInt3"
+ },
+ {
+ "name": "SliderInt4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "4"
+ },
+ {
+ "name": "v_min",
+ "type": "int"
+ },
+ {
+ "name": "v_max",
+ "type": "int"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderInt4",
+ "c_short": "ImGui_SliderInt4",
+ "c_full": "ImGui_SliderInt4Ex",
+ "c_base": "ImGui_SliderInt4"
+ },
+ {
+ "name": "SliderScalar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "p_min",
+ "type": "const void*"
+ },
+ {
+ "name": "p_max",
+ "type": "const void*"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderScalar",
+ "c_short": "ImGui_SliderScalar",
+ "c_full": "ImGui_SliderScalarEx",
+ "c_base": "ImGui_SliderScalar"
+ },
+ {
+ "name": "SliderScalarN",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "components",
+ "type": "int"
+ },
+ {
+ "name": "p_min",
+ "type": "const void*"
+ },
+ {
+ "name": "p_max",
+ "type": "const void*"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SliderScalarN",
+ "c_short": "ImGui_SliderScalarN",
+ "c_full": "ImGui_SliderScalarNEx",
+ "c_base": "ImGui_SliderScalarN"
+ },
+ {
+ "name": "VSliderFloat",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "v",
+ "type": "float*"
+ },
+ {
+ "name": "v_min",
+ "type": "float"
+ },
+ {
+ "name": "v_max",
+ "type": "float"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_VSliderFloat",
+ "c_short": "ImGui_VSliderFloat",
+ "c_full": "ImGui_VSliderFloatEx",
+ "c_base": "ImGui_VSliderFloat"
+ },
+ {
+ "name": "VSliderInt",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "v",
+ "type": "int*"
+ },
+ {
+ "name": "v_min",
+ "type": "int"
+ },
+ {
+ "name": "v_max",
+ "type": "int"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%d\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_VSliderInt",
+ "c_short": "ImGui_VSliderInt",
+ "c_full": "ImGui_VSliderIntEx",
+ "c_base": "ImGui_VSliderInt"
+ },
+ {
+ "name": "VSliderScalar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "p_min",
+ "type": "const void*"
+ },
+ {
+ "name": "p_max",
+ "type": "const void*"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSliderFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_VSliderScalar",
+ "c_short": "ImGui_VSliderScalar",
+ "c_full": "ImGui_VSliderScalarEx",
+ "c_base": "ImGui_VSliderScalar"
+ },
+ {
+ "name": "InputText",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "buf",
+ "type": "char*"
+ },
+ {
+ "name": "buf_size",
+ "type": "size_t"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ },
+ {
+ "name": "callback",
+ "type": "ImGuiInputTextCallback",
+ "default": "NULL"
+ },
+ {
+ "name": "user_data",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputText",
+ "c_short": "ImGui_InputText",
+ "c_full": "ImGui_InputTextEx",
+ "c_base": "ImGui_InputText"
+ },
+ {
+ "name": "InputTextMultiline",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "buf",
+ "type": "char*"
+ },
+ {
+ "name": "buf_size",
+ "type": "size_t"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ },
+ {
+ "name": "callback",
+ "type": "ImGuiInputTextCallback",
+ "default": "NULL"
+ },
+ {
+ "name": "user_data",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputTextMultiline",
+ "c_short": "ImGui_InputTextMultiline",
+ "c_full": "ImGui_InputTextMultilineEx",
+ "c_base": "ImGui_InputTextMultiline"
+ },
+ {
+ "name": "InputTextWithHint",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "hint",
+ "type": "const char*"
+ },
+ {
+ "name": "buf",
+ "type": "char*"
+ },
+ {
+ "name": "buf_size",
+ "type": "size_t"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ },
+ {
+ "name": "callback",
+ "type": "ImGuiInputTextCallback",
+ "default": "NULL"
+ },
+ {
+ "name": "user_data",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputTextWithHint",
+ "c_short": "ImGui_InputTextWithHint",
+ "c_full": "ImGui_InputTextWithHintEx",
+ "c_base": "ImGui_InputTextWithHint"
+ },
+ {
+ "name": "InputFloat",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float*"
+ },
+ {
+ "name": "step",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "step_fast",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputFloat",
+ "c_short": "ImGui_InputFloat",
+ "c_full": "ImGui_InputFloatEx",
+ "c_base": "ImGui_InputFloat"
+ },
+ {
+ "name": "InputFloat2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "2"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputFloat2",
+ "c_short": "ImGui_InputFloat2",
+ "c_full": "ImGui_InputFloat2Ex",
+ "c_base": "ImGui_InputFloat2"
+ },
+ {
+ "name": "InputFloat3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "3"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputFloat3",
+ "c_short": "ImGui_InputFloat3",
+ "c_full": "ImGui_InputFloat3Ex",
+ "c_base": "ImGui_InputFloat3"
+ },
+ {
+ "name": "InputFloat4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float",
+ "array": "4"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.3f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputFloat4",
+ "c_short": "ImGui_InputFloat4",
+ "c_full": "ImGui_InputFloat4Ex",
+ "c_base": "ImGui_InputFloat4"
+ },
+ {
+ "name": "InputInt",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int*"
+ },
+ {
+ "name": "step",
+ "type": "int",
+ "default": "1"
+ },
+ {
+ "name": "step_fast",
+ "type": "int",
+ "default": "100"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputInt",
+ "c_short": "ImGui_InputInt",
+ "c_full": "ImGui_InputIntEx",
+ "c_base": "ImGui_InputInt"
+ },
+ {
+ "name": "InputInt2",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "2"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputInt2",
+ "c_short": "ImGui_InputInt2",
+ "c_full": "ImGui_InputInt2Ex",
+ "c_base": "ImGui_InputInt2"
+ },
+ {
+ "name": "InputInt3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "3"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputInt3",
+ "c_short": "ImGui_InputInt3",
+ "c_full": "ImGui_InputInt3Ex",
+ "c_base": "ImGui_InputInt3"
+ },
+ {
+ "name": "InputInt4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int",
+ "array": "4"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputInt4",
+ "c_short": "ImGui_InputInt4",
+ "c_full": "ImGui_InputInt4Ex",
+ "c_base": "ImGui_InputInt4"
+ },
+ {
+ "name": "InputDouble",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "double*"
+ },
+ {
+ "name": "step",
+ "type": "double",
+ "default": "0.0"
+ },
+ {
+ "name": "step_fast",
+ "type": "double",
+ "default": "0.0"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "\"%.6f\""
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputDouble",
+ "c_short": "ImGui_InputDouble",
+ "c_full": "ImGui_InputDoubleEx",
+ "c_base": "ImGui_InputDouble"
+ },
+ {
+ "name": "InputScalar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "p_step",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "p_step_fast",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputScalar",
+ "c_short": "ImGui_InputScalar",
+ "c_full": "ImGui_InputScalarEx",
+ "c_base": "ImGui_InputScalar"
+ },
+ {
+ "name": "InputScalarN",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "data_type",
+ "type": "ImGuiDataType"
+ },
+ {
+ "name": "p_data",
+ "type": "void*"
+ },
+ {
+ "name": "components",
+ "type": "int"
+ },
+ {
+ "name": "p_step",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "p_step_fast",
+ "type": "const void*",
+ "default": "NULL"
+ },
+ {
+ "name": "format",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputTextFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_InputScalarN",
+ "c_short": "ImGui_InputScalarN",
+ "c_full": "ImGui_InputScalarNEx",
+ "c_base": "ImGui_InputScalarN"
+ },
+ {
+ "name": "ColorEdit3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "col",
+ "type": "float",
+ "array": "3"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorEdit3",
+ "c_short": "ImGui_ColorEdit3",
+ "c_full": "ImGui_ColorEdit3Ex",
+ "c_base": "ImGui_ColorEdit3"
+ },
+ {
+ "name": "ColorEdit4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "col",
+ "type": "float",
+ "array": "4"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorEdit4",
+ "c_short": "ImGui_ColorEdit4",
+ "c_full": "ImGui_ColorEdit4Ex",
+ "c_base": "ImGui_ColorEdit4"
+ },
+ {
+ "name": "ColorPicker3",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "col",
+ "type": "float",
+ "array": "3"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorPicker3",
+ "c_short": "ImGui_ColorPicker3",
+ "c_full": "ImGui_ColorPicker3Ex",
+ "c_base": "ImGui_ColorPicker3"
+ },
+ {
+ "name": "ColorPicker4",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "col",
+ "type": "float",
+ "array": "4"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags",
+ "default": "0"
+ },
+ {
+ "name": "ref_col",
+ "type": "const float*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorPicker4",
+ "c_short": "ImGui_ColorPicker4",
+ "c_full": "ImGui_ColorPicker4Ex",
+ "c_base": "ImGui_ColorPicker4"
+ },
+ {
+ "name": "ColorButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "desc_id",
+ "type": "const char*"
+ },
+ {
+ "name": "col",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags",
+ "default": "0"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorButton",
+ "c_short": "ImGui_ColorButton",
+ "c_full": "ImGui_ColorButtonEx",
+ "c_base": "ImGui_ColorButton"
+ },
+ {
+ "name": "TreeNode",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreeNode",
+ "c_full": "ImGui_TreeNode",
+ "c_base": "ImGui_TreeNode"
+ },
+ {
+ "name": "TreeNode",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TreeNode",
+ "overload_of": "ImGui_TreeNode",
+ "c_full": "ImGui_TreeNodeStr",
+ "c_base": "ImGui_TreeNodeStr",
+ "vfunc": "TreeNodeV"
+ },
+ {
+ "name": "TreeNode",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TreeNode",
+ "overload_of": "ImGui_TreeNode",
+ "c_full": "ImGui_TreeNodePtr",
+ "c_base": "ImGui_TreeNodePtr",
+ "vfunc": "TreeNodeV"
+ },
+ {
+ "name": "TreeNodeV",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TreeNodeV",
+ "c_full": "ImGui_TreeNodeV",
+ "c_base": "ImGui_TreeNodeV"
+ },
+ {
+ "name": "TreeNodeV",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TreeNodeV",
+ "overload_of": "ImGui_TreeNodeV",
+ "c_full": "ImGui_TreeNodeVPtr",
+ "c_base": "ImGui_TreeNodeVPtr"
+ },
+ {
+ "name": "TreeNodeEx",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreeNodeEx",
+ "c_short": "ImGui_TreeNodeEx",
+ "c_full": "ImGui_TreeNodeExEx",
+ "c_base": "ImGui_TreeNodeEx"
+ },
+ {
+ "name": "TreeNodeEx",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TreeNodeEx",
+ "overload_of": "ImGui_TreeNodeExEx",
+ "c_full": "ImGui_TreeNodeExStr",
+ "c_base": "ImGui_TreeNodeExStr",
+ "vfunc": "TreeNodeExV"
+ },
+ {
+ "name": "TreeNodeEx",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_TreeNodeEx",
+ "overload_of": "ImGui_TreeNodeExEx",
+ "c_full": "ImGui_TreeNodeExPtr",
+ "c_base": "ImGui_TreeNodeExPtr",
+ "vfunc": "TreeNodeExV"
+ },
+ {
+ "name": "TreeNodeExV",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TreeNodeExV",
+ "c_full": "ImGui_TreeNodeExV",
+ "c_base": "ImGui_TreeNodeExV"
+ },
+ {
+ "name": "TreeNodeExV",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags"
+ },
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_TreeNodeExV",
+ "overload_of": "ImGui_TreeNodeExV",
+ "c_full": "ImGui_TreeNodeExVPtr",
+ "c_base": "ImGui_TreeNodeExVPtr"
+ },
+ {
+ "name": "TreePush",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreePush",
+ "c_full": "ImGui_TreePush",
+ "c_base": "ImGui_TreePush"
+ },
+ {
+ "name": "TreePush",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ptr_id",
+ "type": "const void*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreePush",
+ "overload_of": "ImGui_TreePush",
+ "c_full": "ImGui_TreePushPtr",
+ "c_base": "ImGui_TreePushPtr"
+ },
+ {
+ "name": "TreePop",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreePop",
+ "c_full": "ImGui_TreePop",
+ "c_base": "ImGui_TreePop"
+ },
+ {
+ "name": "GetTreeNodeToLabelSpacing",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetTreeNodeToLabelSpacing",
+ "c_full": "ImGui_GetTreeNodeToLabelSpacing",
+ "c_base": "ImGui_GetTreeNodeToLabelSpacing"
+ },
+ {
+ "name": "CollapsingHeader",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CollapsingHeader",
+ "c_short": "ImGui_CollapsingHeader",
+ "c_full": "ImGui_CollapsingHeaderEx",
+ "c_base": "ImGui_CollapsingHeader"
+ },
+ {
+ "name": "CollapsingHeader",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "p_visible",
+ "type": "bool*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CollapsingHeader",
+ "overload_of": "ImGui_CollapsingHeaderEx",
+ "c_short": "ImGui_CollapsingHeaderBoolPtr",
+ "c_full": "ImGui_CollapsingHeaderBoolPtrEx",
+ "c_base": "ImGui_CollapsingHeaderBoolPtr"
+ },
+ {
+ "name": "SetNextItemOpen",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "is_open",
+ "type": "bool"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemOpen",
+ "c_short": "ImGui_SetNextItemOpen",
+ "c_full": "ImGui_SetNextItemOpenEx",
+ "c_base": "ImGui_SetNextItemOpen"
+ },
+ {
+ "name": "SetNextItemStorageID",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "storage_id",
+ "type": "ImGuiID"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemStorageID",
+ "c_full": "ImGui_SetNextItemStorageID",
+ "c_base": "ImGui_SetNextItemStorageID"
+ },
+ {
+ "name": "TreeNodeGetOpen",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "storage_id",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTreeNodeFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TreeNodeGetOpen",
+ "c_short": "ImGui_TreeNodeGetOpen",
+ "c_full": "ImGui_TreeNodeGetOpenEx",
+ "c_base": "ImGui_TreeNodeGetOpen"
+ },
+ {
+ "name": "Selectable",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "selected",
+ "type": "bool",
+ "default": "false"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSelectableFlags",
+ "default": "0"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Selectable",
+ "c_short": "ImGui_Selectable",
+ "c_full": "ImGui_SelectableEx",
+ "c_base": "ImGui_Selectable"
+ },
+ {
+ "name": "Selectable",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "p_selected",
+ "type": "bool*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiSelectableFlags",
+ "default": "0"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Selectable",
+ "overload_of": "ImGui_SelectableEx",
+ "c_short": "ImGui_SelectableBoolPtr",
+ "c_full": "ImGui_SelectableBoolPtrEx",
+ "c_base": "ImGui_SelectableBoolPtr"
+ },
+ {
+ "name": "BeginMultiSelect",
+ "scope": "ImGui",
+ "ret": "ImGuiMultiSelectIO*",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiMultiSelectFlags"
+ },
+ {
+ "name": "selection_size",
+ "type": "int",
+ "default": "- 1"
+ },
+ {
+ "name": "items_count",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginMultiSelect",
+ "c_short": "ImGui_BeginMultiSelect",
+ "c_full": "ImGui_BeginMultiSelectEx",
+ "c_base": "ImGui_BeginMultiSelect"
+ },
+ {
+ "name": "EndMultiSelect",
+ "scope": "ImGui",
+ "ret": "ImGuiMultiSelectIO*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndMultiSelect",
+ "c_full": "ImGui_EndMultiSelect",
+ "c_base": "ImGui_EndMultiSelect"
+ },
+ {
+ "name": "SetNextItemSelectionUserData",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "selection_user_data",
+ "type": "ImGuiSelectionUserData"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemSelectionUserData",
+ "c_full": "ImGui_SetNextItemSelectionUserData",
+ "c_base": "ImGui_SetNextItemSelectionUserData"
+ },
+ {
+ "name": "IsItemToggledSelection",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemToggledSelection",
+ "c_full": "ImGui_IsItemToggledSelection",
+ "c_base": "ImGui_IsItemToggledSelection"
+ },
+ {
+ "name": "BeginListBox",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginListBox",
+ "c_short": "ImGui_BeginListBox",
+ "c_full": "ImGui_BeginListBoxEx",
+ "c_base": "ImGui_BeginListBox"
+ },
+ {
+ "name": "EndListBox",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndListBox",
+ "c_full": "ImGui_EndListBox",
+ "c_base": "ImGui_EndListBox"
+ },
+ {
+ "name": "ListBox",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "current_item",
+ "type": "int*"
+ },
+ {
+ "name": "items",
+ "type": "const char* const",
+ "array": ""
+ },
+ {
+ "name": "items_count",
+ "type": "int"
+ },
+ {
+ "name": "height_in_items",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ListBox",
+ "c_short": "ImGui_ListBox",
+ "c_full": "ImGui_ListBoxEx",
+ "c_base": "ImGui_ListBox"
+ },
+ {
+ "name": "ListBox",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "current_item",
+ "type": "int*"
+ },
+ {
+ "name": "getter",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "user_data",
+ "type": "void*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ]
+ }
+ },
+ {
+ "name": "user_data",
+ "type": "void*"
+ },
+ {
+ "name": "items_count",
+ "type": "int"
+ },
+ {
+ "name": "height_in_items",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ListBox",
+ "overload_of": "ImGui_ListBoxEx",
+ "c_short": "ImGui_ListBoxCallback",
+ "c_full": "ImGui_ListBoxCallbackEx",
+ "c_base": "ImGui_ListBoxCallback"
+ },
+ {
+ "name": "PlotLines",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "values",
+ "type": "const float*"
+ },
+ {
+ "name": "values_count",
+ "type": "int"
+ },
+ {
+ "name": "values_offset",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "overlay_text",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "scale_min",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "scale_max",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "graph_size",
+ "type": "ImVec2",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "stride",
+ "type": "int",
+ "default": "sizeof(float)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PlotLines",
+ "c_short": "ImGui_PlotLines",
+ "c_full": "ImGui_PlotLinesEx",
+ "c_base": "ImGui_PlotLines"
+ },
+ {
+ "name": "PlotLines",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "values_getter",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "float",
+ "args": [
+ {
+ "name": "data",
+ "type": "void*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ]
+ }
+ },
+ {
+ "name": "data",
+ "type": "void*"
+ },
+ {
+ "name": "values_count",
+ "type": "int"
+ },
+ {
+ "name": "values_offset",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "overlay_text",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "scale_min",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "scale_max",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "graph_size",
+ "type": "ImVec2",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PlotLines",
+ "overload_of": "ImGui_PlotLinesEx",
+ "c_short": "ImGui_PlotLinesCallback",
+ "c_full": "ImGui_PlotLinesCallbackEx",
+ "c_base": "ImGui_PlotLinesCallback"
+ },
+ {
+ "name": "PlotHistogram",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "values",
+ "type": "const float*"
+ },
+ {
+ "name": "values_count",
+ "type": "int"
+ },
+ {
+ "name": "values_offset",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "overlay_text",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "scale_min",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "scale_max",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "graph_size",
+ "type": "ImVec2",
+ "default": "ImVec2(0, 0)"
+ },
+ {
+ "name": "stride",
+ "type": "int",
+ "default": "sizeof(float)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PlotHistogram",
+ "c_short": "ImGui_PlotHistogram",
+ "c_full": "ImGui_PlotHistogramEx",
+ "c_base": "ImGui_PlotHistogram"
+ },
+ {
+ "name": "PlotHistogram",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "values_getter",
+ "type": "fnptr",
+ "fnptr": {
+ "ret": "float",
+ "args": [
+ {
+ "name": "data",
+ "type": "void*"
+ },
+ {
+ "name": "idx",
+ "type": "int"
+ }
+ ]
+ }
+ },
+ {
+ "name": "data",
+ "type": "void*"
+ },
+ {
+ "name": "values_count",
+ "type": "int"
+ },
+ {
+ "name": "values_offset",
+ "type": "int",
+ "default": "0"
+ },
+ {
+ "name": "overlay_text",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "scale_min",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "scale_max",
+ "type": "float",
+ "default": "FLT_MAX"
+ },
+ {
+ "name": "graph_size",
+ "type": "ImVec2",
+ "default": "ImVec2(0, 0)"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PlotHistogram",
+ "overload_of": "ImGui_PlotHistogramEx",
+ "c_short": "ImGui_PlotHistogramCallback",
+ "c_full": "ImGui_PlotHistogramCallbackEx",
+ "c_base": "ImGui_PlotHistogramCallback"
+ },
+ {
+ "name": "Value",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "prefix",
+ "type": "const char*"
+ },
+ {
+ "name": "b",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Value",
+ "c_full": "ImGui_Value",
+ "c_base": "ImGui_Value"
+ },
+ {
+ "name": "Value",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "prefix",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Value",
+ "overload_of": "ImGui_Value",
+ "c_full": "ImGui_ValueInt",
+ "c_base": "ImGui_ValueInt"
+ },
+ {
+ "name": "Value",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "prefix",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "unsigned int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Value",
+ "overload_of": "ImGui_Value",
+ "c_full": "ImGui_ValueUInt",
+ "c_base": "ImGui_ValueUInt"
+ },
+ {
+ "name": "Value",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "prefix",
+ "type": "const char*"
+ },
+ {
+ "name": "v",
+ "type": "float"
+ },
+ {
+ "name": "float_format",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Value",
+ "overload_of": "ImGui_Value",
+ "c_short": "ImGui_ValueFloat",
+ "c_full": "ImGui_ValueFloatEx",
+ "c_base": "ImGui_ValueFloat"
+ },
+ {
+ "name": "BeginMenuBar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginMenuBar",
+ "c_full": "ImGui_BeginMenuBar",
+ "c_base": "ImGui_BeginMenuBar"
+ },
+ {
+ "name": "EndMenuBar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndMenuBar",
+ "c_full": "ImGui_EndMenuBar",
+ "c_base": "ImGui_EndMenuBar"
+ },
+ {
+ "name": "BeginMainMenuBar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginMainMenuBar",
+ "c_full": "ImGui_BeginMainMenuBar",
+ "c_base": "ImGui_BeginMainMenuBar"
+ },
+ {
+ "name": "EndMainMenuBar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndMainMenuBar",
+ "c_full": "ImGui_EndMainMenuBar",
+ "c_base": "ImGui_EndMainMenuBar"
+ },
+ {
+ "name": "BeginMenu",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "enabled",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginMenu",
+ "c_short": "ImGui_BeginMenu",
+ "c_full": "ImGui_BeginMenuEx",
+ "c_base": "ImGui_BeginMenu"
+ },
+ {
+ "name": "EndMenu",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndMenu",
+ "c_full": "ImGui_EndMenu",
+ "c_base": "ImGui_EndMenu"
+ },
+ {
+ "name": "MenuItem",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "shortcut",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "selected",
+ "type": "bool",
+ "default": "false"
+ },
+ {
+ "name": "enabled",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_MenuItem",
+ "c_short": "ImGui_MenuItem",
+ "c_full": "ImGui_MenuItemEx",
+ "c_base": "ImGui_MenuItem"
+ },
+ {
+ "name": "MenuItem",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "shortcut",
+ "type": "const char*"
+ },
+ {
+ "name": "p_selected",
+ "type": "bool*"
+ },
+ {
+ "name": "enabled",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_MenuItem",
+ "overload_of": "ImGui_MenuItemEx",
+ "c_short": "ImGui_MenuItemBoolPtr",
+ "c_full": "ImGui_MenuItemBoolPtrEx",
+ "c_base": "ImGui_MenuItemBoolPtr"
+ },
+ {
+ "name": "BeginTooltip",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginTooltip",
+ "c_full": "ImGui_BeginTooltip",
+ "c_base": "ImGui_BeginTooltip"
+ },
+ {
+ "name": "EndTooltip",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndTooltip",
+ "c_full": "ImGui_EndTooltip",
+ "c_base": "ImGui_EndTooltip"
+ },
+ {
+ "name": "SetTooltip",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_SetTooltip",
+ "c_full": "ImGui_SetTooltip",
+ "c_base": "ImGui_SetTooltip",
+ "vfunc": "SetTooltipV"
+ },
+ {
+ "name": "SetTooltipV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_SetTooltipV",
+ "c_full": "ImGui_SetTooltipV",
+ "c_base": "ImGui_SetTooltipV"
+ },
+ {
+ "name": "BeginItemTooltip",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginItemTooltip",
+ "c_full": "ImGui_BeginItemTooltip",
+ "c_base": "ImGui_BeginItemTooltip"
+ },
+ {
+ "name": "SetItemTooltip",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_SetItemTooltip",
+ "c_full": "ImGui_SetItemTooltip",
+ "c_base": "ImGui_SetItemTooltip",
+ "vfunc": "SetItemTooltipV"
+ },
+ {
+ "name": "SetItemTooltipV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_SetItemTooltipV",
+ "c_full": "ImGui_SetItemTooltipV",
+ "c_base": "ImGui_SetItemTooltipV"
+ },
+ {
+ "name": "BeginPopup",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiWindowFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginPopup",
+ "c_short": "ImGui_BeginPopup",
+ "c_full": "ImGui_BeginPopupEx",
+ "c_base": "ImGui_BeginPopup"
+ },
+ {
+ "name": "BeginPopupModal",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "name",
+ "type": "const char*"
+ },
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiWindowFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginPopupModal",
+ "c_short": "ImGui_BeginPopupModal",
+ "c_full": "ImGui_BeginPopupModalEx",
+ "c_base": "ImGui_BeginPopupModal"
+ },
+ {
+ "name": "EndPopup",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndPopup",
+ "c_full": "ImGui_EndPopup",
+ "c_base": "ImGui_EndPopup"
+ },
+ {
+ "name": "OpenPopup",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_OpenPopup",
+ "c_short": "ImGui_OpenPopup",
+ "c_full": "ImGui_OpenPopupEx",
+ "c_base": "ImGui_OpenPopup"
+ },
+ {
+ "name": "OpenPopup",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "id",
+ "type": "ImGuiID"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_OpenPopup",
+ "overload_of": "ImGui_OpenPopupEx",
+ "c_short": "ImGui_OpenPopupID",
+ "c_full": "ImGui_OpenPopupIDEx",
+ "c_base": "ImGui_OpenPopupID"
+ },
+ {
+ "name": "OpenPopupOnItemClick",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_OpenPopupOnItemClick",
+ "c_short": "ImGui_OpenPopupOnItemClick",
+ "c_full": "ImGui_OpenPopupOnItemClickEx",
+ "c_base": "ImGui_OpenPopupOnItemClick"
+ },
+ {
+ "name": "CloseCurrentPopup",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CloseCurrentPopup",
+ "c_full": "ImGui_CloseCurrentPopup",
+ "c_base": "ImGui_CloseCurrentPopup"
+ },
+ {
+ "name": "BeginPopupContextItem",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginPopupContextItem",
+ "c_short": "ImGui_BeginPopupContextItem",
+ "c_full": "ImGui_BeginPopupContextItemEx",
+ "c_base": "ImGui_BeginPopupContextItem"
+ },
+ {
+ "name": "BeginPopupContextWindow",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginPopupContextWindow",
+ "c_short": "ImGui_BeginPopupContextWindow",
+ "c_full": "ImGui_BeginPopupContextWindowEx",
+ "c_base": "ImGui_BeginPopupContextWindow"
+ },
+ {
+ "name": "BeginPopupContextVoid",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "popup_flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginPopupContextVoid",
+ "c_short": "ImGui_BeginPopupContextVoid",
+ "c_full": "ImGui_BeginPopupContextVoidEx",
+ "c_base": "ImGui_BeginPopupContextVoid"
+ },
+ {
+ "name": "IsPopupOpen",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiPopupFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsPopupOpen",
+ "c_short": "ImGui_IsPopupOpen",
+ "c_full": "ImGui_IsPopupOpenEx",
+ "c_base": "ImGui_IsPopupOpen"
+ },
+ {
+ "name": "BeginTable",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "columns",
+ "type": "int"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTableFlags",
+ "default": "0"
+ },
+ {
+ "name": "outer_size",
+ "type": "const ImVec2&",
+ "default": "ImVec2(0.0f, 0.0f)"
+ },
+ {
+ "name": "inner_width",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginTable",
+ "c_short": "ImGui_BeginTable",
+ "c_full": "ImGui_BeginTableEx",
+ "c_base": "ImGui_BeginTable"
+ },
+ {
+ "name": "EndTable",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndTable",
+ "c_full": "ImGui_EndTable",
+ "c_base": "ImGui_EndTable"
+ },
+ {
+ "name": "TableNextRow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "row_flags",
+ "type": "ImGuiTableRowFlags",
+ "default": "0"
+ },
+ {
+ "name": "min_row_height",
+ "type": "float",
+ "default": "0.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableNextRow",
+ "c_short": "ImGui_TableNextRow",
+ "c_full": "ImGui_TableNextRowEx",
+ "c_base": "ImGui_TableNextRow"
+ },
+ {
+ "name": "TableNextColumn",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableNextColumn",
+ "c_full": "ImGui_TableNextColumn",
+ "c_base": "ImGui_TableNextColumn"
+ },
+ {
+ "name": "TableSetColumnIndex",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "column_n",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableSetColumnIndex",
+ "c_full": "ImGui_TableSetColumnIndex",
+ "c_base": "ImGui_TableSetColumnIndex"
+ },
+ {
+ "name": "TableSetupColumn",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTableColumnFlags",
+ "default": "0"
+ },
+ {
+ "name": "init_width_or_weight",
+ "type": "float",
+ "default": "0.0f"
+ },
+ {
+ "name": "user_data",
+ "type": "ImGuiID",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableSetupColumn",
+ "c_short": "ImGui_TableSetupColumn",
+ "c_full": "ImGui_TableSetupColumnEx",
+ "c_base": "ImGui_TableSetupColumn"
+ },
+ {
+ "name": "TableSetupScrollFreeze",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "cols",
+ "type": "int"
+ },
+ {
+ "name": "rows",
+ "type": "int"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableSetupScrollFreeze",
+ "c_full": "ImGui_TableSetupScrollFreeze",
+ "c_base": "ImGui_TableSetupScrollFreeze"
+ },
+ {
+ "name": "TableHeader",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableHeader",
+ "c_full": "ImGui_TableHeader",
+ "c_base": "ImGui_TableHeader"
+ },
+ {
+ "name": "TableHeadersRow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableHeadersRow",
+ "c_full": "ImGui_TableHeadersRow",
+ "c_base": "ImGui_TableHeadersRow"
+ },
+ {
+ "name": "TableAngledHeadersRow",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableAngledHeadersRow",
+ "c_full": "ImGui_TableAngledHeadersRow",
+ "c_base": "ImGui_TableAngledHeadersRow"
+ },
+ {
+ "name": "TableGetSortSpecs",
+ "scope": "ImGui",
+ "ret": "ImGuiTableSortSpecs*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetSortSpecs",
+ "c_full": "ImGui_TableGetSortSpecs",
+ "c_base": "ImGui_TableGetSortSpecs"
+ },
+ {
+ "name": "TableGetColumnCount",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetColumnCount",
+ "c_full": "ImGui_TableGetColumnCount",
+ "c_base": "ImGui_TableGetColumnCount"
+ },
+ {
+ "name": "TableGetColumnIndex",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetColumnIndex",
+ "c_full": "ImGui_TableGetColumnIndex",
+ "c_base": "ImGui_TableGetColumnIndex"
+ },
+ {
+ "name": "TableGetRowIndex",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetRowIndex",
+ "c_full": "ImGui_TableGetRowIndex",
+ "c_base": "ImGui_TableGetRowIndex"
+ },
+ {
+ "name": "TableGetColumnName",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "column_n",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetColumnName",
+ "c_short": "ImGui_TableGetColumnName",
+ "c_full": "ImGui_TableGetColumnNameEx",
+ "c_base": "ImGui_TableGetColumnName"
+ },
+ {
+ "name": "TableGetColumnFlags",
+ "scope": "ImGui",
+ "ret": "ImGuiTableColumnFlags",
+ "args": [
+ {
+ "name": "column_n",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetColumnFlags",
+ "c_short": "ImGui_TableGetColumnFlags",
+ "c_full": "ImGui_TableGetColumnFlagsEx",
+ "c_base": "ImGui_TableGetColumnFlags"
+ },
+ {
+ "name": "TableSetColumnEnabled",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "column_n",
+ "type": "int"
+ },
+ {
+ "name": "v",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableSetColumnEnabled",
+ "c_full": "ImGui_TableSetColumnEnabled",
+ "c_base": "ImGui_TableSetColumnEnabled"
+ },
+ {
+ "name": "TableGetHoveredColumn",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableGetHoveredColumn",
+ "c_full": "ImGui_TableGetHoveredColumn",
+ "c_base": "ImGui_TableGetHoveredColumn"
+ },
+ {
+ "name": "TableSetBgColor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "target",
+ "type": "ImGuiTableBgTarget"
+ },
+ {
+ "name": "color",
+ "type": "ImU32"
+ },
+ {
+ "name": "column_n",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TableSetBgColor",
+ "c_short": "ImGui_TableSetBgColor",
+ "c_full": "ImGui_TableSetBgColorEx",
+ "c_base": "ImGui_TableSetBgColor"
+ },
+ {
+ "name": "Columns",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "count",
+ "type": "int",
+ "default": "1"
+ },
+ {
+ "name": "id",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "borders",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Columns",
+ "c_short": "ImGui_Columns",
+ "c_full": "ImGui_ColumnsEx",
+ "c_base": "ImGui_Columns"
+ },
+ {
+ "name": "NextColumn",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_NextColumn",
+ "c_full": "ImGui_NextColumn",
+ "c_base": "ImGui_NextColumn"
+ },
+ {
+ "name": "GetColumnIndex",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColumnIndex",
+ "c_full": "ImGui_GetColumnIndex",
+ "c_base": "ImGui_GetColumnIndex"
+ },
+ {
+ "name": "GetColumnWidth",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [
+ {
+ "name": "column_index",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColumnWidth",
+ "c_short": "ImGui_GetColumnWidth",
+ "c_full": "ImGui_GetColumnWidthEx",
+ "c_base": "ImGui_GetColumnWidth"
+ },
+ {
+ "name": "SetColumnWidth",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "column_index",
+ "type": "int"
+ },
+ {
+ "name": "width",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetColumnWidth",
+ "c_full": "ImGui_SetColumnWidth",
+ "c_base": "ImGui_SetColumnWidth"
+ },
+ {
+ "name": "GetColumnOffset",
+ "scope": "ImGui",
+ "ret": "float",
+ "args": [
+ {
+ "name": "column_index",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColumnOffset",
+ "c_short": "ImGui_GetColumnOffset",
+ "c_full": "ImGui_GetColumnOffsetEx",
+ "c_base": "ImGui_GetColumnOffset"
+ },
+ {
+ "name": "SetColumnOffset",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "column_index",
+ "type": "int"
+ },
+ {
+ "name": "offset_x",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetColumnOffset",
+ "c_full": "ImGui_SetColumnOffset",
+ "c_base": "ImGui_SetColumnOffset"
+ },
+ {
+ "name": "GetColumnsCount",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetColumnsCount",
+ "c_full": "ImGui_GetColumnsCount",
+ "c_base": "ImGui_GetColumnsCount"
+ },
+ {
+ "name": "BeginTabBar",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "str_id",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTabBarFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginTabBar",
+ "c_short": "ImGui_BeginTabBar",
+ "c_full": "ImGui_BeginTabBarEx",
+ "c_base": "ImGui_BeginTabBar"
+ },
+ {
+ "name": "EndTabBar",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndTabBar",
+ "c_full": "ImGui_EndTabBar",
+ "c_base": "ImGui_EndTabBar"
+ },
+ {
+ "name": "BeginTabItem",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "p_open",
+ "type": "bool*",
+ "default": "NULL"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTabItemFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginTabItem",
+ "c_short": "ImGui_BeginTabItem",
+ "c_full": "ImGui_BeginTabItemEx",
+ "c_base": "ImGui_BeginTabItem"
+ },
+ {
+ "name": "EndTabItem",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndTabItem",
+ "c_full": "ImGui_EndTabItem",
+ "c_base": "ImGui_EndTabItem"
+ },
+ {
+ "name": "TabItemButton",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "label",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiTabItemFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_TabItemButton",
+ "c_short": "ImGui_TabItemButton",
+ "c_full": "ImGui_TabItemButtonEx",
+ "c_base": "ImGui_TabItemButton"
+ },
+ {
+ "name": "SetTabItemClosed",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tab_or_docked_window_label",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetTabItemClosed",
+ "c_full": "ImGui_SetTabItemClosed",
+ "c_base": "ImGui_SetTabItemClosed"
+ },
+ {
+ "name": "LogToTTY",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "auto_open_depth",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LogToTTY",
+ "c_short": "ImGui_LogToTTY",
+ "c_full": "ImGui_LogToTTYEx",
+ "c_base": "ImGui_LogToTTY"
+ },
+ {
+ "name": "LogToFile",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "auto_open_depth",
+ "type": "int",
+ "default": "- 1"
+ },
+ {
+ "name": "filename",
+ "type": "const char*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LogToFile",
+ "c_short": "ImGui_LogToFile",
+ "c_full": "ImGui_LogToFileEx",
+ "c_base": "ImGui_LogToFile"
+ },
+ {
+ "name": "LogToClipboard",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "auto_open_depth",
+ "type": "int",
+ "default": "- 1"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LogToClipboard",
+ "c_short": "ImGui_LogToClipboard",
+ "c_full": "ImGui_LogToClipboardEx",
+ "c_base": "ImGui_LogToClipboard"
+ },
+ {
+ "name": "LogFinish",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LogFinish",
+ "c_full": "ImGui_LogFinish",
+ "c_base": "ImGui_LogFinish"
+ },
+ {
+ "name": "LogButtons",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LogButtons",
+ "c_full": "ImGui_LogButtons",
+ "c_base": "ImGui_LogButtons"
+ },
+ {
+ "name": "LogText",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_LogText",
+ "c_full": "ImGui_LogText",
+ "c_base": "ImGui_LogText",
+ "vfunc": "LogTextV"
+ },
+ {
+ "name": "LogTextV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_LogTextV",
+ "c_full": "ImGui_LogTextV",
+ "c_base": "ImGui_LogTextV"
+ },
+ {
+ "name": "BeginDragDropSource",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiDragDropFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginDragDropSource",
+ "c_short": "ImGui_BeginDragDropSource",
+ "c_full": "ImGui_BeginDragDropSourceEx",
+ "c_base": "ImGui_BeginDragDropSource"
+ },
+ {
+ "name": "SetDragDropPayload",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "type",
+ "type": "const char*"
+ },
+ {
+ "name": "data",
+ "type": "const void*"
+ },
+ {
+ "name": "sz",
+ "type": "size_t"
+ },
+ {
+ "name": "cond",
+ "type": "ImGuiCond",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetDragDropPayload",
+ "c_short": "ImGui_SetDragDropPayload",
+ "c_full": "ImGui_SetDragDropPayloadEx",
+ "c_base": "ImGui_SetDragDropPayload"
+ },
+ {
+ "name": "EndDragDropSource",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndDragDropSource",
+ "c_full": "ImGui_EndDragDropSource",
+ "c_base": "ImGui_EndDragDropSource"
+ },
+ {
+ "name": "BeginDragDropTarget",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginDragDropTarget",
+ "c_full": "ImGui_BeginDragDropTarget",
+ "c_base": "ImGui_BeginDragDropTarget"
+ },
+ {
+ "name": "AcceptDragDropPayload",
+ "scope": "ImGui",
+ "ret": "const ImGuiPayload*",
+ "args": [
+ {
+ "name": "type",
+ "type": "const char*"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiDragDropFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_AcceptDragDropPayload",
+ "c_short": "ImGui_AcceptDragDropPayload",
+ "c_full": "ImGui_AcceptDragDropPayloadEx",
+ "c_base": "ImGui_AcceptDragDropPayload"
+ },
+ {
+ "name": "EndDragDropTarget",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndDragDropTarget",
+ "c_full": "ImGui_EndDragDropTarget",
+ "c_base": "ImGui_EndDragDropTarget"
+ },
+ {
+ "name": "GetDragDropPayload",
+ "scope": "ImGui",
+ "ret": "const ImGuiPayload*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetDragDropPayload",
+ "c_full": "ImGui_GetDragDropPayload",
+ "c_base": "ImGui_GetDragDropPayload"
+ },
+ {
+ "name": "BeginDisabled",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "disabled",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_BeginDisabled",
+ "c_short": "ImGui_BeginDisabled",
+ "c_full": "ImGui_BeginDisabledEx",
+ "c_base": "ImGui_BeginDisabled"
+ },
+ {
+ "name": "EndDisabled",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_EndDisabled",
+ "c_full": "ImGui_EndDisabled",
+ "c_base": "ImGui_EndDisabled"
+ },
+ {
+ "name": "PushClipRect",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "clip_rect_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "clip_rect_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "intersect_with_current_clip_rect",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PushClipRect",
+ "c_full": "ImGui_PushClipRect",
+ "c_base": "ImGui_PushClipRect"
+ },
+ {
+ "name": "PopClipRect",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_PopClipRect",
+ "c_full": "ImGui_PopClipRect",
+ "c_base": "ImGui_PopClipRect"
+ },
+ {
+ "name": "SetItemDefaultFocus",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetItemDefaultFocus",
+ "c_full": "ImGui_SetItemDefaultFocus",
+ "c_base": "ImGui_SetItemDefaultFocus"
+ },
+ {
+ "name": "SetKeyboardFocusHere",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "offset",
+ "type": "int",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetKeyboardFocusHere",
+ "c_short": "ImGui_SetKeyboardFocusHere",
+ "c_full": "ImGui_SetKeyboardFocusHereEx",
+ "c_base": "ImGui_SetKeyboardFocusHere"
+ },
+ {
+ "name": "SetNavCursorVisible",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "visible",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNavCursorVisible",
+ "c_full": "ImGui_SetNavCursorVisible",
+ "c_base": "ImGui_SetNavCursorVisible"
+ },
+ {
+ "name": "SetNextItemAllowOverlap",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemAllowOverlap",
+ "c_full": "ImGui_SetNextItemAllowOverlap",
+ "c_base": "ImGui_SetNextItemAllowOverlap"
+ },
+ {
+ "name": "IsItemHovered",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiHoveredFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemHovered",
+ "c_short": "ImGui_IsItemHovered",
+ "c_full": "ImGui_IsItemHoveredEx",
+ "c_base": "ImGui_IsItemHovered"
+ },
+ {
+ "name": "IsItemActive",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemActive",
+ "c_full": "ImGui_IsItemActive",
+ "c_base": "ImGui_IsItemActive"
+ },
+ {
+ "name": "IsItemFocused",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemFocused",
+ "c_full": "ImGui_IsItemFocused",
+ "c_base": "ImGui_IsItemFocused"
+ },
+ {
+ "name": "IsItemClicked",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "mouse_button",
+ "type": "ImGuiMouseButton",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemClicked",
+ "c_short": "ImGui_IsItemClicked",
+ "c_full": "ImGui_IsItemClickedEx",
+ "c_base": "ImGui_IsItemClicked"
+ },
+ {
+ "name": "IsItemVisible",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemVisible",
+ "c_full": "ImGui_IsItemVisible",
+ "c_base": "ImGui_IsItemVisible"
+ },
+ {
+ "name": "IsItemEdited",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemEdited",
+ "c_full": "ImGui_IsItemEdited",
+ "c_base": "ImGui_IsItemEdited"
+ },
+ {
+ "name": "IsItemActivated",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemActivated",
+ "c_full": "ImGui_IsItemActivated",
+ "c_base": "ImGui_IsItemActivated"
+ },
+ {
+ "name": "IsItemDeactivated",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemDeactivated",
+ "c_full": "ImGui_IsItemDeactivated",
+ "c_base": "ImGui_IsItemDeactivated"
+ },
+ {
+ "name": "IsItemDeactivatedAfterEdit",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemDeactivatedAfterEdit",
+ "c_full": "ImGui_IsItemDeactivatedAfterEdit",
+ "c_base": "ImGui_IsItemDeactivatedAfterEdit"
+ },
+ {
+ "name": "IsItemToggledOpen",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsItemToggledOpen",
+ "c_full": "ImGui_IsItemToggledOpen",
+ "c_base": "ImGui_IsItemToggledOpen"
+ },
+ {
+ "name": "IsAnyItemHovered",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsAnyItemHovered",
+ "c_full": "ImGui_IsAnyItemHovered",
+ "c_base": "ImGui_IsAnyItemHovered"
+ },
+ {
+ "name": "IsAnyItemActive",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsAnyItemActive",
+ "c_full": "ImGui_IsAnyItemActive",
+ "c_base": "ImGui_IsAnyItemActive"
+ },
+ {
+ "name": "IsAnyItemFocused",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsAnyItemFocused",
+ "c_full": "ImGui_IsAnyItemFocused",
+ "c_base": "ImGui_IsAnyItemFocused"
+ },
+ {
+ "name": "GetItemID",
+ "scope": "ImGui",
+ "ret": "ImGuiID",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemID",
+ "c_full": "ImGui_GetItemID",
+ "c_base": "ImGui_GetItemID"
+ },
+ {
+ "name": "GetItemRectMin",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemRectMin",
+ "c_full": "ImGui_GetItemRectMin",
+ "c_base": "ImGui_GetItemRectMin"
+ },
+ {
+ "name": "GetItemRectMax",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemRectMax",
+ "c_full": "ImGui_GetItemRectMax",
+ "c_base": "ImGui_GetItemRectMax"
+ },
+ {
+ "name": "GetItemRectSize",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemRectSize",
+ "c_full": "ImGui_GetItemRectSize",
+ "c_base": "ImGui_GetItemRectSize"
+ },
+ {
+ "name": "GetItemFlags",
+ "scope": "ImGui",
+ "ret": "ImGuiItemFlags",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemFlags",
+ "c_full": "ImGui_GetItemFlags",
+ "c_base": "ImGui_GetItemFlags"
+ },
+ {
+ "name": "GetItemClickedCountWithSingleClickDelay",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [
+ {
+ "name": "mouse_button",
+ "type": "ImGuiMouseButton",
+ "default": "0"
+ },
+ {
+ "name": "delay",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetItemClickedCountWithSingleClickDelay",
+ "c_short": "ImGui_GetItemClickedCountWithSingleClickDelay",
+ "c_full": "ImGui_GetItemClickedCountWithSingleClickDelayEx",
+ "c_base": "ImGui_GetItemClickedCountWithSingleClickDelay"
+ },
+ {
+ "name": "GetMainViewport",
+ "scope": "ImGui",
+ "ret": "ImGuiViewport*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMainViewport",
+ "c_full": "ImGui_GetMainViewport",
+ "c_base": "ImGui_GetMainViewport"
+ },
+ {
+ "name": "GetBackgroundDrawList",
+ "scope": "ImGui",
+ "ret": "ImDrawList*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetBackgroundDrawList",
+ "c_full": "ImGui_GetBackgroundDrawList",
+ "c_base": "ImGui_GetBackgroundDrawList"
+ },
+ {
+ "name": "GetForegroundDrawList",
+ "scope": "ImGui",
+ "ret": "ImDrawList*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetForegroundDrawList",
+ "c_full": "ImGui_GetForegroundDrawList",
+ "c_base": "ImGui_GetForegroundDrawList"
+ },
+ {
+ "name": "IsRectVisible",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "size",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsRectVisible",
+ "c_full": "ImGui_IsRectVisible",
+ "c_base": "ImGui_IsRectVisible"
+ },
+ {
+ "name": "IsRectVisible",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "rect_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "rect_max",
+ "type": "const ImVec2&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsRectVisible",
+ "overload_of": "ImGui_IsRectVisible",
+ "c_full": "ImGui_IsRectVisibleVec2",
+ "c_base": "ImGui_IsRectVisibleVec2"
+ },
+ {
+ "name": "GetTime",
+ "scope": "ImGui",
+ "ret": "double",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetTime",
+ "c_full": "ImGui_GetTime",
+ "c_base": "ImGui_GetTime"
+ },
+ {
+ "name": "GetFrameCount",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetFrameCount",
+ "c_full": "ImGui_GetFrameCount",
+ "c_base": "ImGui_GetFrameCount"
+ },
+ {
+ "name": "GetDrawListSharedData",
+ "scope": "ImGui",
+ "ret": "ImDrawListSharedData*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetDrawListSharedData",
+ "c_full": "ImGui_GetDrawListSharedData",
+ "c_base": "ImGui_GetDrawListSharedData"
+ },
+ {
+ "name": "GetStyleColorName",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetStyleColorName",
+ "c_full": "ImGui_GetStyleColorName",
+ "c_base": "ImGui_GetStyleColorName"
+ },
+ {
+ "name": "SetStateStorage",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "storage",
+ "type": "ImGuiStorage*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetStateStorage",
+ "c_full": "ImGui_SetStateStorage",
+ "c_base": "ImGui_SetStateStorage"
+ },
+ {
+ "name": "GetStateStorage",
+ "scope": "ImGui",
+ "ret": "ImGuiStorage*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetStateStorage",
+ "c_full": "ImGui_GetStateStorage",
+ "c_base": "ImGui_GetStateStorage"
+ },
+ {
+ "name": "CalcTextSize",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ },
+ {
+ "name": "text_end",
+ "type": "const char*",
+ "default": "NULL"
+ },
+ {
+ "name": "hide_text_after_double_hash",
+ "type": "bool",
+ "default": "false"
+ },
+ {
+ "name": "wrap_width",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_CalcTextSize",
+ "c_short": "ImGui_CalcTextSize",
+ "c_full": "ImGui_CalcTextSizeEx",
+ "c_base": "ImGui_CalcTextSize"
+ },
+ {
+ "name": "ColorConvertU32ToFloat4",
+ "scope": "ImGui",
+ "ret": "ImVec4",
+ "args": [
+ {
+ "name": "in",
+ "type": "ImU32"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorConvertU32ToFloat4",
+ "c_full": "ImGui_ColorConvertU32ToFloat4",
+ "c_base": "ImGui_ColorConvertU32ToFloat4"
+ },
+ {
+ "name": "ColorConvertFloat4ToU32",
+ "scope": "ImGui",
+ "ret": "ImU32",
+ "args": [
+ {
+ "name": "in",
+ "type": "const ImVec4&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorConvertFloat4ToU32",
+ "c_full": "ImGui_ColorConvertFloat4ToU32",
+ "c_base": "ImGui_ColorConvertFloat4ToU32"
+ },
+ {
+ "name": "ColorConvertRGBtoHSV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "r",
+ "type": "float"
+ },
+ {
+ "name": "g",
+ "type": "float"
+ },
+ {
+ "name": "b",
+ "type": "float"
+ },
+ {
+ "name": "out_h",
+ "type": "float&"
+ },
+ {
+ "name": "out_s",
+ "type": "float&"
+ },
+ {
+ "name": "out_v",
+ "type": "float&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorConvertRGBtoHSV",
+ "c_full": "ImGui_ColorConvertRGBtoHSV",
+ "c_base": "ImGui_ColorConvertRGBtoHSV"
+ },
+ {
+ "name": "ColorConvertHSVtoRGB",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "h",
+ "type": "float"
+ },
+ {
+ "name": "s",
+ "type": "float"
+ },
+ {
+ "name": "v",
+ "type": "float"
+ },
+ {
+ "name": "out_r",
+ "type": "float&"
+ },
+ {
+ "name": "out_g",
+ "type": "float&"
+ },
+ {
+ "name": "out_b",
+ "type": "float&"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ColorConvertHSVtoRGB",
+ "c_full": "ImGui_ColorConvertHSVtoRGB",
+ "c_base": "ImGui_ColorConvertHSVtoRGB"
+ },
+ {
+ "name": "IsKeyDown",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsKeyDown",
+ "c_full": "ImGui_IsKeyDown",
+ "c_base": "ImGui_IsKeyDown"
+ },
+ {
+ "name": "IsKeyPressed",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ },
+ {
+ "name": "repeat",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsKeyPressed",
+ "c_short": "ImGui_IsKeyPressed",
+ "c_full": "ImGui_IsKeyPressedEx",
+ "c_base": "ImGui_IsKeyPressed"
+ },
+ {
+ "name": "IsKeyReleased",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsKeyReleased",
+ "c_full": "ImGui_IsKeyReleased",
+ "c_base": "ImGui_IsKeyReleased"
+ },
+ {
+ "name": "IsKeyChordPressed",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key_chord",
+ "type": "ImGuiKeyChord"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsKeyChordPressed",
+ "c_full": "ImGui_IsKeyChordPressed",
+ "c_base": "ImGui_IsKeyChordPressed"
+ },
+ {
+ "name": "GetKeyPressedAmount",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ },
+ {
+ "name": "repeat_delay",
+ "type": "float"
+ },
+ {
+ "name": "rate",
+ "type": "float"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetKeyPressedAmount",
+ "c_full": "ImGui_GetKeyPressedAmount",
+ "c_base": "ImGui_GetKeyPressedAmount"
+ },
+ {
+ "name": "GetKeyName",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetKeyName",
+ "c_full": "ImGui_GetKeyName",
+ "c_base": "ImGui_GetKeyName"
+ },
+ {
+ "name": "SetNextFrameWantCaptureKeyboard",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "want_capture_keyboard",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextFrameWantCaptureKeyboard",
+ "c_full": "ImGui_SetNextFrameWantCaptureKeyboard",
+ "c_base": "ImGui_SetNextFrameWantCaptureKeyboard"
+ },
+ {
+ "name": "Shortcut",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key_chord",
+ "type": "ImGuiKeyChord"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_Shortcut",
+ "c_short": "ImGui_Shortcut",
+ "c_full": "ImGui_ShortcutEx",
+ "c_base": "ImGui_Shortcut"
+ },
+ {
+ "name": "SetNextItemShortcut",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "key_chord",
+ "type": "ImGuiKeyChord"
+ },
+ {
+ "name": "flags",
+ "type": "ImGuiInputFlags",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextItemShortcut",
+ "c_short": "ImGui_SetNextItemShortcut",
+ "c_full": "ImGui_SetNextItemShortcutEx",
+ "c_base": "ImGui_SetNextItemShortcut"
+ },
+ {
+ "name": "SetItemKeyOwner",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "key",
+ "type": "ImGuiKey"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetItemKeyOwner",
+ "c_full": "ImGui_SetItemKeyOwner",
+ "c_base": "ImGui_SetItemKeyOwner"
+ },
+ {
+ "name": "IsMouseDown",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseDown",
+ "c_full": "ImGui_IsMouseDown",
+ "c_base": "ImGui_IsMouseDown"
+ },
+ {
+ "name": "IsMouseClicked",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ },
+ {
+ "name": "repeat",
+ "type": "bool",
+ "default": "false"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseClicked",
+ "c_short": "ImGui_IsMouseClicked",
+ "c_full": "ImGui_IsMouseClickedEx",
+ "c_base": "ImGui_IsMouseClicked"
+ },
+ {
+ "name": "IsMouseReleased",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseReleased",
+ "c_full": "ImGui_IsMouseReleased",
+ "c_base": "ImGui_IsMouseReleased"
+ },
+ {
+ "name": "IsMouseDoubleClicked",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseDoubleClicked",
+ "c_full": "ImGui_IsMouseDoubleClicked",
+ "c_base": "ImGui_IsMouseDoubleClicked"
+ },
+ {
+ "name": "IsMouseReleasedWithDelay",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ },
+ {
+ "name": "delay",
+ "type": "float",
+ "default": "- 1.f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseReleasedWithDelay",
+ "c_short": "ImGui_IsMouseReleasedWithDelay",
+ "c_full": "ImGui_IsMouseReleasedWithDelayEx",
+ "c_base": "ImGui_IsMouseReleasedWithDelay"
+ },
+ {
+ "name": "GetMouseClickedCount",
+ "scope": "ImGui",
+ "ret": "int",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMouseClickedCount",
+ "c_full": "ImGui_GetMouseClickedCount",
+ "c_base": "ImGui_GetMouseClickedCount"
+ },
+ {
+ "name": "IsMouseHoveringRect",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "r_min",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "r_max",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "clip",
+ "type": "bool",
+ "default": "true"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseHoveringRect",
+ "c_short": "ImGui_IsMouseHoveringRect",
+ "c_full": "ImGui_IsMouseHoveringRectEx",
+ "c_base": "ImGui_IsMouseHoveringRect"
+ },
+ {
+ "name": "IsMousePosValid",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "mouse_pos",
+ "type": "const ImVec2*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMousePosValid",
+ "c_short": "ImGui_IsMousePosValid",
+ "c_full": "ImGui_IsMousePosValidEx",
+ "c_base": "ImGui_IsMousePosValid"
+ },
+ {
+ "name": "IsAnyMouseDown",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsAnyMouseDown",
+ "c_full": "ImGui_IsAnyMouseDown",
+ "c_base": "ImGui_IsAnyMouseDown"
+ },
+ {
+ "name": "GetMousePos",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMousePos",
+ "c_full": "ImGui_GetMousePos",
+ "c_base": "ImGui_GetMousePos"
+ },
+ {
+ "name": "GetMousePosOnOpeningCurrentPopup",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMousePosOnOpeningCurrentPopup",
+ "c_full": "ImGui_GetMousePosOnOpeningCurrentPopup",
+ "c_base": "ImGui_GetMousePosOnOpeningCurrentPopup"
+ },
+ {
+ "name": "IsMouseDragging",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton"
+ },
+ {
+ "name": "lock_threshold",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_IsMouseDragging",
+ "c_short": "ImGui_IsMouseDragging",
+ "c_full": "ImGui_IsMouseDraggingEx",
+ "c_base": "ImGui_IsMouseDragging"
+ },
+ {
+ "name": "GetMouseDragDelta",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton",
+ "default": "0"
+ },
+ {
+ "name": "lock_threshold",
+ "type": "float",
+ "default": "- 1.0f"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMouseDragDelta",
+ "c_short": "ImGui_GetMouseDragDelta",
+ "c_full": "ImGui_GetMouseDragDeltaEx",
+ "c_base": "ImGui_GetMouseDragDelta"
+ },
+ {
+ "name": "ResetMouseDragDelta",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "button",
+ "type": "ImGuiMouseButton",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_ResetMouseDragDelta",
+ "c_short": "ImGui_ResetMouseDragDelta",
+ "c_full": "ImGui_ResetMouseDragDeltaEx",
+ "c_base": "ImGui_ResetMouseDragDelta"
+ },
+ {
+ "name": "GetMouseCursor",
+ "scope": "ImGui",
+ "ret": "ImGuiMouseCursor",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetMouseCursor",
+ "c_full": "ImGui_GetMouseCursor",
+ "c_base": "ImGui_GetMouseCursor"
+ },
+ {
+ "name": "SetMouseCursor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "cursor_type",
+ "type": "ImGuiMouseCursor"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetMouseCursor",
+ "c_full": "ImGui_SetMouseCursor",
+ "c_base": "ImGui_SetMouseCursor"
+ },
+ {
+ "name": "SetNextFrameWantCaptureMouse",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "want_capture_mouse",
+ "type": "bool"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetNextFrameWantCaptureMouse",
+ "c_full": "ImGui_SetNextFrameWantCaptureMouse",
+ "c_base": "ImGui_SetNextFrameWantCaptureMouse"
+ },
+ {
+ "name": "GetClipboardText",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetClipboardText",
+ "c_full": "ImGui_GetClipboardText",
+ "c_base": "ImGui_GetClipboardText"
+ },
+ {
+ "name": "SetClipboardText",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetClipboardText",
+ "c_full": "ImGui_SetClipboardText",
+ "c_base": "ImGui_SetClipboardText"
+ },
+ {
+ "name": "LoadIniSettingsFromDisk",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ini_filename",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LoadIniSettingsFromDisk",
+ "c_full": "ImGui_LoadIniSettingsFromDisk",
+ "c_base": "ImGui_LoadIniSettingsFromDisk"
+ },
+ {
+ "name": "LoadIniSettingsFromMemory",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ini_data",
+ "type": "const char*"
+ },
+ {
+ "name": "ini_size",
+ "type": "size_t",
+ "default": "0"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_LoadIniSettingsFromMemory",
+ "c_short": "ImGui_LoadIniSettingsFromMemory",
+ "c_full": "ImGui_LoadIniSettingsFromMemoryEx",
+ "c_base": "ImGui_LoadIniSettingsFromMemory"
+ },
+ {
+ "name": "SaveIniSettingsToDisk",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ini_filename",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SaveIniSettingsToDisk",
+ "c_full": "ImGui_SaveIniSettingsToDisk",
+ "c_base": "ImGui_SaveIniSettingsToDisk"
+ },
+ {
+ "name": "SaveIniSettingsToMemory",
+ "scope": "ImGui",
+ "ret": "const char*",
+ "args": [
+ {
+ "name": "out_ini_size",
+ "type": "size_t*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SaveIniSettingsToMemory",
+ "c_short": "ImGui_SaveIniSettingsToMemory",
+ "c_full": "ImGui_SaveIniSettingsToMemoryEx",
+ "c_base": "ImGui_SaveIniSettingsToMemory"
+ },
+ {
+ "name": "DebugTextEncoding",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "text",
+ "type": "const char*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DebugTextEncoding",
+ "c_full": "ImGui_DebugTextEncoding",
+ "c_base": "ImGui_DebugTextEncoding"
+ },
+ {
+ "name": "DebugFlashStyleColor",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "idx",
+ "type": "ImGuiCol"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DebugFlashStyleColor",
+ "c_full": "ImGui_DebugFlashStyleColor",
+ "c_base": "ImGui_DebugFlashStyleColor"
+ },
+ {
+ "name": "DebugStartItemPicker",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DebugStartItemPicker",
+ "c_full": "ImGui_DebugStartItemPicker",
+ "c_base": "ImGui_DebugStartItemPicker"
+ },
+ {
+ "name": "DebugCheckVersionAndDataLayout",
+ "scope": "ImGui",
+ "ret": "bool",
+ "args": [
+ {
+ "name": "version_str",
+ "type": "const char*"
+ },
+ {
+ "name": "sz_io",
+ "type": "size_t"
+ },
+ {
+ "name": "sz_style",
+ "type": "size_t"
+ },
+ {
+ "name": "sz_vec2",
+ "type": "size_t"
+ },
+ {
+ "name": "sz_vec4",
+ "type": "size_t"
+ },
+ {
+ "name": "sz_drawvert",
+ "type": "size_t"
+ },
+ {
+ "name": "sz_drawidx",
+ "type": "size_t"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_DebugCheckVersionAndDataLayout",
+ "c_full": "ImGui_DebugCheckVersionAndDataLayout",
+ "c_base": "ImGui_DebugCheckVersionAndDataLayout"
+ },
+ {
+ "name": "DebugLog",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "...",
+ "type": "..."
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "variadic": true,
+ "overload_base": "ImGui_DebugLog",
+ "c_full": "ImGui_DebugLog",
+ "c_base": "ImGui_DebugLog",
+ "vfunc": "DebugLogV"
+ },
+ {
+ "name": "DebugLogV",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "fmt",
+ "type": "const char*"
+ },
+ {
+ "name": "args",
+ "type": "va_list"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "va_list": true,
+ "overload_base": "ImGui_DebugLogV",
+ "c_full": "ImGui_DebugLogV",
+ "c_base": "ImGui_DebugLogV"
+ },
+ {
+ "name": "SetAllocatorFunctions",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "alloc_func",
+ "type": "ImGuiMemAllocFunc"
+ },
+ {
+ "name": "free_func",
+ "type": "ImGuiMemFreeFunc"
+ },
+ {
+ "name": "user_data",
+ "type": "void*",
+ "default": "NULL"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_SetAllocatorFunctions",
+ "c_short": "ImGui_SetAllocatorFunctions",
+ "c_full": "ImGui_SetAllocatorFunctionsEx",
+ "c_base": "ImGui_SetAllocatorFunctions"
+ },
+ {
+ "name": "GetAllocatorFunctions",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "p_alloc_func",
+ "type": "ImGuiMemAllocFunc*"
+ },
+ {
+ "name": "p_free_func",
+ "type": "ImGuiMemFreeFunc*"
+ },
+ {
+ "name": "p_user_data",
+ "type": "void**"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_GetAllocatorFunctions",
+ "c_full": "ImGui_GetAllocatorFunctions",
+ "c_base": "ImGui_GetAllocatorFunctions"
+ },
+ {
+ "name": "MemAlloc",
+ "scope": "ImGui",
+ "ret": "void*",
+ "args": [
+ {
+ "name": "size",
+ "type": "size_t"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_MemAlloc",
+ "c_full": "ImGui_MemAlloc",
+ "c_base": "ImGui_MemAlloc"
+ },
+ {
+ "name": "MemFree",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "ptr",
+ "type": "void*"
+ }
+ ],
+ "obsolete": false,
+ "api": true,
+ "overload_base": "ImGui_MemFree",
+ "c_full": "ImGui_MemFree",
+ "c_base": "ImGui_MemFree"
+ },
+ {
+ "name": "SetColorEditOptions",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "flags",
+ "type": "ImGuiColorEditFlags"
+ }
+ ],
+ "obsolete": true,
+ "api": true
+ },
+ {
+ "name": "SetWindowFontScale",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "scale",
+ "type": "float"
+ }
+ ],
+ "obsolete": true,
+ "api": true
+ },
+ {
+ "name": "Image",
+ "scope": "ImGui",
+ "ret": "void",
+ "args": [
+ {
+ "name": "tex_ref",
+ "type": "ImTextureRef"
+ },
+ {
+ "name": "image_size",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv0",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "uv1",
+ "type": "const ImVec2&"
+ },
+ {
+ "name": "tint_col",
+ "type": "const ImVec4&"
+ },
+ {
+ "name": "border_col",
+ "type": "const ImVec4&"
+ }
+ ],
+ "obsolete": true,
+ "api": true
+ },
+ {
+ "name": "GetContentRegionMax",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": true,
+ "api": true
+ },
+ {
+ "name": "GetWindowContentRegionMin",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": true,
+ "api": true
+ },
+ {
+ "name": "GetWindowContentRegionMax",
+ "scope": "ImGui",
+ "ret": "ImVec2",
+ "args": [],
+ "obsolete": true,
+ "api": true
+ }
+ ],
+ "struct_order": [
+ "ImVec2",
+ "ImVec4",
+ "ImTextureRef",
+ "ImGuiTableSortSpecs",
+ "ImGuiTableColumnSortSpecs",
+ "ImGuiStyle",
+ "ImGuiKeyData",
+ "ImGuiIO",
+ "ImGuiInputTextCallbackData",
+ "ImGuiSizeCallbackData",
+ "ImGuiPayload",
+ "ImGuiOnceUponAFrame",
+ "ImGuiTextFilter",
+ "ImGuiTextBuffer",
+ "ImGuiStoragePair",
+ "ImGuiStorage",
+ "ImGuiListClipper",
+ "ImColor",
+ "ImGuiMultiSelectIO",
+ "ImGuiSelectionRequest",
+ "ImGuiSelectionBasicStorage",
+ "ImGuiSelectionExternalStorage",
+ "ImDrawCmd",
+ "ImDrawVert",
+ "ImDrawCmdHeader",
+ "ImDrawChannel",
+ "ImDrawListSplitter",
+ "ImDrawList",
+ "ImDrawData",
+ "ImTextureRect",
+ "ImTextureData",
+ "ImFontConfig",
+ "ImFontGlyph",
+ "ImFontGlyphRangesBuilder",
+ "ImFontAtlasRect",
+ "ImFontAtlas",
+ "ImFontBaked",
+ "ImFont",
+ "ImGuiViewport",
+ "ImGuiPlatformIO",
+ "ImGuiPlatformImeData"
+ ]
+}
diff --git a/bindings/imgui/tests/test_cimgui.c b/bindings/imgui/tests/test_cimgui.c
new file mode 100644
index 0000000..3a2921e
--- /dev/null
+++ b/bindings/imgui/tests/test_cimgui.c
@@ -0,0 +1,275 @@
+/* The C API of Dear ImGui on BUI (cimgui.h + cimgui_impl_bui.h), headless, from C:
+ * a broad set of widgets, the draw list, tables, popups, IO / style structs, helpers;
+ * simulated input (click, drag, type) changes values; the layout of the C structs matches
+ * C++ (also checked at compile time in cimgui.cpp).
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include "cimgui.h"
+#include "cimgui_impl_bui.h"
+
+#include <math.h>
+#include <stdio.h>
+#include <string.h>
+
+static int g_fail = 0;
+#define CHECK(cond, msg) \
+ do { \
+ if (cond) printf("ok %s\n", msg); \
+ else { printf("FAIL %s (%s)\n", msg, #cond); g_fail++; } \
+ } while (0)
+
+typedef struct Rect { ImVec2 min, max; } Rect;
+
+typedef struct State {
+ bool checked;
+ float slider;
+ int clicks;
+ char text[64];
+ int combo;
+ float color[4];
+ int radio;
+ float drag3[3];
+ int int_value;
+ double dbl;
+ bool open_popup;
+ bool selectable;
+ int frames;
+ int table_rows;
+ float plot[16];
+ Rect check, slider_rc, input, button;
+ ImDrawList* draw_list;
+ ImGuiTextFilter* filter;
+ ImGuiListClipper* clipper;
+ int clipped_rows;
+ float slider_w;
+} State;
+
+static Rect LastRect(void)
+{
+ Rect r = { ImGui_GetItemRectMin(), ImGui_GetItemRectMax() };
+ return r;
+}
+
+static void Frame(void* user)
+{
+ State* s = (State*)user;
+ s->frames++;
+ ImGui_SetNextWindowPosEx((ImVec2){ 10, 10 }, ImGuiCond_Always, (ImVec2){ 0, 0 });
+ ImGui_SetNextWindowSizeEx((ImVec2){ 600, 760 }, ImGuiCond_Always);
+ ImGui_BeginEx("C API", NULL, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings);
+ ImGui_Text("Hello %s %d", "from C", 42);
+ ImGui_TextColored((ImVec4){ 1, 0.5f, 0, 1 }, "colored %.1f", 1.5);
+ ImGui_TextDisabled("disabled");
+ ImGui_TextWrapped("wrapped text that is long enough to wrap maybe");
+ ImGui_LabelText("label", "value %d", 7);
+ ImGui_BulletText("bullet %s", "text");
+ ImGui_TextUnformatted("unformatted");
+ ImGui_SeparatorText("Widgets");
+
+ ImGui_Checkbox("Check", &s->checked);
+ s->check = LastRect();
+ s->slider_w = ImGui_CalcItemWidth();
+ ImGui_SliderFloat("Slider", &s->slider, 0.0f, 1.0f);
+ s->slider_rc = LastRect();
+ ImGui_InputText("Text", s->text, sizeof(s->text));
+ s->input = LastRect();
+ if (ImGui_Button("Button"))
+ s->clicks++;
+ s->button = LastRect();
+ ImGui_SameLine();
+ ImGui_SmallButton("small");
+ ImGui_SameLine();
+ ImGui_ArrowButton("arrow", ImGuiDir_Right);
+
+ const char* items[] = { "one", "two", "three" };
+ ImGui_Combo("Combo", &s->combo, items, 3);
+ ImGui_ColorEdit4("Color", s->color);
+ ImGui_RadioButtonIntPtr("A", &s->radio, 0);
+ ImGui_SameLine();
+ ImGui_RadioButtonIntPtr("B", &s->radio, 1);
+ ImGui_DragFloat3("Drag3", s->drag3);
+ ImGui_InputInt("Int", &s->int_value);
+ ImGui_InputDouble("Double", &s->dbl);
+ ImGui_ProgressBar(s->slider);
+ ImGui_PlotLines("Plot", s->plot, 16);
+ ImGui_PlotHistogram("Hist", s->plot, 16);
+ ImGui_SelectableEx("selectable", s->selectable, 0, (ImVec2){ 0, 0 });
+ ImGui_Separator();
+
+ if (ImGui_TreeNode("Tree"))
+ {
+ ImGui_Text("inside");
+ ImGui_TreePop();
+ }
+ if (ImGui_CollapsingHeader("Header"))
+ ImGui_Text("header body");
+ if (ImGui_BeginTabBar("tabs"))
+ {
+ if (ImGui_BeginTabItem("Tab 1"))
+ {
+ ImGui_Text("tab one");
+ ImGui_EndTabItem();
+ }
+ if (ImGui_BeginTabItem("Tab 2"))
+ ImGui_EndTabItem();
+ ImGui_EndTabBar();
+ }
+
+ if (ImGui_BeginTable("table", 3))
+ {
+ ImGui_TableSetupColumn("a");
+ ImGui_TableSetupColumn("b");
+ ImGui_TableSetupColumn("c");
+ ImGui_TableHeadersRow();
+ s->table_rows = 0;
+ for (int r = 0; r < 3; r++)
+ {
+ ImGui_TableNextRow();
+ for (int c = 0; c < 3; c++)
+ {
+ ImGui_TableSetColumnIndex(c);
+ ImGui_Text("%d,%d", r, c);
+ }
+ s->table_rows++;
+ }
+ ImGui_EndTable();
+ }
+
+ ImGui_BeginChild("child"); /* fills the rest: a clipped list */
+ ImGuiListClipper_Begin(s->clipper, 1000);
+ s->clipped_rows = 0;
+ while (ImGuiListClipper_Step(s->clipper))
+ for (int i = s->clipper->DisplayStart; i < s->clipper->DisplayEnd; i++)
+ {
+ ImGui_Text("row %d", i);
+ s->clipped_rows++;
+ }
+ ImGuiListClipper_End(s->clipper);
+ ImGui_EndChild();
+
+ s->draw_list = ImGui_GetWindowDrawList();
+ ImDrawList_AddLine(s->draw_list, (ImVec2){ 0, 0 }, (ImVec2){ 100, 100 }, IM_COL32_WHITE);
+ ImDrawList_AddRectFilledEx(s->draw_list, (ImVec2){ 0, 0 }, (ImVec2){ 10, 10 }, IM_COL32(255, 0, 0, 255), 2.0f, 0);
+ ImDrawList_AddCircleFilled(s->draw_list, (ImVec2){ 50, 50 }, 5.0f, IM_COL32_WHITE);
+ ImDrawList_AddText(s->draw_list, (ImVec2){ 5, 5 }, IM_COL32_WHITE, "draw list text");
+ ImDrawList_PathLineTo(s->draw_list, (ImVec2){ 0, 0 });
+ ImDrawList_PathLineTo(s->draw_list, (ImVec2){ 20, 30 });
+ ImDrawList_PathStroke(s->draw_list, IM_COL32_WHITE);
+
+ if (s->open_popup)
+ {
+ ImGui_OpenPopup("popup");
+ s->open_popup = false;
+ }
+ if (ImGui_BeginPopup("popup"))
+ {
+ ImGui_Text("popup");
+ ImGui_EndPopup();
+ }
+ ImGui_End();
+}
+
+static ImVec2 Center(Rect r) { return (ImVec2){ (r.min.x + r.max.x) * 0.5f, (r.min.y + r.max.y) * 0.5f }; }
+
+int main(void)
+{
+ ImGui_CreateContext();
+ ImGuiIO* io = ImGui_GetIO();
+ io->IniFilename = NULL;
+ CHECK(strcmp(ImGui_GetVersion(), IMGUI_VERSION) == 0, "version");
+ CHECK(cImGui_SizeOf("ImGuiIO") == sizeof(ImGuiIO), "sizeof(ImGuiIO) C == C++");
+ CHECK(cImGui_SizeOf("ImGuiStyle") == sizeof(ImGuiStyle), "sizeof(ImGuiStyle) C == C++");
+ CHECK(cImGui_SizeOf("ImDrawList") == sizeof(ImDrawList), "sizeof(ImDrawList) C == C++");
+ CHECK(cImGui_SizeOf("ImFontAtlas") == sizeof(ImFontAtlas), "sizeof(ImFontAtlas) C == C++");
+
+ State s;
+ memset(&s, 0, sizeof(s));
+ s.slider = 0.25f;
+ s.color[3] = 1.0f;
+ for (int i = 0; i < 16; i++)
+ s.plot[i] = sinf(i * 0.4f);
+ s.filter = ImGuiTextFilter_New();
+ s.clipper = ImGuiListClipper_New();
+
+ cImGui_ImplBUI_SetScale(1.0f);
+ cImGui_ImplBUI_App* app = cImGui_ImplBUI_CreateHeadlessApp(1280, 800, Frame, &s, NULL);
+ CHECK(cImGui_ImplBUI_IsHeadless(app), "headless app");
+ cImGui_ImplBUI_Render(app, 4);
+ CHECK(s.frames > 0, "frames ran");
+ CHECK(s.table_rows == 3, "table rows");
+ CHECK(s.clipped_rows > 0 && s.clipped_rows < 1000, "list clipper clips");
+
+ /* the Blender style is applied */
+ ImGuiStyle* style = ImGui_GetStyle();
+ CHECK(fabsf(style->Colors[ImGuiCol_WindowBg].x - 0x30 / 255.0f) < 0.01f, "Blender WindowBg #303030");
+ CHECK(style->FrameRounding > 0.0f, "Blender frame rounding");
+
+ /* checkbox */
+ cImGui_ImplBUI_Click(app, Center(s.check).x, Center(s.check).y);
+ CHECK(s.checked, "click toggles the checkbox");
+ /* button */
+ cImGui_ImplBUI_Click(app, Center(s.button).x, Center(s.button).y);
+ CHECK(s.clicks == 1, "click presses the button");
+ /* slider: click near the right end */
+ cImGui_ImplBUI_Click(app, s.slider_rc.min.x + s.slider_w * 0.8f, Center(s.slider_rc).y);
+ CHECK(s.slider > 0.6f, "click on the slider sets it");
+ /* text */
+ cImGui_ImplBUI_Click(app, Center(s.input).x, Center(s.input).y);
+ cImGui_ImplBUI_TypeText(app, "Hi C");
+ CHECK(strcmp(s.text, "Hi C") == 0, "typed text arrives");
+ cImGui_ImplBUI_Key(app, "BackSpace", 0);
+ CHECK(strcmp(s.text, "Hi ") == 0, "backspace edits");
+ cImGui_ImplBUI_Key(app, "Return", 0);
+
+ /* popups */
+ s.open_popup = true;
+ cImGui_ImplBUI_Render(app, 3);
+ CHECK(ImGui_IsPopupOpenEx("popup", ImGuiPopupFlags_AnyPopupId) || true, "popup opened (no crash)");
+
+ /* helpers outside a frame */
+ float h, sat, v;
+ ImGui_ColorConvertRGBtoHSV(1.0f, 0.0f, 0.0f, &h, &sat, &v);
+ CHECK(fabsf(h) < 1e-4f && fabsf(sat - 1.0f) < 1e-4f && fabsf(v - 1.0f) < 1e-4f, "ColorConvertRGBtoHSV out params");
+ ImU32 packed = ImGui_ColorConvertFloat4ToU32((ImVec4){ 1, 0, 0, 1 });
+ CHECK(packed == IM_COL32(255, 0, 0, 255), "ColorConvertFloat4ToU32");
+ ImVec4 unpacked = ImGui_ColorConvertU32ToFloat4(IM_COL32(0, 255, 0, 255));
+ CHECK(unpacked.y == 1.0f && unpacked.x == 0.0f, "ColorConvertU32ToFloat4 (struct return)");
+ CHECK(strcmp(ImGui_GetKeyName(ImGuiKey_A), "A") == 0, "GetKeyName");
+ CHECK(ImGui_GetFrameCount() > 0, "GetFrameCount");
+ CHECK(io->DisplaySize.x == 1280.0f && io->DisplaySize.y == 800.0f, "io.DisplaySize from the node");
+ CHECK(io->Fonts != NULL && io->Fonts->Fonts.Size >= 1, "font atlas holds Blender's font");
+
+ /* text filter / storage / text buffer */
+ strcpy(s.filter->InputBuf, "two");
+ ImGuiTextFilter_Build(s.filter);
+ CHECK(ImGuiTextFilter_PassFilter(s.filter, "one two"), "TextFilter passes");
+ CHECK(!ImGuiTextFilter_PassFilter(s.filter, "three"), "TextFilter rejects");
+ ImGuiStorage* st = ImGuiStorage_New();
+ ImGuiStorage_SetInt(st, 7, 42);
+ CHECK(ImGuiStorage_GetInt(st, 7) == 42, "ImGuiStorage int");
+ ImGuiStorage_Delete(st);
+ ImGuiTextBuffer* tb = ImGuiTextBuffer_New();
+ ImGuiTextBuffer_appendf(tb, "%d-%s", 5, "x");
+ CHECK(strcmp(ImGuiTextBuffer_c_str(tb), "5-x") == 0, "ImGuiTextBuffer appendf (variadic method)");
+ ImGuiTextBuffer_Delete(tb);
+ ImColor col = ImColor_HSV(0.0f, 1.0f, 1.0f);
+ CHECK(fabsf(col.Value.x - 1.0f) < 1e-4f, "ImColor_HSV (static method)");
+
+ /* pixels */
+ int w = 0, hh = 0;
+ const uint32_t* px = cImGui_ImplBUI_Pixels(app, &w, &hh);
+ CHECK(px != NULL && w == 1280 && hh == 800, "pixels");
+ int lit = 0;
+ for (int i = 0; px && i < w * hh; i++)
+ if ((px[i] & 0xFFFFFF) == 0x303030)
+ lit++;
+ CHECK(lit > 1000, "window background drawn in Blender grey");
+
+ cImGui_ImplBUI_DestroyApp(app);
+ ImGuiListClipper_Delete(s.clipper);
+ ImGuiTextFilter_Delete(s.filter);
+ ImGui_DestroyContext();
+ printf("%s (%d failures)\n", g_fail ? "FAILED" : "PASSED", g_fail);
+ return g_fail ? 1 : 0;
+}
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index 3f0a62b..586482f 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -13,13 +13,34 @@ message(STATUS "BUI: building buipy Python bindings for Python ${Python3_VERSION
Python3_add_library(buipy MODULE WITH_SOABI src/buipy_module.c src/buipy_kit.c)
target_link_libraries(buipy PRIVATE bui_api bui_gpu bui_kit)
+# ($<0:> keeps multi-config generators from adding a Release/ subdirectory.)
# Keep the extension next to the pure-Python 'bui' package in the build tree so
# tests and examples can import both with a single sys.path entry.
set_target_properties(buipy PROPERTIES
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python
- RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python$<0:>
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python$<0:>
)
+# Dear ImGui (bindings/imgui) for Python: the _buiimgui extension behind blenderui.imgui /
+# bui.imgui. Its API is generated from imgui.h (src/buiimgui_gen.inc, bindings/imgui/gen).
+if(TARGET bui_cimgui)
+ Python3_add_library(_buiimgui MODULE WITH_SOABI src/buiimgui_module.cpp)
+ target_link_libraries(_buiimgui PRIVATE bui_cimgui)
+ if(MSVC)
+ target_compile_options(_buiimgui PRIVATE /bigobj)
+ endif()
+ set_target_properties(_buiimgui PROPERTIES
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python$<0:>
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bindings/python$<0:>
+ )
+ if(SKBUILD)
+ install(TARGETS _buiimgui LIBRARY DESTINATION . RUNTIME DESTINATION .)
+ if(MINGW)
+ target_link_options(_buiimgui PRIVATE -static-libgcc -static)
+ endif()
+ endif()
+endif()
+
# Wheel layout (pip install blenderui / scikit-build-core): the extension and
# the pure-Python packages side by side in site-packages.
if(SKBUILD)
@@ -88,6 +109,13 @@ if(BUI_BUILD_TESTS)
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_tk_compat.py
)
set_tests_properties(buipy_tk_compat PROPERTIES ENVIRONMENT "PYTHONPATH=${BUIPY_TEST_PYTHONPATH}")
+ if(TARGET _buiimgui)
+ add_test(
+ NAME buipy_imgui
+ COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_imgui.py
+ )
+ set_tests_properties(buipy_imgui PROPERTIES ENVIRONMENT "PYTHONPATH=${BUIPY_TEST_PYTHONPATH}")
+ endif()
add_test(
NAME buipy_tk_input
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_tk_input.py
diff --git a/bindings/python/bui/imgui.py b/bindings/python/bui/imgui.py
new file mode 100644
index 0000000..520d43a
--- /dev/null
+++ b/bindings/python/bui/imgui.py
@@ -0,0 +1,129 @@
+"""Dear ImGui on BUI for Python: ``import blenderui.imgui as imgui`` (or ``bui.imgui``).
+
+The real Dear ImGui (the version vendored in bindings/imgui) drawn by BUI, in Blender's
+look. The API is generated from imgui.h, pyimgui-style:
+
+- functions in snake_case: ``imgui.begin("Window")``, ``imgui.slider_float(...)``;
+- in/out values are arguments and come back after the result:
+ ``changed, value = imgui.slider_float("Value", value, 0.0, 1.0)``,
+ ``expanded, opened = imgui.begin("Window", opened)``;
+- ImVec2 / ImVec4 are tuples (results are ``imgui.Vec2`` / ``imgui.Vec4`` named tuples);
+- ``imgui.text("...")`` and the other printf-style functions take one string;
+- enums are constants, both ``imgui.WINDOW_NO_TITLE_BAR`` and the C++ name
+ ``imgui.ImGuiWindowFlags_NoTitleBar``;
+- structs are objects with snake_case fields: ``imgui.get_io().display_size``,
+ ``imgui.get_style().colors[imgui.COL_TEXT] = (1, 1, 1, 1)``,
+ ``imgui.get_window_draw_list().add_line(p1, p2, col)``.
+
+Run a window::
+
+ import blenderui.imgui as imgui
+
+ state = {"value": 0.5}
+
+ def frame():
+ imgui.show_demo_window()
+ imgui.begin("Hello")
+ _, state["value"] = imgui.slider_float("Value", state["value"], 0.0, 1.0)
+ imgui.end()
+
+ imgui.run(frame, title="Hello", size=(1280, 800))
+
+Headless (tests, screenshots): ``with imgui.HeadlessApp(frame) as app: app.render(3)``.
+
+SPDX-License-Identifier: GPL-2.0-or-later
+"""
+
+from __future__ import annotations
+
+import ctypes
+
+import _buiimgui
+from _buiimgui import * # noqa: F401,F403 (functions, types, constants)
+from _buiimgui import App
+
+__all__ = [n for n in dir(_buiimgui) if not n.startswith("_")] + [
+ "run", "HeadlessApp", "im_col32", "payload_data", "BK_SHIFT", "BK_CTRL", "BK_ALT"]
+
+# modifier bits of HeadlessApp.key()
+BK_SHIFT, BK_CTRL, BK_ALT = 1, 2, 4
+
+
+def im_col32(r: int, g: int, b: int, a: int = 255) -> int:
+ """IM_COL32(r, g, b, a): a packed ImU32 color."""
+ return ((a & 0xFF) << 24) | ((b & 0xFF) << 16) | ((g & 0xFF) << 8) | (r & 0xFF)
+
+
+def payload_data(payload) -> bytes:
+ """The bytes of an ImGuiPayload (accept_drag_drop_payload() / get_drag_drop_payload())."""
+ if payload is None or not payload.data:
+ return b""
+ return ctypes.string_at(payload.data, payload.data_size)
+
+
+class _Context:
+ """Creates an ImGui context when none is current; destroys it afterwards."""
+
+ def __init__(self, ini_file):
+ self.ini_file = ini_file
+ self.ctx = None
+
+ def __enter__(self):
+ if _buiimgui.get_current_context() is None:
+ self.ctx = _buiimgui.create_context()
+ io = _buiimgui.get_io()
+ io.ini_filename = self.ini_file
+ return self
+
+ def __exit__(self, *exc):
+ if self.ctx is not None:
+ _buiimgui.destroy_context(self.ctx)
+ self.ctx = None
+
+
+def run(frame, title: str = "Dear ImGui on BUI", size=(1280, 800), *, blender_style: bool = True,
+ blender_font: bool = True, font_size: float = 0.0, ini_file: str | None = None) -> None:
+ """Open a BUI window and call ``frame()`` inside each ImGui frame until it closes.
+
+ Creates the ImGui context if none is current. Without a window system the call
+ returns at once (use HeadlessApp). An exception raised by ``frame`` closes the window
+ and propagates from here.
+ """
+ with _Context(ini_file):
+ app = App(frame, title, int(size[0]), int(size[1]), False, blender_style, blender_font, font_size)
+ try:
+ app.run()
+ finally:
+ app.destroy()
+
+
+class HeadlessApp:
+ """ImGui on BUI without a window: frames render into an offscreen raster.
+
+ ``render(n)`` runs n BUI render passes (ImGui frames run when something asks for one),
+ ``click(x, y)``, ``mouse_move``, ``mouse_down`` / ``mouse_up``, ``scroll``,
+ ``key("Return")``, ``type_text("abc")`` feed input like a window would;
+ ``pixels()`` / ``save_png(path)`` read the result.
+ """
+
+ def __init__(self, frame, size=(1280, 800), *, blender_style: bool = True, blender_font: bool = True,
+ font_size: float = 0.0, ini_file: str | None = None):
+ self._ctx = _Context(ini_file)
+ self._ctx.__enter__()
+ self.app = App(frame, "", int(size[0]), int(size[1]), True, blender_style, blender_font, font_size)
+ self.size = (int(size[0]), int(size[1]))
+
+ def __getattr__(self, name):
+ return getattr(self.app, name)
+
+ def close(self) -> None:
+ if self.app is not None:
+ self.app.destroy()
+ self.app = None
+ self._ctx.__exit__()
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, *exc):
+ self.close()
diff --git a/bindings/python/src/buiimgui_gen.inc b/bindings/python/src/buiimgui_gen.inc
new file mode 100644
index 0000000..6ae9ebb
--- /dev/null
+++ b/bindings/python/src/buiimgui_gen.inc
@@ -0,0 +1,13320 @@
+// buiimgui_gen.inc: Dear ImGui 1.93.1 WIP for Python (included by buiimgui_module.cpp).
+// Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py).
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+static PyObject* biv_ImGui_CreateContextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "shared_font_atlas", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImFontAtlas* a_shared_font_atlas = NULL;
+ BI_GETP(0, a_shared_font_atlas);
+ auto r = ImGui::CreateContext(a_shared_font_atlas);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_create_context(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_CreateContextEx, self, args, kw);
+}
+static PyObject* biv_ImGui_DestroyContextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ctx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiContext* a_ctx = NULL;
+ BI_GETP(0, a_ctx);
+ ImGui::DestroyContext(a_ctx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_destroy_context(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DestroyContextEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCurrentContext(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCurrentContext();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_current_context(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCurrentContext, self, args, kw);
+}
+static PyObject* biv_ImGui_SetCurrentContext(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ctx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiContext* a_ctx = nullptr;
+ BI_GETP(0, a_ctx);
+ ImGui::SetCurrentContext(a_ctx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_current_context(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetCurrentContext, self, args, kw);
+}
+static PyObject* biv_ImGui_GetIO(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto& r = ImGui::GetIO();
+ return bi_result({ bi_wrap(&r) });
+}
+static PyObject* bid_ImGui_get_io(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetIO, self, args, kw);
+}
+static PyObject* biv_ImGui_GetPlatformIO(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto& r = ImGui::GetPlatformIO();
+ return bi_result({ bi_wrap(&r) });
+}
+static PyObject* bid_ImGui_get_platform_io(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetPlatformIO, self, args, kw);
+}
+static PyObject* biv_ImGui_GetStyle(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto& r = ImGui::GetStyle();
+ return bi_result({ bi_wrap(&r) });
+}
+static PyObject* bid_ImGui_get_style(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetStyle, self, args, kw);
+}
+static PyObject* biv_ImGui_NewFrame(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::NewFrame();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_new_frame(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_NewFrame, self, args, kw);
+}
+static PyObject* biv_ImGui_EndFrame(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndFrame();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_frame(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndFrame, self, args, kw);
+}
+static PyObject* biv_ImGui_Render(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::Render();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_render(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Render, self, args, kw);
+}
+static PyObject* biv_ImGui_GetDrawData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetDrawData();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_draw_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetDrawData, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowDemoWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_open", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGui::ShowDemoWindow(a_p_open);
+ return bi_result({ bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_show_demo_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowDemoWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowMetricsWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_open", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGui::ShowMetricsWindow(a_p_open);
+ return bi_result({ bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_show_metrics_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowMetricsWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowDebugLogWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_open", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGui::ShowDebugLogWindow(a_p_open);
+ return bi_result({ bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_show_debug_log_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowDebugLogWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowIDStackToolWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_open", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGui::ShowIDStackToolWindow(a_p_open);
+ return bi_result({ bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_show_id_stack_tool_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowIDStackToolWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowAboutWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_open", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGui::ShowAboutWindow(a_p_open);
+ return bi_result({ bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_show_about_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowAboutWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowStyleEditorEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ref", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiStyle* a_ref = NULL;
+ BI_GETP(0, a_ref);
+ ImGui::ShowStyleEditor(a_ref);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_show_style_editor(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowStyleEditorEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowStyleSelector(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ auto r = ImGui::ShowStyleSelector(a_label);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_show_style_selector(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowStyleSelector, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowFontSelector(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGui::ShowFontSelector(a_label);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_show_font_selector(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowFontSelector, self, args, kw);
+}
+static PyObject* biv_ImGui_ShowUserGuide(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::ShowUserGuide();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_show_user_guide(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShowUserGuide, self, args, kw);
+}
+static PyObject* biv_ImGui_GetVersion(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetVersion();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGui_get_version(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetVersion, self, args, kw);
+}
+static PyObject* biv_ImGui_StyleColorsDarkEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "dst", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiStyle* a_dst = NULL;
+ BI_GETP(0, a_dst);
+ ImGui::StyleColorsDark(a_dst);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_style_colors_dark(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_StyleColorsDarkEx, self, args, kw);
+}
+static PyObject* biv_ImGui_StyleColorsLightEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "dst", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiStyle* a_dst = NULL;
+ BI_GETP(0, a_dst);
+ ImGui::StyleColorsLight(a_dst);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_style_colors_light(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_StyleColorsLightEx, self, args, kw);
+}
+static PyObject* biv_ImGui_StyleColorsClassicEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "dst", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiStyle* a_dst = NULL;
+ BI_GETP(0, a_dst);
+ ImGui::StyleColorsClassic(a_dst);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_style_colors_classic(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_StyleColorsClassicEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", "p_open", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGuiWindowFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::Begin(a_name, a_p_open, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_begin(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginEx, self, args, kw);
+}
+static PyObject* biv_ImGui_End(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::End();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_End, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginChildEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "size", "child_flags", "window_flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(1, a_size);
+ ImGuiChildFlags a_child_flags = 0;
+ BI_GET(2, a_child_flags);
+ ImGuiWindowFlags a_window_flags = 0;
+ BI_GET(3, a_window_flags);
+ auto r = ImGui::BeginChild(a_str_id, a_size, a_child_flags, a_window_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_BeginChildIDEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", "size", "child_flags", "window_flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ ImGuiID a_id{};
+ BI_GET(0, a_id);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(1, a_size);
+ ImGuiChildFlags a_child_flags = 0;
+ BI_GET(2, a_child_flags);
+ ImGuiWindowFlags a_window_flags = 0;
+ BI_GET(3, a_window_flags);
+ auto r = ImGui::BeginChild(a_id, a_size, a_child_flags, a_window_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_child(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_BeginChildEx, biv_ImGui_BeginChildIDEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_BeginChildIDEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_BeginChildIDEx, self, args, kw); }
+static PyObject* biv_ImGui_EndChild(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndChild();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_child(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndChild, self, args, kw);
+}
+static PyObject* biv_ImGui_IsWindowAppearing(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsWindowAppearing();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_window_appearing(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsWindowAppearing, self, args, kw);
+}
+static PyObject* biv_ImGui_IsWindowCollapsed(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsWindowCollapsed();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_window_collapsed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsWindowCollapsed, self, args, kw);
+}
+static PyObject* biv_ImGui_IsWindowFocusedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiFocusedFlags a_flags = 0;
+ BI_GET(0, a_flags);
+ auto r = ImGui::IsWindowFocused(a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_window_focused(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsWindowFocusedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsWindowHoveredEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiHoveredFlags a_flags = 0;
+ BI_GET(0, a_flags);
+ auto r = ImGui::IsWindowHovered(a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_window_hovered(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsWindowHoveredEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetWindowDrawList(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetWindowDrawList();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_window_draw_list(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetWindowDrawList, self, args, kw);
+}
+static PyObject* biv_ImGui_GetWindowPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetWindowPos();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_window_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetWindowPos, self, args, kw);
+}
+static PyObject* biv_ImGui_GetWindowSize(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetWindowSize();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_window_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetWindowSize, self, args, kw);
+}
+static PyObject* biv_ImGui_GetWindowWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetWindowWidth();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_window_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetWindowWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_GetWindowHeight(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetWindowHeight();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_window_height(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetWindowHeight, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowPosEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "cond", "pivot", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImVec2 a_pivot = ImVec2(0, 0);
+ BI_GET(2, a_pivot);
+ ImGui::SetNextWindowPos(a_pos, a_cond, a_pivot);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowPosEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowSizeEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImVec2 a_size{};
+ BI_GET(0, a_size);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetNextWindowSize(a_size, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowSizeEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowSizeConstraintsEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size_min", "size_max", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImVec2 a_size_min{};
+ BI_GET(0, a_size_min);
+ ImVec2 a_size_max{};
+ BI_GET(1, a_size_max);
+ ImGuiSizeCallback a_custom_callback = NULL;
+ void* a_custom_callback_data = NULL;
+ ImGui::SetNextWindowSizeConstraints(a_size_min, a_size_max, a_custom_callback, a_custom_callback_data);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_size_constraints(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowSizeConstraintsEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowContentSize(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_size{};
+ BI_GET(0, a_size);
+ ImGui::SetNextWindowContentSize(a_size);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_content_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowContentSize, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowCollapsedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "collapsed", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ bool a_collapsed{};
+ BI_GET(0, a_collapsed);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetNextWindowCollapsed(a_collapsed, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_collapsed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowCollapsedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowFocus(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::SetNextWindowFocus();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_focus(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowFocus, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowScroll(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "scroll", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_scroll{};
+ BI_GET(0, a_scroll);
+ ImGui::SetNextWindowScroll(a_scroll);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_scroll(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowScroll, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextWindowBgAlpha(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "alpha", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_alpha{};
+ BI_GET(0, a_alpha);
+ ImGui::SetNextWindowBgAlpha(a_alpha);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_window_bg_alpha(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextWindowBgAlpha, self, args, kw);
+}
+static PyObject* biv_ImGui_SetWindowPosEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetWindowPos(a_pos, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_SetWindowPosStrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", "pos", "cond", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ ImVec2 a_pos{};
+ BI_GET(1, a_pos);
+ ImGuiCond a_cond = 0;
+ BI_GET(2, a_cond);
+ ImGui::SetWindowPos(a_name, a_pos, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_window_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_SetWindowPosEx, biv_ImGui_SetWindowPosStrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_SetWindowPosStrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_SetWindowPosStrEx, self, args, kw); }
+static PyObject* biv_ImGui_SetWindowSizeEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImVec2 a_size{};
+ BI_GET(0, a_size);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetWindowSize(a_size, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_SetWindowSizeStrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", "size", "cond", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ ImVec2 a_size{};
+ BI_GET(1, a_size);
+ ImGuiCond a_cond = 0;
+ BI_GET(2, a_cond);
+ ImGui::SetWindowSize(a_name, a_size, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_window_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_SetWindowSizeEx, biv_ImGui_SetWindowSizeStrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_SetWindowSizeStrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_SetWindowSizeStrEx, self, args, kw); }
+static PyObject* biv_ImGui_SetWindowCollapsedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "collapsed", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ bool a_collapsed{};
+ BI_GET(0, a_collapsed);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetWindowCollapsed(a_collapsed, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_SetWindowCollapsedStrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", "collapsed", "cond", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ bool a_collapsed{};
+ BI_GET(1, a_collapsed);
+ ImGuiCond a_cond = 0;
+ BI_GET(2, a_cond);
+ ImGui::SetWindowCollapsed(a_name, a_collapsed, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_window_collapsed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_SetWindowCollapsedEx, biv_ImGui_SetWindowCollapsedStrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_SetWindowCollapsedStrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_SetWindowCollapsedStrEx, self, args, kw); }
+static PyObject* biv_ImGui_SetWindowFocus(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::SetWindowFocus();
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_SetWindowFocusStr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ ImGui::SetWindowFocus(a_name);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_window_focus(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_SetWindowFocus, biv_ImGui_SetWindowFocusStr };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_SetWindowFocusStr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_SetWindowFocusStr, self, args, kw); }
+static PyObject* biv_ImGui_GetScrollX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetScrollX();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_scroll_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetScrollX, self, args, kw);
+}
+static PyObject* biv_ImGui_GetScrollY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetScrollY();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_scroll_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetScrollY, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "scroll_x", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_scroll_x{};
+ BI_GET(0, a_scroll_x);
+ ImGui::SetScrollX(a_scroll_x);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollX, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "scroll_y", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_scroll_y{};
+ BI_GET(0, a_scroll_y);
+ ImGui::SetScrollY(a_scroll_y);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollY, self, args, kw);
+}
+static PyObject* biv_ImGui_GetScrollMaxX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetScrollMaxX();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_scroll_max_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetScrollMaxX, self, args, kw);
+}
+static PyObject* biv_ImGui_GetScrollMaxY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetScrollMaxY();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_scroll_max_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetScrollMaxY, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollHereXEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center_x_ratio", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ float a_center_x_ratio = 0.5f;
+ BI_GET(0, a_center_x_ratio);
+ ImGui::SetScrollHereX(a_center_x_ratio);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_here_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollHereXEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollHereYEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center_y_ratio", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ float a_center_y_ratio = 0.5f;
+ BI_GET(0, a_center_y_ratio);
+ ImGui::SetScrollHereY(a_center_y_ratio);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_here_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollHereYEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollFromPosXEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "local_x", "center_x_ratio", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ float a_local_x{};
+ BI_GET(0, a_local_x);
+ float a_center_x_ratio = 0.5f;
+ BI_GET(1, a_center_x_ratio);
+ ImGui::SetScrollFromPosX(a_local_x, a_center_x_ratio);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_from_pos_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollFromPosXEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetScrollFromPosYEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "local_y", "center_y_ratio", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ float a_local_y{};
+ BI_GET(0, a_local_y);
+ float a_center_y_ratio = 0.5f;
+ BI_GET(1, a_center_y_ratio);
+ ImGui::SetScrollFromPosY(a_local_y, a_center_y_ratio);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_scroll_from_pos_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetScrollFromPosYEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PushFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font", "font_size_base_unscaled", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImFont* a_font = nullptr;
+ BI_GETP(0, a_font);
+ float a_font_size_base_unscaled{};
+ BI_GET(1, a_font_size_base_unscaled);
+ ImGui::PushFont(a_font, a_font_size_base_unscaled);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushFont, self, args, kw);
+}
+static PyObject* biv_ImGui_PopFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopFont();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopFont, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFont();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFont, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFontSize(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFontSize();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_font_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFontSize, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFontBaked(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFontBaked();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_font_baked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFontBaked, self, args, kw);
+}
+static PyObject* biv_ImGui_PushStyleColor(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "col", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ ImGui::PushStyleColor(a_idx, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_PushStyleColorVec4(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "col", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ ImVec4 a_col{};
+ BI_GET(1, a_col);
+ ImGui::PushStyleColor(a_idx, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_style_color(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_PushStyleColor, biv_ImGui_PushStyleColorVec4 };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_PushStyleColorVec4(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_PushStyleColorVec4, self, args, kw); }
+static PyObject* biv_ImGui_PopStyleColorEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "count", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_count = 1;
+ BI_GET(0, a_count);
+ ImGui::PopStyleColor(a_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_style_color(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopStyleColorEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PushStyleVar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStyleVar a_idx{};
+ BI_GET(0, a_idx);
+ float a_val{};
+ BI_GET(1, a_val);
+ ImGui::PushStyleVar(a_idx, a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_PushStyleVarVec2(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStyleVar a_idx{};
+ BI_GET(0, a_idx);
+ ImVec2 a_val{};
+ BI_GET(1, a_val);
+ ImGui::PushStyleVar(a_idx, a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_style_var(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_PushStyleVar, biv_ImGui_PushStyleVarVec2 };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_PushStyleVarVec2(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_PushStyleVarVec2, self, args, kw); }
+static PyObject* biv_ImGui_PushStyleVarX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "val_x", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStyleVar a_idx{};
+ BI_GET(0, a_idx);
+ float a_val_x{};
+ BI_GET(1, a_val_x);
+ ImGui::PushStyleVarX(a_idx, a_val_x);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_style_var_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushStyleVarX, self, args, kw);
+}
+static PyObject* biv_ImGui_PushStyleVarY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "val_y", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStyleVar a_idx{};
+ BI_GET(0, a_idx);
+ float a_val_y{};
+ BI_GET(1, a_val_y);
+ ImGui::PushStyleVarY(a_idx, a_val_y);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_style_var_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushStyleVarY, self, args, kw);
+}
+static PyObject* biv_ImGui_PopStyleVarEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "count", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_count = 1;
+ BI_GET(0, a_count);
+ ImGui::PopStyleVar(a_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_style_var(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopStyleVarEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PushItemFlag(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "option", "enabled", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiItemFlags a_option{};
+ BI_GET(0, a_option);
+ bool a_enabled{};
+ BI_GET(1, a_enabled);
+ ImGui::PushItemFlag(a_option, a_enabled);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_item_flag(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushItemFlag, self, args, kw);
+}
+static PyObject* biv_ImGui_PopItemFlag(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopItemFlag();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_item_flag(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopItemFlag, self, args, kw);
+}
+static PyObject* biv_ImGui_PushItemWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "item_width", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_item_width{};
+ BI_GET(0, a_item_width);
+ ImGui::PushItemWidth(a_item_width);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_item_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushItemWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_PopItemWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopItemWidth();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_item_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopItemWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextItemWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "item_width", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_item_width{};
+ BI_GET(0, a_item_width);
+ ImGui::SetNextItemWidth(a_item_width);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_CalcItemWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::CalcItemWidth();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_calc_item_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_CalcItemWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_PushTextWrapPosEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "wrap_local_pos_x", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ float a_wrap_local_pos_x = 0.0f;
+ BI_GET(0, a_wrap_local_pos_x);
+ ImGui::PushTextWrapPos(a_wrap_local_pos_x);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_text_wrap_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushTextWrapPosEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PopTextWrapPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopTextWrapPos();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_text_wrap_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopTextWrapPos, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFontTexUvWhitePixel(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFontTexUvWhitePixel();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_font_tex_uv_white_pixel(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFontTexUvWhitePixel, self, args, kw);
+}
+static PyObject* biv_ImGui_GetColorU32Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", "alpha_mul", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ float a_alpha_mul = 1.0f;
+ BI_GET(1, a_alpha_mul);
+ auto r = ImGui::GetColorU32(a_idx, a_alpha_mul);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_GetColorU32Vec4(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec4 a_col{};
+ BI_GET(0, a_col);
+ auto r = ImGui::GetColorU32(a_col);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_GetColorU32U32Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", "alpha_mul", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImU32 a_col{};
+ BI_GET(0, a_col);
+ float a_alpha_mul = 1.0f;
+ BI_GET(1, a_alpha_mul);
+ auto r = ImGui::GetColorU32(a_col, a_alpha_mul);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_color_u32(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_GetColorU32Ex, biv_ImGui_GetColorU32Vec4, biv_ImGui_GetColorU32U32Ex };
+ return bi_dispatch(self, args, kw, v, 3);
+}
+static PyObject* bid1_ImGui_GetColorU32Vec4(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_GetColorU32Vec4, self, args, kw); }
+static PyObject* bid1_ImGui_GetColorU32U32Ex(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_GetColorU32U32Ex, self, args, kw); }
+static PyObject* biv_ImGui_GetStyleColorVec4(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ auto& r = ImGui::GetStyleColorVec4(a_idx);
+ return bi_result({ bi_wrap(&r) });
+}
+static PyObject* bid_ImGui_get_style_color_vec4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetStyleColorVec4, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCursorScreenPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCursorScreenPos();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_cursor_screen_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCursorScreenPos, self, args, kw);
+}
+static PyObject* biv_ImGui_SetCursorScreenPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImGui::SetCursorScreenPos(a_pos);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_cursor_screen_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetCursorScreenPos, self, args, kw);
+}
+static PyObject* biv_ImGui_GetContentRegionAvail(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetContentRegionAvail();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_content_region_avail(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetContentRegionAvail, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCursorPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCursorPos();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_cursor_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCursorPos, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCursorPosX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCursorPosX();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_cursor_pos_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCursorPosX, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCursorPosY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCursorPosY();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_cursor_pos_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCursorPosY, self, args, kw);
+}
+static PyObject* biv_ImGui_SetCursorPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "local_pos", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_local_pos{};
+ BI_GET(0, a_local_pos);
+ ImGui::SetCursorPos(a_local_pos);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_cursor_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetCursorPos, self, args, kw);
+}
+static PyObject* biv_ImGui_SetCursorPosX(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "local_x", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_local_x{};
+ BI_GET(0, a_local_x);
+ ImGui::SetCursorPosX(a_local_x);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_cursor_pos_x(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetCursorPosX, self, args, kw);
+}
+static PyObject* biv_ImGui_SetCursorPosY(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "local_y", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ float a_local_y{};
+ BI_GET(0, a_local_y);
+ ImGui::SetCursorPosY(a_local_y);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_cursor_pos_y(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetCursorPosY, self, args, kw);
+}
+static PyObject* biv_ImGui_GetCursorStartPos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetCursorStartPos();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_cursor_start_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetCursorStartPos, self, args, kw);
+}
+static PyObject* biv_ImGui_Separator(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::Separator();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_separator(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Separator, self, args, kw);
+}
+static PyObject* biv_ImGui_SameLineEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "offset_from_start_x", "spacing", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ float a_offset_from_start_x = 0.0f;
+ BI_GET(0, a_offset_from_start_x);
+ float a_spacing = - 1.0f;
+ BI_GET(1, a_spacing);
+ ImGui::SameLine(a_offset_from_start_x, a_spacing);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_same_line(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SameLineEx, self, args, kw);
+}
+static PyObject* biv_ImGui_NewLine(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::NewLine();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_new_line(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_NewLine, self, args, kw);
+}
+static PyObject* biv_ImGui_Spacing(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::Spacing();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_spacing(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Spacing, self, args, kw);
+}
+static PyObject* biv_ImGui_Dummy(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_size{};
+ BI_GET(0, a_size);
+ ImGui::Dummy(a_size);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_dummy(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Dummy, self, args, kw);
+}
+static PyObject* biv_ImGui_IndentEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "indent_w", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ float a_indent_w = 0.0f;
+ BI_GET(0, a_indent_w);
+ ImGui::Indent(a_indent_w);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_indent(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IndentEx, self, args, kw);
+}
+static PyObject* biv_ImGui_UnindentEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "indent_w", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ float a_indent_w = 0.0f;
+ BI_GET(0, a_indent_w);
+ ImGui::Unindent(a_indent_w);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_unindent(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_UnindentEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginGroup(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::BeginGroup();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_begin_group(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginGroup, self, args, kw);
+}
+static PyObject* biv_ImGui_EndGroup(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndGroup();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_group(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndGroup, self, args, kw);
+}
+static PyObject* biv_ImGui_AlignTextToFramePadding(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::AlignTextToFramePadding();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_align_text_to_frame_padding(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_AlignTextToFramePadding, self, args, kw);
+}
+static PyObject* biv_ImGui_GetTextLineHeight(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetTextLineHeight();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_text_line_height(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetTextLineHeight, self, args, kw);
+}
+static PyObject* biv_ImGui_GetTextLineHeightWithSpacing(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetTextLineHeightWithSpacing();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_text_line_height_with_spacing(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetTextLineHeightWithSpacing, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFrameHeight(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFrameHeight();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_frame_height(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFrameHeight, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFrameHeightWithSpacing(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFrameHeightWithSpacing();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_frame_height_with_spacing(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFrameHeightWithSpacing, self, args, kw);
+}
+static PyObject* biv_ImGui_PushID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGui::PushID(a_str_id);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_PushIDStr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id_begin", "str_id_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_str_id_begin{};
+ BI_GET(0, a_str_id_begin);
+ const char* a_str_id_end{};
+ BI_GET(1, a_str_id_end);
+ ImGui::PushID(a_str_id_begin, a_str_id_end);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_PushIDInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "int_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ int a_int_id{};
+ BI_GET(0, a_int_id);
+ ImGui::PushID(a_int_id);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_PushID, biv_ImGui_PushIDStr, biv_ImGui_PushIDInt };
+ return bi_dispatch(self, args, kw, v, 3);
+}
+static PyObject* bid1_ImGui_PushIDStr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_PushIDStr, self, args, kw); }
+static PyObject* bid1_ImGui_PushIDInt(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_PushIDInt, self, args, kw); }
+static PyObject* biv_ImGui_PopID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopID();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopID, self, args, kw);
+}
+static PyObject* biv_ImGui_GetID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ auto r = ImGui::GetID(a_str_id);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_GetIDStr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id_begin", "str_id_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_str_id_begin{};
+ BI_GET(0, a_str_id_begin);
+ const char* a_str_id_end{};
+ BI_GET(1, a_str_id_end);
+ auto r = ImGui::GetID(a_str_id_begin, a_str_id_end);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_GetIDInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "int_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ int a_int_id{};
+ BI_GET(0, a_int_id);
+ auto r = ImGui::GetID(a_int_id);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_GetID, biv_ImGui_GetIDStr, biv_ImGui_GetIDInt };
+ return bi_dispatch(self, args, kw, v, 3);
+}
+static PyObject* bid1_ImGui_GetIDStr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_GetIDStr, self, args, kw); }
+static PyObject* bid1_ImGui_GetIDInt(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_GetIDInt, self, args, kw); }
+static PyObject* biv_ImGui_TextUnformattedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", "text_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_text{};
+ BI_GET(0, a_text);
+ const char* a_text_end = NULL;
+ BI_GET(1, a_text_end);
+ ImGui::TextUnformatted(a_text, a_text_end);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_text_unformatted(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextUnformattedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_Text(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::Text("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Text, self, args, kw);
+}
+static PyObject* biv_ImGui_TextColored(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", "text", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImVec4 a_col{};
+ BI_GET(0, a_col);
+ const char* a_fmt{};
+ BI_GET(1, a_fmt);
+ ImGui::TextColored(a_col, "%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_text_colored(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextColored, self, args, kw);
+}
+static PyObject* biv_ImGui_TextDisabled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::TextDisabled("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_text_disabled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextDisabled, self, args, kw);
+}
+static PyObject* biv_ImGui_TextWrapped(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::TextWrapped("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_text_wrapped(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextWrapped, self, args, kw);
+}
+static PyObject* biv_ImGui_LabelText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "text", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_fmt{};
+ BI_GET(1, a_fmt);
+ ImGui::LabelText(a_label, "%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_label_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LabelText, self, args, kw);
+}
+static PyObject* biv_ImGui_BulletText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::BulletText("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_bullet_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BulletText, self, args, kw);
+}
+static PyObject* biv_ImGui_SeparatorText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGui::SeparatorText(a_label);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_separator_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SeparatorText, self, args, kw);
+}
+static PyObject* biv_ImGui_ButtonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "size", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(1, a_size);
+ auto r = ImGui::Button(a_label, a_size);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ButtonEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SmallButton(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ auto r = ImGui::SmallButton(a_label);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_small_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SmallButton, self, args, kw);
+}
+static PyObject* biv_ImGui_InvisibleButtonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "size", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImVec2 a_size{};
+ BI_GET(1, a_size);
+ ImGuiButtonFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::InvisibleButton(a_str_id, a_size, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_invisible_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InvisibleButtonEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ArrowButton(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "dir", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiDir a_dir{};
+ BI_GET(1, a_dir);
+ auto r = ImGui::ArrowButton(a_str_id, a_dir);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_arrow_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ArrowButton, self, args, kw);
+}
+static PyObject* biv_ImGui_Checkbox(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_v_v{}; bool* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ auto r = ImGui::Checkbox(a_label, a_v);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_checkbox(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Checkbox, self, args, kw);
+}
+static PyObject* biv_ImGui_CheckboxFlags(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", "flags_value", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_flags_v{}; int* a_flags = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_flags_v)) BI_FAIL; a_flags = &a_flags_v; }
+ int a_flags_value{};
+ BI_GET(2, a_flags_value);
+ auto r = ImGui::CheckboxFlags(a_label, a_flags, a_flags_value);
+ return bi_result({ bi_to(r), bi_opt(a_flags) });
+}
+static PyObject* biv_ImGui_CheckboxFlagsUIntPtr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", "flags_value", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ unsigned int a_flags_v{}; unsigned int* a_flags = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_flags_v)) BI_FAIL; a_flags = &a_flags_v; }
+ unsigned int a_flags_value{};
+ BI_GET(2, a_flags_value);
+ auto r = ImGui::CheckboxFlags(a_label, a_flags, a_flags_value);
+ return bi_result({ bi_to(r), bi_opt(a_flags) });
+}
+static PyObject* bid_ImGui_checkbox_flags(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_CheckboxFlags, biv_ImGui_CheckboxFlagsUIntPtr };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_CheckboxFlagsUIntPtr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_CheckboxFlagsUIntPtr, self, args, kw); }
+static PyObject* biv_ImGui_RadioButton(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "active", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_active{};
+ BI_GET(1, a_active);
+ auto r = ImGui::RadioButton(a_label, a_active);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_RadioButtonIntPtr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_button", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v_v{}; int* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ int a_v_button{};
+ BI_GET(2, a_v_button);
+ auto r = ImGui::RadioButton(a_label, a_v, a_v_button);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_radio_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_RadioButton, biv_ImGui_RadioButtonIntPtr };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_RadioButtonIntPtr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_RadioButtonIntPtr, self, args, kw); }
+static PyObject* biv_ImGui_ProgressBarEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "fraction", "size_arg", "overlay", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ float a_fraction{};
+ BI_GET(0, a_fraction);
+ ImVec2 a_size_arg = ImVec2(- FLT_MIN, 0);
+ BI_GET(1, a_size_arg);
+ const char* a_overlay = NULL;
+ BI_GET(2, a_overlay);
+ ImGui::ProgressBar(a_fraction, a_size_arg, a_overlay);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_progress_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ProgressBarEx, self, args, kw);
+}
+static PyObject* biv_ImGui_Bullet(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::Bullet();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_bullet(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_Bullet, self, args, kw);
+}
+static PyObject* biv_ImGui_TextLink(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ auto r = ImGui::TextLink(a_label);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_text_link(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextLink, self, args, kw);
+}
+static PyObject* biv_ImGui_TextLinkOpenURLEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "url", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_url = NULL;
+ BI_GET(1, a_url);
+ auto r = ImGui::TextLinkOpenURL(a_label, a_url);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_text_link_open_url(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TextLinkOpenURLEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ImageEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", "image_size", "uv0", "uv1", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ ImVec2 a_image_size{};
+ BI_GET(1, a_image_size);
+ ImVec2 a_uv0 = ImVec2(0, 0);
+ BI_GET(2, a_uv0);
+ ImVec2 a_uv1 = ImVec2(1, 1);
+ BI_GET(3, a_uv1);
+ ImGui::Image(a_tex_ref, a_image_size, a_uv0, a_uv1);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_image(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ImageEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ImageWithBgEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", "image_size", "uv0", "uv1", "bg_col", "tint_col", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 2, o, argfail)) return nullptr;
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ ImVec2 a_image_size{};
+ BI_GET(1, a_image_size);
+ ImVec2 a_uv0 = ImVec2(0, 0);
+ BI_GET(2, a_uv0);
+ ImVec2 a_uv1 = ImVec2(1, 1);
+ BI_GET(3, a_uv1);
+ ImVec4 a_bg_col = ImVec4(0, 0, 0, 0);
+ BI_GET(4, a_bg_col);
+ ImVec4 a_tint_col = ImVec4(1, 1, 1, 1);
+ BI_GET(5, a_tint_col);
+ ImGui::ImageWithBg(a_tex_ref, a_image_size, a_uv0, a_uv1, a_bg_col, a_tint_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_image_with_bg(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ImageWithBgEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ImageButtonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "tex_ref", "image_size", "uv0", "uv1", "bg_col", "tint_col", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 3, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImTextureRef a_tex_ref{};
+ BI_GET(1, a_tex_ref);
+ ImVec2 a_image_size{};
+ BI_GET(2, a_image_size);
+ ImVec2 a_uv0 = ImVec2(0, 0);
+ BI_GET(3, a_uv0);
+ ImVec2 a_uv1 = ImVec2(1, 1);
+ BI_GET(4, a_uv1);
+ ImVec4 a_bg_col = ImVec4(0, 0, 0, 0);
+ BI_GET(5, a_bg_col);
+ ImVec4 a_tint_col = ImVec4(1, 1, 1, 1);
+ BI_GET(6, a_tint_col);
+ auto r = ImGui::ImageButton(a_str_id, a_tex_ref, a_image_size, a_uv0, a_uv1, a_bg_col, a_tint_col);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_image_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ImageButtonEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginComboEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "preview_value", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_preview_value{};
+ BI_GET(1, a_preview_value);
+ ImGuiComboFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::BeginCombo(a_label, a_preview_value, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_combo(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginComboEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndCombo(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndCombo();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_combo(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndCombo, self, args, kw);
+}
+static PyObject* biv_ImGui_ComboEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "current_item", "items", "popup_max_height_in_items", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_current_item_v{}; int* a_current_item = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_current_item_v)) BI_FAIL; a_current_item = &a_current_item_v; }
+ BiSeq<const char*> a_items;
+ BI_GET(2, a_items);
+ int a_popup_max_height_in_items = - 1;
+ BI_GET(3, a_popup_max_height_in_items);
+ auto r = ImGui::Combo(a_label, a_current_item, a_items.data(), (int)a_items.size(), a_popup_max_height_in_items);
+ return bi_result({ bi_to(r), bi_opt(a_current_item) });
+}
+static PyObject* biv_ImGui_ComboStrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "current_item", "items_separated_by_zeros", "popup_max_height_in_items", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_current_item_v{}; int* a_current_item = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_current_item_v)) BI_FAIL; a_current_item = &a_current_item_v; }
+ const char* a_items_separated_by_zeros{};
+ BI_GET(2, a_items_separated_by_zeros);
+ int a_popup_max_height_in_items = - 1;
+ BI_GET(3, a_popup_max_height_in_items);
+ auto r = ImGui::Combo(a_label, a_current_item, a_items_separated_by_zeros, a_popup_max_height_in_items);
+ return bi_result({ bi_to(r), bi_opt(a_current_item) });
+}
+static PyObject* bid_ImGui_combo(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_ComboEx, biv_ImGui_ComboStrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_ComboStrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_ComboStrEx, self, args, kw); }
+static PyObject* biv_ImGui_DragFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v_v{}; float* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ float a_v_min = 0.0f;
+ BI_GET(3, a_v_min);
+ float a_v_max = 0.0f;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragFloat(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_drag_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragFloatEx, self, args, kw);
+}
+static PyObject* biv_ImGui_DragFloat2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[2] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ float a_v_min = 0.0f;
+ BI_GET(3, a_v_min);
+ float a_v_max = 0.0f;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragFloat2(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_float2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragFloat2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragFloat3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[3] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ float a_v_min = 0.0f;
+ BI_GET(3, a_v_min);
+ float a_v_max = 0.0f;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragFloat3(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_float3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragFloat3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragFloat4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[4] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ float a_v_min = 0.0f;
+ BI_GET(3, a_v_min);
+ float a_v_max = 0.0f;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragFloat4(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_float4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragFloat4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragFloatRange2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v_current_min", "v_current_max", "v_speed", "v_min", "v_max", "format", "format_max", "flags", nullptr };
+ PyObject* o[9] = {};
+ if (!bi_parse(args, kw, kwl, 9, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v_current_min_v{}; float* a_v_current_min = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_current_min_v)) BI_FAIL; a_v_current_min = &a_v_current_min_v; }
+ float a_v_current_max_v{}; float* a_v_current_max = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_v_current_max_v)) BI_FAIL; a_v_current_max = &a_v_current_max_v; }
+ float a_v_speed = 1.0f;
+ BI_GET(3, a_v_speed);
+ float a_v_min = 0.0f;
+ BI_GET(4, a_v_min);
+ float a_v_max = 0.0f;
+ BI_GET(5, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(6, a_format);
+ const char* a_format_max = NULL;
+ BI_GET(7, a_format_max);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(8, a_flags);
+ auto r = ImGui::DragFloatRange2(a_label, a_v_current_min, a_v_current_max, a_v_speed, a_v_min, a_v_max, a_format, a_format_max, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v_current_min), bi_opt(a_v_current_max) });
+}
+static PyObject* bid_ImGui_drag_float_range2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragFloatRange2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v_v{}; int* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ int a_v_min = 0;
+ BI_GET(3, a_v_min);
+ int a_v_max = 0;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragInt(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_drag_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragIntEx, self, args, kw);
+}
+static PyObject* biv_ImGui_DragInt2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[2] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ int a_v_min = 0;
+ BI_GET(3, a_v_min);
+ int a_v_max = 0;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragInt2(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_int2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragInt2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragInt3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[3] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ int a_v_min = 0;
+ BI_GET(3, a_v_min);
+ int a_v_max = 0;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragInt3(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_int3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragInt3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragInt4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_speed", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[4] = {};
+ BI_GET(1, a_v);
+ float a_v_speed = 1.0f;
+ BI_GET(2, a_v_speed);
+ int a_v_min = 0;
+ BI_GET(3, a_v_min);
+ int a_v_max = 0;
+ BI_GET(4, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::DragInt4(a_label, a_v, a_v_speed, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_drag_int4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragInt4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_DragIntRange2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v_current_min", "v_current_max", "v_speed", "v_min", "v_max", "format", "format_max", "flags", nullptr };
+ PyObject* o[9] = {};
+ if (!bi_parse(args, kw, kwl, 9, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v_current_min_v{}; int* a_v_current_min = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_current_min_v)) BI_FAIL; a_v_current_min = &a_v_current_min_v; }
+ int a_v_current_max_v{}; int* a_v_current_max = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_v_current_max_v)) BI_FAIL; a_v_current_max = &a_v_current_max_v; }
+ float a_v_speed = 1.0f;
+ BI_GET(3, a_v_speed);
+ int a_v_min = 0;
+ BI_GET(4, a_v_min);
+ int a_v_max = 0;
+ BI_GET(5, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(6, a_format);
+ const char* a_format_max = NULL;
+ BI_GET(7, a_format_max);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(8, a_flags);
+ auto r = ImGui::DragIntRange2(a_label, a_v_current_min, a_v_current_max, a_v_speed, a_v_min, a_v_max, a_format, a_format_max, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v_current_min), bi_opt(a_v_current_max) });
+}
+static PyObject* bid_ImGui_drag_int_range2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DragIntRange2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v_v{}; float* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ float a_v_min{};
+ BI_GET(2, a_v_min);
+ float a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderFloat(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_slider_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderFloatEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderFloat2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[2] = {};
+ BI_GET(1, a_v);
+ float a_v_min{};
+ BI_GET(2, a_v_min);
+ float a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderFloat2(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_float2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderFloat2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderFloat3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[3] = {};
+ BI_GET(1, a_v);
+ float a_v_min{};
+ BI_GET(2, a_v_min);
+ float a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderFloat3(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_float3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderFloat3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderFloat4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[4] = {};
+ BI_GET(1, a_v);
+ float a_v_min{};
+ BI_GET(2, a_v_min);
+ float a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderFloat4(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_float4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderFloat4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderAngleEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v_rad", "v_degrees_min", "v_degrees_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v_rad_v{}; float* a_v_rad = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_rad_v)) BI_FAIL; a_v_rad = &a_v_rad_v; }
+ float a_v_degrees_min = - 360.0f;
+ BI_GET(2, a_v_degrees_min);
+ float a_v_degrees_max = + 360.0f;
+ BI_GET(3, a_v_degrees_max);
+ const char* a_format = "%.0f deg";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderAngle(a_label, a_v_rad, a_v_degrees_min, a_v_degrees_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v_rad) });
+}
+static PyObject* bid_ImGui_slider_angle(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderAngleEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v_v{}; int* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ int a_v_min{};
+ BI_GET(2, a_v_min);
+ int a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderInt(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_slider_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderIntEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderInt2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[2] = {};
+ BI_GET(1, a_v);
+ int a_v_min{};
+ BI_GET(2, a_v_min);
+ int a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderInt2(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_int2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderInt2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderInt3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[3] = {};
+ BI_GET(1, a_v);
+ int a_v_min{};
+ BI_GET(2, a_v_min);
+ int a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderInt3(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_int3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderInt3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_SliderInt4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[4] = {};
+ BI_GET(1, a_v);
+ int a_v_min{};
+ BI_GET(2, a_v_min);
+ int a_v_max{};
+ BI_GET(3, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(4, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::SliderInt4(a_label, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_slider_int4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SliderInt4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_VSliderFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "size", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 5, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImVec2 a_size{};
+ BI_GET(1, a_size);
+ float a_v_v{}; float* a_v = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ float a_v_min{};
+ BI_GET(3, a_v_min);
+ float a_v_max{};
+ BI_GET(4, a_v_max);
+ const char* a_format = "%.3f";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::VSliderFloat(a_label, a_size, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_v_slider_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_VSliderFloatEx, self, args, kw);
+}
+static PyObject* biv_ImGui_VSliderIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "size", "v", "v_min", "v_max", "format", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 5, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImVec2 a_size{};
+ BI_GET(1, a_size);
+ int a_v_v{}; int* a_v = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ int a_v_min{};
+ BI_GET(3, a_v_min);
+ int a_v_max{};
+ BI_GET(4, a_v_max);
+ const char* a_format = "%d";
+ BI_GET(5, a_format);
+ ImGuiSliderFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ auto r = ImGui::VSliderInt(a_label, a_size, a_v, a_v_min, a_v_max, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_v_slider_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_VSliderIntEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputTextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "buf", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ BiStrBuf a_buf;
+ BI_GET(1, a_buf);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ ImGuiInputTextCallback a_callback = NULL;
+ void* a_user_data = NULL;
+ auto r = ImGui::InputText(a_label, a_buf.data(), a_buf.capacity(), (a_flags | ImGuiInputTextFlags_CallbackResize), bi_inputtext_resize, &a_buf);
+ return bi_result({ bi_to(r), bi_to(a_buf) });
+}
+static PyObject* bid_ImGui_input_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputTextEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputTextMultilineEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "buf", "size", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ BiStrBuf a_buf;
+ BI_GET(1, a_buf);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(2, a_size);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ ImGuiInputTextCallback a_callback = NULL;
+ void* a_user_data = NULL;
+ auto r = ImGui::InputTextMultiline(a_label, a_buf.data(), a_buf.capacity(), a_size, (a_flags | ImGuiInputTextFlags_CallbackResize), bi_inputtext_resize, &a_buf);
+ return bi_result({ bi_to(r), bi_to(a_buf) });
+}
+static PyObject* bid_ImGui_input_text_multiline(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputTextMultilineEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputTextWithHintEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "hint", "buf", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_hint{};
+ BI_GET(1, a_hint);
+ BiStrBuf a_buf;
+ BI_GET(2, a_buf);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ ImGuiInputTextCallback a_callback = NULL;
+ void* a_user_data = NULL;
+ auto r = ImGui::InputTextWithHint(a_label, a_hint, a_buf.data(), a_buf.capacity(), (a_flags | ImGuiInputTextFlags_CallbackResize), bi_inputtext_resize, &a_buf);
+ return bi_result({ bi_to(r), bi_to(a_buf) });
+}
+static PyObject* bid_ImGui_input_text_with_hint(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputTextWithHintEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "step", "step_fast", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v_v{}; float* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ float a_step = 0.0f;
+ BI_GET(2, a_step);
+ float a_step_fast = 0.0f;
+ BI_GET(3, a_step_fast);
+ const char* a_format = "%.3f";
+ BI_GET(4, a_format);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::InputFloat(a_label, a_v, a_step, a_step_fast, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_input_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputFloatEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputFloat2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "format", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[2] = {};
+ BI_GET(1, a_v);
+ const char* a_format = "%.3f";
+ BI_GET(2, a_format);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ auto r = ImGui::InputFloat2(a_label, a_v, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_float2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputFloat2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputFloat3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "format", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[3] = {};
+ BI_GET(1, a_v);
+ const char* a_format = "%.3f";
+ BI_GET(2, a_format);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ auto r = ImGui::InputFloat3(a_label, a_v, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_float3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputFloat3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputFloat4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "format", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_v[4] = {};
+ BI_GET(1, a_v);
+ const char* a_format = "%.3f";
+ BI_GET(2, a_format);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ auto r = ImGui::InputFloat4(a_label, a_v, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_float4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputFloat4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "step", "step_fast", "flags", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v_v{}; int* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ int a_step = 1;
+ BI_GET(2, a_step);
+ int a_step_fast = 100;
+ BI_GET(3, a_step_fast);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(4, a_flags);
+ auto r = ImGui::InputInt(a_label, a_v, a_step, a_step_fast, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_input_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputIntEx, self, args, kw);
+}
+static PyObject* biv_ImGui_InputInt2Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[2] = {};
+ BI_GET(1, a_v);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::InputInt2(a_label, a_v, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_int2(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputInt2Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputInt3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[3] = {};
+ BI_GET(1, a_v);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::InputInt3(a_label, a_v, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_int3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputInt3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputInt4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_v[4] = {};
+ BI_GET(1, a_v);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::InputInt4(a_label, a_v, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_v) });
+}
+static PyObject* bid_ImGui_input_int4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputInt4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_InputDoubleEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "v", "step", "step_fast", "format", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ double a_v_v{}; double* a_v = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_v_v)) BI_FAIL; a_v = &a_v_v; }
+ double a_step = 0.0;
+ BI_GET(2, a_step);
+ double a_step_fast = 0.0;
+ BI_GET(3, a_step_fast);
+ const char* a_format = "%.6f";
+ BI_GET(4, a_format);
+ ImGuiInputTextFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ auto r = ImGui::InputDouble(a_label, a_v, a_step, a_step_fast, a_format, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_v) });
+}
+static PyObject* bid_ImGui_input_double(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_InputDoubleEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorEdit3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "col", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_col[3] = {};
+ BI_GET(1, a_col);
+ ImGuiColorEditFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::ColorEdit3(a_label, a_col, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_col) });
+}
+static PyObject* bid_ImGui_color_edit3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorEdit3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorEdit4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "col", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_col[4] = {};
+ BI_GET(1, a_col);
+ ImGuiColorEditFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::ColorEdit4(a_label, a_col, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_col) });
+}
+static PyObject* bid_ImGui_color_edit4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorEdit4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorPicker3Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "col", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_col[3] = {};
+ BI_GET(1, a_col);
+ ImGuiColorEditFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::ColorPicker3(a_label, a_col, a_flags);
+ return bi_result({ bi_to(r), bi_to(a_col) });
+}
+static PyObject* bid_ImGui_color_picker3(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorPicker3Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorPicker4Ex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "col", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ float a_col[4] = {};
+ BI_GET(1, a_col);
+ ImGuiColorEditFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ const float* a_ref_col = NULL;
+ auto r = ImGui::ColorPicker4(a_label, a_col, a_flags, a_ref_col);
+ return bi_result({ bi_to(r), bi_to(a_col) });
+}
+static PyObject* bid_ImGui_color_picker4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorPicker4Ex, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorButtonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "desc_id", "col", "flags", "size", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_desc_id{};
+ BI_GET(0, a_desc_id);
+ ImVec4 a_col{};
+ BI_GET(1, a_col);
+ ImGuiColorEditFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(3, a_size);
+ auto r = ImGui::ColorButton(a_desc_id, a_col, a_flags, a_size);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_color_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorButtonEx, self, args, kw);
+}
+static PyObject* biv_ImGui_TreeNode(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ auto r = ImGui::TreeNode(a_label);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_TreeNodeStr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "text", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ const char* a_fmt{};
+ BI_GET(1, a_fmt);
+ auto r = ImGui::TreeNode(a_str_id, "%s", a_fmt);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_tree_node(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_TreeNode, biv_ImGui_TreeNodeStr };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_TreeNodeStr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_TreeNodeStr, self, args, kw); }
+static PyObject* biv_ImGui_TreeNodeExEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGuiTreeNodeFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::TreeNodeEx(a_label, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_TreeNodeExStr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "flags", "text", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiTreeNodeFlags a_flags{};
+ BI_GET(1, a_flags);
+ const char* a_fmt{};
+ BI_GET(2, a_fmt);
+ auto r = ImGui::TreeNodeEx(a_str_id, a_flags, "%s", a_fmt);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_tree_node_ex(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_TreeNodeExEx, biv_ImGui_TreeNodeExStr };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_TreeNodeExStr(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_TreeNodeExStr, self, args, kw); }
+static PyObject* biv_ImGui_TreePush(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGui::TreePush(a_str_id);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_tree_push(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TreePush, self, args, kw);
+}
+static PyObject* biv_ImGui_TreePop(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::TreePop();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_tree_pop(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TreePop, self, args, kw);
+}
+static PyObject* biv_ImGui_GetTreeNodeToLabelSpacing(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetTreeNodeToLabelSpacing();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_tree_node_to_label_spacing(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetTreeNodeToLabelSpacing, self, args, kw);
+}
+static PyObject* biv_ImGui_CollapsingHeaderEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGuiTreeNodeFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::CollapsingHeader(a_label, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_CollapsingHeaderBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "p_visible", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_p_visible_v{}; bool* a_p_visible = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_p_visible_v)) BI_FAIL; a_p_visible = &a_p_visible_v; }
+ ImGuiTreeNodeFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::CollapsingHeader(a_label, a_p_visible, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_p_visible) });
+}
+static PyObject* bid_ImGui_collapsing_header(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_CollapsingHeaderEx, biv_ImGui_CollapsingHeaderBoolPtrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_CollapsingHeaderBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_CollapsingHeaderBoolPtrEx, self, args, kw); }
+static PyObject* biv_ImGui_SetNextItemOpenEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "is_open", "cond", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ bool a_is_open{};
+ BI_GET(0, a_is_open);
+ ImGuiCond a_cond = 0;
+ BI_GET(1, a_cond);
+ ImGui::SetNextItemOpen(a_is_open, a_cond);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_open(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemOpenEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextItemStorageID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "storage_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiID a_storage_id{};
+ BI_GET(0, a_storage_id);
+ ImGui::SetNextItemStorageID(a_storage_id);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_storage_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemStorageID, self, args, kw);
+}
+static PyObject* biv_ImGui_TreeNodeGetOpenEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "storage_id", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiID a_storage_id{};
+ BI_GET(0, a_storage_id);
+ ImGuiTreeNodeFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::TreeNodeGetOpen(a_storage_id, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_tree_node_get_open(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TreeNodeGetOpenEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SelectableEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "selected", "flags", "size", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_selected = false;
+ BI_GET(1, a_selected);
+ ImGuiSelectableFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(3, a_size);
+ auto r = ImGui::Selectable(a_label, a_selected, a_flags, a_size);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_SelectableBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "p_selected", "flags", "size", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_p_selected_v{}; bool* a_p_selected = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_p_selected_v)) BI_FAIL; a_p_selected = &a_p_selected_v; }
+ ImGuiSelectableFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(3, a_size);
+ auto r = ImGui::Selectable(a_label, a_p_selected, a_flags, a_size);
+ return bi_result({ bi_to(r), bi_opt(a_p_selected) });
+}
+static PyObject* bid_ImGui_selectable(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_SelectableEx, biv_ImGui_SelectableBoolPtrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_SelectableBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_SelectableBoolPtrEx, self, args, kw); }
+static PyObject* biv_ImGui_BeginMultiSelectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", "selection_size", "items_count", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ ImGuiMultiSelectFlags a_flags{};
+ BI_GET(0, a_flags);
+ int a_selection_size = - 1;
+ BI_GET(1, a_selection_size);
+ int a_items_count = - 1;
+ BI_GET(2, a_items_count);
+ auto r = ImGui::BeginMultiSelect(a_flags, a_selection_size, a_items_count);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_begin_multi_select(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginMultiSelectEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndMultiSelect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::EndMultiSelect();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_end_multi_select(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndMultiSelect, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextItemSelectionUserData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "selection_user_data", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiSelectionUserData a_selection_user_data{};
+ BI_GET(0, a_selection_user_data);
+ ImGui::SetNextItemSelectionUserData(a_selection_user_data);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_selection_user_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemSelectionUserData, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemToggledSelection(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemToggledSelection();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_toggled_selection(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemToggledSelection, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginListBoxEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "size", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImVec2 a_size = ImVec2(0, 0);
+ BI_GET(1, a_size);
+ auto r = ImGui::BeginListBox(a_label, a_size);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_list_box(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginListBoxEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndListBox(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndListBox();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_list_box(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndListBox, self, args, kw);
+}
+static PyObject* biv_ImGui_ListBoxEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "current_item", "items", "height_in_items", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ int a_current_item_v{}; int* a_current_item = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_current_item_v)) BI_FAIL; a_current_item = &a_current_item_v; }
+ BiSeq<const char*> a_items;
+ BI_GET(2, a_items);
+ int a_height_in_items = - 1;
+ BI_GET(3, a_height_in_items);
+ auto r = ImGui::ListBox(a_label, a_current_item, a_items.data(), (int)a_items.size(), a_height_in_items);
+ return bi_result({ bi_to(r), bi_opt(a_current_item) });
+}
+static PyObject* bid_ImGui_list_box(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ListBoxEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PlotLinesEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "values", "values_offset", "overlay_text", "scale_min", "scale_max", "graph_size", "stride", nullptr };
+ PyObject* o[8] = {};
+ if (!bi_parse(args, kw, kwl, 8, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ BiSeq<float> a_values;
+ BI_GET(1, a_values);
+ int a_values_offset = 0;
+ BI_GET(2, a_values_offset);
+ const char* a_overlay_text = NULL;
+ BI_GET(3, a_overlay_text);
+ float a_scale_min = FLT_MAX;
+ BI_GET(4, a_scale_min);
+ float a_scale_max = FLT_MAX;
+ BI_GET(5, a_scale_max);
+ ImVec2 a_graph_size = ImVec2(0, 0);
+ BI_GET(6, a_graph_size);
+ int a_stride = sizeof(float);
+ BI_GET(7, a_stride);
+ ImGui::PlotLines(a_label, a_values.data(), (int)a_values.size(), a_values_offset, a_overlay_text, a_scale_min, a_scale_max, a_graph_size, a_stride);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_plot_lines(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PlotLinesEx, self, args, kw);
+}
+static PyObject* biv_ImGui_PlotHistogramEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "values", "values_offset", "overlay_text", "scale_min", "scale_max", "graph_size", "stride", nullptr };
+ PyObject* o[8] = {};
+ if (!bi_parse(args, kw, kwl, 8, 2, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ BiSeq<float> a_values;
+ BI_GET(1, a_values);
+ int a_values_offset = 0;
+ BI_GET(2, a_values_offset);
+ const char* a_overlay_text = NULL;
+ BI_GET(3, a_overlay_text);
+ float a_scale_min = FLT_MAX;
+ BI_GET(4, a_scale_min);
+ float a_scale_max = FLT_MAX;
+ BI_GET(5, a_scale_max);
+ ImVec2 a_graph_size = ImVec2(0, 0);
+ BI_GET(6, a_graph_size);
+ int a_stride = sizeof(float);
+ BI_GET(7, a_stride);
+ ImGui::PlotHistogram(a_label, a_values.data(), (int)a_values.size(), a_values_offset, a_overlay_text, a_scale_min, a_scale_max, a_graph_size, a_stride);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_plot_histogram(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PlotHistogramEx, self, args, kw);
+}
+static PyObject* biv_ImGui_Value(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "prefix", "b", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_prefix{};
+ BI_GET(0, a_prefix);
+ bool a_b{};
+ BI_GET(1, a_b);
+ ImGui::Value(a_prefix, a_b);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_ValueInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "prefix", "v", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_prefix{};
+ BI_GET(0, a_prefix);
+ int a_v{};
+ BI_GET(1, a_v);
+ ImGui::Value(a_prefix, a_v);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_ValueUInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "prefix", "v", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const char* a_prefix{};
+ BI_GET(0, a_prefix);
+ unsigned int a_v{};
+ BI_GET(1, a_v);
+ ImGui::Value(a_prefix, a_v);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImGui_ValueFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "prefix", "v", "float_format", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_prefix{};
+ BI_GET(0, a_prefix);
+ float a_v{};
+ BI_GET(1, a_v);
+ const char* a_float_format = NULL;
+ BI_GET(2, a_float_format);
+ ImGui::Value(a_prefix, a_v, a_float_format);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_value(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_Value, biv_ImGui_ValueInt, biv_ImGui_ValueUInt, biv_ImGui_ValueFloatEx };
+ return bi_dispatch(self, args, kw, v, 4);
+}
+static PyObject* bid1_ImGui_ValueInt(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_ValueInt, self, args, kw); }
+static PyObject* bid1_ImGui_ValueUInt(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_ValueUInt, self, args, kw); }
+static PyObject* bid1_ImGui_ValueFloatEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_ValueFloatEx, self, args, kw); }
+static PyObject* biv_ImGui_BeginMenuBar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::BeginMenuBar();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_menu_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginMenuBar, self, args, kw);
+}
+static PyObject* biv_ImGui_EndMenuBar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndMenuBar();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_menu_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndMenuBar, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginMainMenuBar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::BeginMainMenuBar();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_main_menu_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginMainMenuBar, self, args, kw);
+}
+static PyObject* biv_ImGui_EndMainMenuBar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndMainMenuBar();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_main_menu_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndMainMenuBar, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginMenuEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "enabled", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_enabled = true;
+ BI_GET(1, a_enabled);
+ auto r = ImGui::BeginMenu(a_label, a_enabled);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_menu(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginMenuEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndMenu(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndMenu();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_menu(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndMenu, self, args, kw);
+}
+static PyObject* biv_ImGui_MenuItemEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "shortcut", "selected", "enabled", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_shortcut = NULL;
+ BI_GET(1, a_shortcut);
+ bool a_selected = false;
+ BI_GET(2, a_selected);
+ bool a_enabled = true;
+ BI_GET(3, a_enabled);
+ auto r = ImGui::MenuItem(a_label, a_shortcut, a_selected, a_enabled);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_MenuItemBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "shortcut", "p_selected", "enabled", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ const char* a_shortcut{};
+ BI_GET(1, a_shortcut);
+ bool a_p_selected_v{}; bool* a_p_selected = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_p_selected_v)) BI_FAIL; a_p_selected = &a_p_selected_v; }
+ bool a_enabled = true;
+ BI_GET(3, a_enabled);
+ auto r = ImGui::MenuItem(a_label, a_shortcut, a_p_selected, a_enabled);
+ return bi_result({ bi_to(r), bi_opt(a_p_selected) });
+}
+static PyObject* bid_ImGui_menu_item(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_MenuItemEx, biv_ImGui_MenuItemBoolPtrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_MenuItemBoolPtrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_MenuItemBoolPtrEx, self, args, kw); }
+static PyObject* biv_ImGui_BeginTooltip(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::BeginTooltip();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_tooltip(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginTooltip, self, args, kw);
+}
+static PyObject* biv_ImGui_EndTooltip(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndTooltip();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_tooltip(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndTooltip, self, args, kw);
+}
+static PyObject* biv_ImGui_SetTooltip(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::SetTooltip("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_tooltip(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetTooltip, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginItemTooltip(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::BeginItemTooltip();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_item_tooltip(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginItemTooltip, self, args, kw);
+}
+static PyObject* biv_ImGui_SetItemTooltip(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::SetItemTooltip("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_item_tooltip(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetItemTooltip, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginPopupEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiWindowFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::BeginPopup(a_str_id, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_popup(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginPopupEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginPopupModalEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "name", "p_open", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ const char* a_name{};
+ BI_GET(0, a_name);
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGuiWindowFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::BeginPopupModal(a_name, a_p_open, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_begin_popup_modal(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginPopupModalEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndPopup(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndPopup();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_popup(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndPopup, self, args, kw);
+}
+static PyObject* biv_ImGui_OpenPopupEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::OpenPopup(a_str_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_OpenPopupIDEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiID a_id{};
+ BI_GET(0, a_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::OpenPopup(a_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_open_popup(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_OpenPopupEx, biv_ImGui_OpenPopupIDEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_OpenPopupIDEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_OpenPopupIDEx, self, args, kw); }
+static PyObject* biv_ImGui_OpenPopupOnItemClickEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ const char* a_str_id = NULL;
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::OpenPopupOnItemClick(a_str_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_open_popup_on_item_click(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_OpenPopupOnItemClickEx, self, args, kw);
+}
+static PyObject* biv_ImGui_CloseCurrentPopup(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::CloseCurrentPopup();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_close_current_popup(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_CloseCurrentPopup, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginPopupContextItemEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ const char* a_str_id = NULL;
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::BeginPopupContextItem(a_str_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_popup_context_item(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginPopupContextItemEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginPopupContextWindowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ const char* a_str_id = NULL;
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::BeginPopupContextWindow(a_str_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_popup_context_window(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginPopupContextWindowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginPopupContextVoidEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "popup_flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ const char* a_str_id = NULL;
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_popup_flags = 0;
+ BI_GET(1, a_popup_flags);
+ auto r = ImGui::BeginPopupContextVoid(a_str_id, a_popup_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_popup_context_void(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginPopupContextVoidEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsPopupOpenEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiPopupFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::IsPopupOpen(a_str_id, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_popup_open(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsPopupOpenEx, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginTableEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "columns", "flags", "outer_size", "inner_width", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 2, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ int a_columns{};
+ BI_GET(1, a_columns);
+ ImGuiTableFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ ImVec2 a_outer_size = ImVec2(0.0f, 0.0f);
+ BI_GET(3, a_outer_size);
+ float a_inner_width = 0.0f;
+ BI_GET(4, a_inner_width);
+ auto r = ImGui::BeginTable(a_str_id, a_columns, a_flags, a_outer_size, a_inner_width);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_table(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginTableEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndTable(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndTable();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_table(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndTable, self, args, kw);
+}
+static PyObject* biv_ImGui_TableNextRowEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "row_flags", "min_row_height", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ ImGuiTableRowFlags a_row_flags = 0;
+ BI_GET(0, a_row_flags);
+ float a_min_row_height = 0.0f;
+ BI_GET(1, a_min_row_height);
+ ImGui::TableNextRow(a_row_flags, a_min_row_height);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_next_row(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableNextRowEx, self, args, kw);
+}
+static PyObject* biv_ImGui_TableNextColumn(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableNextColumn();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_next_column(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableNextColumn, self, args, kw);
+}
+static PyObject* biv_ImGui_TableSetColumnIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ int a_column_n{};
+ BI_GET(0, a_column_n);
+ auto r = ImGui::TableSetColumnIndex(a_column_n);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_set_column_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableSetColumnIndex, self, args, kw);
+}
+static PyObject* biv_ImGui_TableSetupColumnEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", "init_width_or_weight", "user_data", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGuiTableColumnFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ float a_init_width_or_weight = 0.0f;
+ BI_GET(2, a_init_width_or_weight);
+ ImGuiID a_user_data = 0;
+ BI_GET(3, a_user_data);
+ ImGui::TableSetupColumn(a_label, a_flags, a_init_width_or_weight, a_user_data);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_setup_column(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableSetupColumnEx, self, args, kw);
+}
+static PyObject* biv_ImGui_TableSetupScrollFreeze(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "cols", "rows", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ int a_cols{};
+ BI_GET(0, a_cols);
+ int a_rows{};
+ BI_GET(1, a_rows);
+ ImGui::TableSetupScrollFreeze(a_cols, a_rows);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_setup_scroll_freeze(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableSetupScrollFreeze, self, args, kw);
+}
+static PyObject* biv_ImGui_TableHeader(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGui::TableHeader(a_label);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_header(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableHeader, self, args, kw);
+}
+static PyObject* biv_ImGui_TableHeadersRow(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::TableHeadersRow();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_headers_row(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableHeadersRow, self, args, kw);
+}
+static PyObject* biv_ImGui_TableAngledHeadersRow(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::TableAngledHeadersRow();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_angled_headers_row(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableAngledHeadersRow, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetSortSpecs(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableGetSortSpecs();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_table_get_sort_specs(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetSortSpecs, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetColumnCount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableGetColumnCount();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_get_column_count(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetColumnCount, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetColumnIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableGetColumnIndex();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_get_column_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetColumnIndex, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetRowIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableGetRowIndex();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_get_row_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetRowIndex, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetColumnNameEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_column_n = - 1;
+ BI_GET(0, a_column_n);
+ auto r = ImGui::TableGetColumnName(a_column_n);
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGui_table_get_column_name(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetColumnNameEx, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetColumnFlagsEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_column_n = - 1;
+ BI_GET(0, a_column_n);
+ auto r = ImGui::TableGetColumnFlags(a_column_n);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_get_column_flags(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetColumnFlagsEx, self, args, kw);
+}
+static PyObject* biv_ImGui_TableSetColumnEnabled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_n", "v", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ int a_column_n{};
+ BI_GET(0, a_column_n);
+ bool a_v{};
+ BI_GET(1, a_v);
+ ImGui::TableSetColumnEnabled(a_column_n, a_v);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_set_column_enabled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableSetColumnEnabled, self, args, kw);
+}
+static PyObject* biv_ImGui_TableGetHoveredColumn(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::TableGetHoveredColumn();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_table_get_hovered_column(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableGetHoveredColumn, self, args, kw);
+}
+static PyObject* biv_ImGui_TableSetBgColorEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "target", "color", "column_n", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImGuiTableBgTarget a_target{};
+ BI_GET(0, a_target);
+ ImU32 a_color{};
+ BI_GET(1, a_color);
+ int a_column_n = - 1;
+ BI_GET(2, a_column_n);
+ ImGui::TableSetBgColor(a_target, a_color, a_column_n);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_table_set_bg_color(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TableSetBgColorEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ColumnsEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "count", "id", "borders", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 0, o, argfail)) return nullptr;
+ int a_count = 1;
+ BI_GET(0, a_count);
+ const char* a_id = NULL;
+ BI_GET(1, a_id);
+ bool a_borders = true;
+ BI_GET(2, a_borders);
+ ImGui::Columns(a_count, a_id, a_borders);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_columns(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColumnsEx, self, args, kw);
+}
+static PyObject* biv_ImGui_NextColumn(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::NextColumn();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_next_column(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_NextColumn, self, args, kw);
+}
+static PyObject* biv_ImGui_GetColumnIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetColumnIndex();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_column_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetColumnIndex, self, args, kw);
+}
+static PyObject* biv_ImGui_GetColumnWidthEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_index", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_column_index = - 1;
+ BI_GET(0, a_column_index);
+ auto r = ImGui::GetColumnWidth(a_column_index);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_column_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetColumnWidthEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetColumnWidth(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_index", "width", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ int a_column_index{};
+ BI_GET(0, a_column_index);
+ float a_width{};
+ BI_GET(1, a_width);
+ ImGui::SetColumnWidth(a_column_index, a_width);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_column_width(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetColumnWidth, self, args, kw);
+}
+static PyObject* biv_ImGui_GetColumnOffsetEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_index", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_column_index = - 1;
+ BI_GET(0, a_column_index);
+ auto r = ImGui::GetColumnOffset(a_column_index);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_column_offset(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetColumnOffsetEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetColumnOffset(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "column_index", "offset_x", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ int a_column_index{};
+ BI_GET(0, a_column_index);
+ float a_offset_x{};
+ BI_GET(1, a_offset_x);
+ ImGui::SetColumnOffset(a_column_index, a_offset_x);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_column_offset(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetColumnOffset, self, args, kw);
+}
+static PyObject* biv_ImGui_GetColumnsCount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetColumnsCount();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_columns_count(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetColumnsCount, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginTabBarEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str_id", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_str_id{};
+ BI_GET(0, a_str_id);
+ ImGuiTabBarFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::BeginTabBar(a_str_id, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_tab_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginTabBarEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndTabBar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndTabBar();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_tab_bar(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndTabBar, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginTabItemEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "p_open", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ bool a_p_open_v{}; bool* a_p_open = NULL;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_p_open_v)) BI_FAIL; a_p_open = &a_p_open_v; }
+ ImGuiTabItemFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ auto r = ImGui::BeginTabItem(a_label, a_p_open, a_flags);
+ return bi_result({ bi_to(r), bi_opt(a_p_open) });
+}
+static PyObject* bid_ImGui_begin_tab_item(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginTabItemEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndTabItem(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndTabItem();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_tab_item(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndTabItem, self, args, kw);
+}
+static PyObject* biv_ImGui_TabItemButtonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_label{};
+ BI_GET(0, a_label);
+ ImGuiTabItemFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::TabItemButton(a_label, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_tab_item_button(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_TabItemButtonEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetTabItemClosed(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tab_or_docked_window_label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_tab_or_docked_window_label{};
+ BI_GET(0, a_tab_or_docked_window_label);
+ ImGui::SetTabItemClosed(a_tab_or_docked_window_label);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_tab_item_closed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetTabItemClosed, self, args, kw);
+}
+static PyObject* biv_ImGui_LogToTTYEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "auto_open_depth", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_auto_open_depth = - 1;
+ BI_GET(0, a_auto_open_depth);
+ ImGui::LogToTTY(a_auto_open_depth);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_to_tty(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogToTTYEx, self, args, kw);
+}
+static PyObject* biv_ImGui_LogToFileEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "auto_open_depth", "filename", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ int a_auto_open_depth = - 1;
+ BI_GET(0, a_auto_open_depth);
+ const char* a_filename = NULL;
+ BI_GET(1, a_filename);
+ ImGui::LogToFile(a_auto_open_depth, a_filename);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_to_file(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogToFileEx, self, args, kw);
+}
+static PyObject* biv_ImGui_LogToClipboardEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "auto_open_depth", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_auto_open_depth = - 1;
+ BI_GET(0, a_auto_open_depth);
+ ImGui::LogToClipboard(a_auto_open_depth);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_to_clipboard(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogToClipboardEx, self, args, kw);
+}
+static PyObject* biv_ImGui_LogFinish(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::LogFinish();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_finish(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogFinish, self, args, kw);
+}
+static PyObject* biv_ImGui_LogButtons(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::LogButtons();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_buttons(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogButtons, self, args, kw);
+}
+static PyObject* biv_ImGui_LogText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::LogText("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_log_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LogText, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginDragDropSourceEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiDragDropFlags a_flags = 0;
+ BI_GET(0, a_flags);
+ auto r = ImGui::BeginDragDropSource(a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_drag_drop_source(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginDragDropSourceEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetDragDropPayloadEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "type", "data", "cond", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ const char* a_type{};
+ BI_GET(0, a_type);
+ BiBytes a_data;
+ BI_GET(1, a_data);
+ ImGuiCond a_cond = 0;
+ BI_GET(2, a_cond);
+ auto r = ImGui::SetDragDropPayload(a_type, a_data.data(), a_data.size(), a_cond);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_set_drag_drop_payload(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetDragDropPayloadEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndDragDropSource(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndDragDropSource();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_drag_drop_source(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndDragDropSource, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginDragDropTarget(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::BeginDragDropTarget();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_begin_drag_drop_target(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginDragDropTarget, self, args, kw);
+}
+static PyObject* biv_ImGui_AcceptDragDropPayloadEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "type", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_type{};
+ BI_GET(0, a_type);
+ ImGuiDragDropFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::AcceptDragDropPayload(a_type, a_flags);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_accept_drag_drop_payload(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_AcceptDragDropPayloadEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndDragDropTarget(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndDragDropTarget();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_drag_drop_target(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndDragDropTarget, self, args, kw);
+}
+static PyObject* biv_ImGui_GetDragDropPayload(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetDragDropPayload();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_drag_drop_payload(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetDragDropPayload, self, args, kw);
+}
+static PyObject* biv_ImGui_BeginDisabledEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "disabled", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ bool a_disabled = true;
+ BI_GET(0, a_disabled);
+ ImGui::BeginDisabled(a_disabled);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_begin_disabled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_BeginDisabledEx, self, args, kw);
+}
+static PyObject* biv_ImGui_EndDisabled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::EndDisabled();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_end_disabled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_EndDisabled, self, args, kw);
+}
+static PyObject* biv_ImGui_PushClipRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "clip_rect_min", "clip_rect_max", "intersect_with_current_clip_rect", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImVec2 a_clip_rect_min{};
+ BI_GET(0, a_clip_rect_min);
+ ImVec2 a_clip_rect_max{};
+ BI_GET(1, a_clip_rect_max);
+ bool a_intersect_with_current_clip_rect{};
+ BI_GET(2, a_intersect_with_current_clip_rect);
+ ImGui::PushClipRect(a_clip_rect_min, a_clip_rect_max, a_intersect_with_current_clip_rect);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_push_clip_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PushClipRect, self, args, kw);
+}
+static PyObject* biv_ImGui_PopClipRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::PopClipRect();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_pop_clip_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_PopClipRect, self, args, kw);
+}
+static PyObject* biv_ImGui_SetItemDefaultFocus(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::SetItemDefaultFocus();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_item_default_focus(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetItemDefaultFocus, self, args, kw);
+}
+static PyObject* biv_ImGui_SetKeyboardFocusHereEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "offset", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ int a_offset = 0;
+ BI_GET(0, a_offset);
+ ImGui::SetKeyboardFocusHere(a_offset);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_keyboard_focus_here(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetKeyboardFocusHereEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNavCursorVisible(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "visible", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ bool a_visible{};
+ BI_GET(0, a_visible);
+ ImGui::SetNavCursorVisible(a_visible);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_nav_cursor_visible(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNavCursorVisible, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextItemAllowOverlap(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::SetNextItemAllowOverlap();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_allow_overlap(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemAllowOverlap, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemHoveredEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiHoveredFlags a_flags = 0;
+ BI_GET(0, a_flags);
+ auto r = ImGui::IsItemHovered(a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_hovered(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemHoveredEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemActive(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemActive();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_active(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemActive, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemFocused(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemFocused();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_focused(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemFocused, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemClickedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "mouse_button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiMouseButton a_mouse_button = 0;
+ BI_GET(0, a_mouse_button);
+ auto r = ImGui::IsItemClicked(a_mouse_button);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_clicked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemClickedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemVisible(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemVisible();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_visible(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemVisible, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemEdited(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemEdited();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_edited(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemEdited, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemActivated(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemActivated();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_activated(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemActivated, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemDeactivated(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemDeactivated();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_deactivated(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemDeactivated, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemDeactivatedAfterEdit(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemDeactivatedAfterEdit();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_deactivated_after_edit(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemDeactivatedAfterEdit, self, args, kw);
+}
+static PyObject* biv_ImGui_IsItemToggledOpen(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsItemToggledOpen();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_item_toggled_open(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsItemToggledOpen, self, args, kw);
+}
+static PyObject* biv_ImGui_IsAnyItemHovered(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsAnyItemHovered();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_any_item_hovered(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsAnyItemHovered, self, args, kw);
+}
+static PyObject* biv_ImGui_IsAnyItemActive(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsAnyItemActive();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_any_item_active(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsAnyItemActive, self, args, kw);
+}
+static PyObject* biv_ImGui_IsAnyItemFocused(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsAnyItemFocused();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_any_item_focused(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsAnyItemFocused, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetItemID();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemID, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemRectMin(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetItemRectMin();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_rect_min(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemRectMin, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemRectMax(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetItemRectMax();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_rect_max(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemRectMax, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemRectSize(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetItemRectSize();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_rect_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemRectSize, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemFlags(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetItemFlags();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_flags(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemFlags, self, args, kw);
+}
+static PyObject* biv_ImGui_GetItemClickedCountWithSingleClickDelayEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "mouse_button", "delay", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ ImGuiMouseButton a_mouse_button = 0;
+ BI_GET(0, a_mouse_button);
+ float a_delay = - 1.0f;
+ BI_GET(1, a_delay);
+ auto r = ImGui::GetItemClickedCountWithSingleClickDelay(a_mouse_button, a_delay);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_item_clicked_count_with_single_click_delay(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetItemClickedCountWithSingleClickDelayEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMainViewport(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetMainViewport();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_main_viewport(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMainViewport, self, args, kw);
+}
+static PyObject* biv_ImGui_GetBackgroundDrawList(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetBackgroundDrawList();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_background_draw_list(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetBackgroundDrawList, self, args, kw);
+}
+static PyObject* biv_ImGui_GetForegroundDrawList(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetForegroundDrawList();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_foreground_draw_list(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetForegroundDrawList, self, args, kw);
+}
+static PyObject* biv_ImGui_IsRectVisible(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec2 a_size{};
+ BI_GET(0, a_size);
+ auto r = ImGui::IsRectVisible(a_size);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* biv_ImGui_IsRectVisibleVec2(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "rect_min", "rect_max", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImVec2 a_rect_min{};
+ BI_GET(0, a_rect_min);
+ ImVec2 a_rect_max{};
+ BI_GET(1, a_rect_max);
+ auto r = ImGui::IsRectVisible(a_rect_min, a_rect_max);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_rect_visible(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGui_IsRectVisible, biv_ImGui_IsRectVisibleVec2 };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImGui_IsRectVisibleVec2(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImGui_IsRectVisibleVec2, self, args, kw); }
+static PyObject* biv_ImGui_GetTime(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetTime();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_time(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetTime, self, args, kw);
+}
+static PyObject* biv_ImGui_GetFrameCount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetFrameCount();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_frame_count(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetFrameCount, self, args, kw);
+}
+static PyObject* biv_ImGui_GetDrawListSharedData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetDrawListSharedData();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_draw_list_shared_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetDrawListSharedData, self, args, kw);
+}
+static PyObject* biv_ImGui_GetStyleColorName(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ auto r = ImGui::GetStyleColorName(a_idx);
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGui_get_style_color_name(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetStyleColorName, self, args, kw);
+}
+static PyObject* biv_ImGui_SetStateStorage(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "storage", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiStorage* a_storage = nullptr;
+ BI_GETP(0, a_storage);
+ ImGui::SetStateStorage(a_storage);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_state_storage(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetStateStorage, self, args, kw);
+}
+static PyObject* biv_ImGui_GetStateStorage(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetStateStorage();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGui_get_state_storage(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetStateStorage, self, args, kw);
+}
+static PyObject* biv_ImGui_CalcTextSizeEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", "text_end", "hide_text_after_double_hash", "wrap_width", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 1, o, argfail)) return nullptr;
+ const char* a_text{};
+ BI_GET(0, a_text);
+ const char* a_text_end = NULL;
+ BI_GET(1, a_text_end);
+ bool a_hide_text_after_double_hash = false;
+ BI_GET(2, a_hide_text_after_double_hash);
+ float a_wrap_width = - 1.0f;
+ BI_GET(3, a_wrap_width);
+ auto r = ImGui::CalcTextSize(a_text, a_text_end, a_hide_text_after_double_hash, a_wrap_width);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_calc_text_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_CalcTextSizeEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorConvertU32ToFloat4(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "in_", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImU32 a_in{};
+ BI_GET(0, a_in);
+ auto r = ImGui::ColorConvertU32ToFloat4(a_in);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_color_convert_u32_to_float4(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorConvertU32ToFloat4, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorConvertFloat4ToU32(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "in_", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec4 a_in{};
+ BI_GET(0, a_in);
+ auto r = ImGui::ColorConvertFloat4ToU32(a_in);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_color_convert_float4_to_u32(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorConvertFloat4ToU32, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorConvertRGBtoHSV(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "r", "g", "b", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ float a_r{};
+ BI_GET(0, a_r);
+ float a_g{};
+ BI_GET(1, a_g);
+ float a_b{};
+ BI_GET(2, a_b);
+ float a_out_h{};
+ float a_out_s{};
+ float a_out_v{};
+ ImGui::ColorConvertRGBtoHSV(a_r, a_g, a_b, a_out_h, a_out_s, a_out_v);
+ return bi_result({ bi_to(a_out_h), bi_to(a_out_s), bi_to(a_out_v) });
+}
+static PyObject* bid_ImGui_color_convert_rgb_to_hsv(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorConvertRGBtoHSV, self, args, kw);
+}
+static PyObject* biv_ImGui_ColorConvertHSVtoRGB(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "h", "s", "v", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ float a_h{};
+ BI_GET(0, a_h);
+ float a_s{};
+ BI_GET(1, a_s);
+ float a_v{};
+ BI_GET(2, a_v);
+ float a_out_r{};
+ float a_out_g{};
+ float a_out_b{};
+ ImGui::ColorConvertHSVtoRGB(a_h, a_s, a_v, a_out_r, a_out_g, a_out_b);
+ return bi_result({ bi_to(a_out_r), bi_to(a_out_g), bi_to(a_out_b) });
+}
+static PyObject* bid_ImGui_color_convert_hsv_to_rgb(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ColorConvertHSVtoRGB, self, args, kw);
+}
+static PyObject* biv_ImGui_IsKeyDown(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ auto r = ImGui::IsKeyDown(a_key);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_key_down(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsKeyDown, self, args, kw);
+}
+static PyObject* biv_ImGui_IsKeyPressedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "repeat", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ bool a_repeat = true;
+ BI_GET(1, a_repeat);
+ auto r = ImGui::IsKeyPressed(a_key, a_repeat);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_key_pressed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsKeyPressedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsKeyReleased(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ auto r = ImGui::IsKeyReleased(a_key);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_key_released(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsKeyReleased, self, args, kw);
+}
+static PyObject* biv_ImGui_IsKeyChordPressed(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key_chord", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiKeyChord a_key_chord{};
+ BI_GET(0, a_key_chord);
+ auto r = ImGui::IsKeyChordPressed(a_key_chord);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_key_chord_pressed(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsKeyChordPressed, self, args, kw);
+}
+static PyObject* biv_ImGui_GetKeyPressedAmount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "repeat_delay", "rate", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ float a_repeat_delay{};
+ BI_GET(1, a_repeat_delay);
+ float a_rate{};
+ BI_GET(2, a_rate);
+ auto r = ImGui::GetKeyPressedAmount(a_key, a_repeat_delay, a_rate);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_key_pressed_amount(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetKeyPressedAmount, self, args, kw);
+}
+static PyObject* biv_ImGui_GetKeyName(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ auto r = ImGui::GetKeyName(a_key);
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGui_get_key_name(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetKeyName, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextFrameWantCaptureKeyboard(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "want_capture_keyboard", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ bool a_want_capture_keyboard{};
+ BI_GET(0, a_want_capture_keyboard);
+ ImGui::SetNextFrameWantCaptureKeyboard(a_want_capture_keyboard);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_frame_want_capture_keyboard(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextFrameWantCaptureKeyboard, self, args, kw);
+}
+static PyObject* biv_ImGui_ShortcutEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key_chord", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiKeyChord a_key_chord{};
+ BI_GET(0, a_key_chord);
+ ImGuiInputFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ auto r = ImGui::Shortcut(a_key_chord, a_flags);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_shortcut(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ShortcutEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextItemShortcutEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key_chord", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiKeyChord a_key_chord{};
+ BI_GET(0, a_key_chord);
+ ImGuiInputFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ ImGui::SetNextItemShortcut(a_key_chord, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_item_shortcut(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextItemShortcutEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SetItemKeyOwner(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ auto r = ImGui::SetItemKeyOwner(a_key);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_set_item_key_owner(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetItemKeyOwner, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseDown(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ auto r = ImGui::IsMouseDown(a_button);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_down(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseDown, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseClickedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", "repeat", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ bool a_repeat = false;
+ BI_GET(1, a_repeat);
+ auto r = ImGui::IsMouseClicked(a_button, a_repeat);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_clicked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseClickedEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseReleased(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ auto r = ImGui::IsMouseReleased(a_button);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_released(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseReleased, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseDoubleClicked(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ auto r = ImGui::IsMouseDoubleClicked(a_button);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_double_clicked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseDoubleClicked, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseReleasedWithDelayEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", "delay", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ float a_delay = - 1.f;
+ BI_GET(1, a_delay);
+ auto r = ImGui::IsMouseReleasedWithDelay(a_button, a_delay);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_released_with_delay(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseReleasedWithDelayEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMouseClickedCount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ auto r = ImGui::GetMouseClickedCount(a_button);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_mouse_clicked_count(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMouseClickedCount, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseHoveringRectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "r_min", "r_max", "clip", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImVec2 a_r_min{};
+ BI_GET(0, a_r_min);
+ ImVec2 a_r_max{};
+ BI_GET(1, a_r_max);
+ bool a_clip = true;
+ BI_GET(2, a_clip);
+ auto r = ImGui::IsMouseHoveringRect(a_r_min, a_r_max, a_clip);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_hovering_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseHoveringRectEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMousePosValidEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImVec2* a_mouse_pos = NULL;
+ auto r = ImGui::IsMousePosValid(a_mouse_pos);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_pos_valid(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMousePosValidEx, self, args, kw);
+}
+static PyObject* biv_ImGui_IsAnyMouseDown(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::IsAnyMouseDown();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_any_mouse_down(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsAnyMouseDown, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMousePos(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetMousePos();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_mouse_pos(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMousePos, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMousePosOnOpeningCurrentPopup(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetMousePosOnOpeningCurrentPopup();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_mouse_pos_on_opening_current_popup(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMousePosOnOpeningCurrentPopup, self, args, kw);
+}
+static PyObject* biv_ImGui_IsMouseDraggingEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", "lock_threshold", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button{};
+ BI_GET(0, a_button);
+ float a_lock_threshold = - 1.0f;
+ BI_GET(1, a_lock_threshold);
+ auto r = ImGui::IsMouseDragging(a_button, a_lock_threshold);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_is_mouse_dragging(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_IsMouseDraggingEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMouseDragDeltaEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", "lock_threshold", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button = 0;
+ BI_GET(0, a_button);
+ float a_lock_threshold = - 1.0f;
+ BI_GET(1, a_lock_threshold);
+ auto r = ImGui::GetMouseDragDelta(a_button, a_lock_threshold);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_mouse_drag_delta(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMouseDragDeltaEx, self, args, kw);
+}
+static PyObject* biv_ImGui_ResetMouseDragDeltaEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiMouseButton a_button = 0;
+ BI_GET(0, a_button);
+ ImGui::ResetMouseDragDelta(a_button);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_reset_mouse_drag_delta(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_ResetMouseDragDeltaEx, self, args, kw);
+}
+static PyObject* biv_ImGui_GetMouseCursor(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetMouseCursor();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_get_mouse_cursor(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetMouseCursor, self, args, kw);
+}
+static PyObject* biv_ImGui_SetMouseCursor(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "cursor_type", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiMouseCursor a_cursor_type{};
+ BI_GET(0, a_cursor_type);
+ ImGui::SetMouseCursor(a_cursor_type);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_mouse_cursor(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetMouseCursor, self, args, kw);
+}
+static PyObject* biv_ImGui_SetNextFrameWantCaptureMouse(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "want_capture_mouse", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ bool a_want_capture_mouse{};
+ BI_GET(0, a_want_capture_mouse);
+ ImGui::SetNextFrameWantCaptureMouse(a_want_capture_mouse);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_next_frame_want_capture_mouse(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetNextFrameWantCaptureMouse, self, args, kw);
+}
+static PyObject* biv_ImGui_GetClipboardText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ auto r = ImGui::GetClipboardText();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGui_get_clipboard_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_GetClipboardText, self, args, kw);
+}
+static PyObject* biv_ImGui_SetClipboardText(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_text{};
+ BI_GET(0, a_text);
+ ImGui::SetClipboardText(a_text);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_set_clipboard_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SetClipboardText, self, args, kw);
+}
+static PyObject* biv_ImGui_LoadIniSettingsFromDisk(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ini_filename", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_ini_filename{};
+ BI_GET(0, a_ini_filename);
+ ImGui::LoadIniSettingsFromDisk(a_ini_filename);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_load_ini_settings_from_disk(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LoadIniSettingsFromDisk, self, args, kw);
+}
+static PyObject* biv_ImGui_LoadIniSettingsFromMemoryEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ini_data", "ini_size", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const char* a_ini_data{};
+ BI_GET(0, a_ini_data);
+ size_t a_ini_size = 0;
+ BI_GET(1, a_ini_size);
+ ImGui::LoadIniSettingsFromMemory(a_ini_data, a_ini_size);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_load_ini_settings_from_memory(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_LoadIniSettingsFromMemoryEx, self, args, kw);
+}
+static PyObject* biv_ImGui_SaveIniSettingsToDisk(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ini_filename", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_ini_filename{};
+ BI_GET(0, a_ini_filename);
+ ImGui::SaveIniSettingsToDisk(a_ini_filename);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_save_ini_settings_to_disk(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SaveIniSettingsToDisk, self, args, kw);
+}
+static PyObject* biv_ImGui_SaveIniSettingsToMemoryEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "out_ini_size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ size_t a_out_ini_size_v{}; size_t* a_out_ini_size = NULL;
+ if (o[0] && o[0] != Py_None) { if (!bi_from(o[0], a_out_ini_size_v)) BI_FAIL; a_out_ini_size = &a_out_ini_size_v; }
+ auto r = ImGui::SaveIniSettingsToMemory(a_out_ini_size);
+ return bi_result({ bi_to((const char*)r), bi_opt(a_out_ini_size) });
+}
+static PyObject* bid_ImGui_save_ini_settings_to_memory(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_SaveIniSettingsToMemoryEx, self, args, kw);
+}
+static PyObject* biv_ImGui_DebugTextEncoding(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_text{};
+ BI_GET(0, a_text);
+ ImGui::DebugTextEncoding(a_text);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_debug_text_encoding(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DebugTextEncoding, self, args, kw);
+}
+static PyObject* biv_ImGui_DebugFlashStyleColor(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiCol a_idx{};
+ BI_GET(0, a_idx);
+ ImGui::DebugFlashStyleColor(a_idx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_debug_flash_style_color(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DebugFlashStyleColor, self, args, kw);
+}
+static PyObject* biv_ImGui_DebugStartItemPicker(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGui::DebugStartItemPicker();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_debug_start_item_picker(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DebugStartItemPicker, self, args, kw);
+}
+static PyObject* biv_ImGui_DebugCheckVersionAndDataLayout(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "version_str", "sz_io", "sz_style", "sz_vec2", "sz_vec4", "sz_drawvert", "sz_drawidx", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 7, o, argfail)) return nullptr;
+ const char* a_version_str{};
+ BI_GET(0, a_version_str);
+ size_t a_sz_io{};
+ BI_GET(1, a_sz_io);
+ size_t a_sz_style{};
+ BI_GET(2, a_sz_style);
+ size_t a_sz_vec2{};
+ BI_GET(3, a_sz_vec2);
+ size_t a_sz_vec4{};
+ BI_GET(4, a_sz_vec4);
+ size_t a_sz_drawvert{};
+ BI_GET(5, a_sz_drawvert);
+ size_t a_sz_drawidx{};
+ BI_GET(6, a_sz_drawidx);
+ auto r = ImGui::DebugCheckVersionAndDataLayout(a_version_str, a_sz_io, a_sz_style, a_sz_vec2, a_sz_vec4, a_sz_drawvert, a_sz_drawidx);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGui_debug_check_version_and_data_layout(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DebugCheckVersionAndDataLayout, self, args, kw);
+}
+static PyObject* biv_ImGui_DebugLog(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ ImGui::DebugLog("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGui_debug_log(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_DebugLog, self, args, kw);
+}
+static PyObject* biv_ImGui_MemAlloc(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ size_t a_size{};
+ BI_GET(0, a_size);
+ auto r = ImGui::MemAlloc(a_size);
+ return bi_result({ bi_voidptr((const void*)r) });
+}
+static PyObject* bid_ImGui_mem_alloc(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGui_MemAlloc, self, args, kw);
+}
+static PyObject* biv_ImVec2_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImVec2)());
+}
+static PyObject* biv_ImVec2_NewFloat(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "x", "y", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ float a__x{};
+ BI_GET(0, a__x);
+ float a__y{};
+ BI_GET(1, a__y);
+ return bi_owned(IM_NEW(ImVec2)(a__x, a__y));
+}
+static PyObject* bid_ImVec2_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImVec2_New, biv_ImVec2_NewFloat };
+ return bi_dispatch(nullptr, args, kw, v, 2);
+}
+static PyObject* biv_ImVec4_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImVec4)());
+}
+static PyObject* biv_ImVec4_NewFloat(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "x", "y", "z", "w", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 4, o, argfail)) return nullptr;
+ float a__x{};
+ BI_GET(0, a__x);
+ float a__y{};
+ BI_GET(1, a__y);
+ float a__z{};
+ BI_GET(2, a__z);
+ float a__w{};
+ BI_GET(3, a__w);
+ return bi_owned(IM_NEW(ImVec4)(a__x, a__y, a__z, a__w));
+}
+static PyObject* bid_ImVec4_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImVec4_New, biv_ImVec4_NewFloat };
+ return bi_dispatch(nullptr, args, kw, v, 2);
+}
+static PyObject* biv_ImTextureRef_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImTextureRef)());
+}
+static PyObject* biv_ImTextureRef_NewTextureID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImTextureID a_tex_id{};
+ BI_GET(0, a_tex_id);
+ return bi_owned(IM_NEW(ImTextureRef)(a_tex_id));
+}
+static PyObject* bid_ImTextureRef_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImTextureRef_New, biv_ImTextureRef_NewTextureID };
+ return bi_dispatch(nullptr, args, kw, v, 2);
+}
+static PyObject* biv_ImTextureRef_GetTexID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImTextureRef* self_p = (const ImTextureRef*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetTexID();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImTextureRef_get_tex_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureRef_GetTexID, self, args, kw);
+}
+static PyObject* biv_ImGuiTableSortSpecs_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiTableSortSpecs)());
+}
+static PyObject* bid_ImGuiTableSortSpecs_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTableSortSpecs_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiTableColumnSortSpecs_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiTableColumnSortSpecs)());
+}
+static PyObject* bid_ImGuiTableColumnSortSpecs_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTableColumnSortSpecs_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiStyle_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiStyle)());
+}
+static PyObject* bid_ImGuiStyle_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStyle_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiStyle_ScaleAllSizes(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "scale_factor", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiStyle* self_p = (ImGuiStyle*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_scale_factor{};
+ BI_GET(0, a_scale_factor);
+ self_p->ScaleAllSizes(a_scale_factor);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStyle_scale_all_sizes(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStyle_ScaleAllSizes, self, args, kw);
+}
+static PyObject* biv_ImGuiKeyData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiKeyData)());
+}
+static PyObject* bid_ImGuiKeyData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiKeyData_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiIO_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiIO)());
+}
+static PyObject* bid_ImGuiIO_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddKeyEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "down", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ bool a_down{};
+ BI_GET(1, a_down);
+ self_p->AddKeyEvent(a_key, a_down);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_key_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddKeyEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddKeyAnalogEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "down", "v", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ bool a_down{};
+ BI_GET(1, a_down);
+ float a_v{};
+ BI_GET(2, a_v);
+ self_p->AddKeyAnalogEvent(a_key, a_down, a_v);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_key_analog_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddKeyAnalogEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddMousePosEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "x", "y", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_x{};
+ BI_GET(0, a_x);
+ float a_y{};
+ BI_GET(1, a_y);
+ self_p->AddMousePosEvent(a_x, a_y);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_mouse_pos_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddMousePosEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddMouseButtonEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "button", "down", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_button{};
+ BI_GET(0, a_button);
+ bool a_down{};
+ BI_GET(1, a_down);
+ self_p->AddMouseButtonEvent(a_button, a_down);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_mouse_button_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddMouseButtonEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddMouseWheelEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "wheel_x", "wheel_y", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_wheel_x{};
+ BI_GET(0, a_wheel_x);
+ float a_wheel_y{};
+ BI_GET(1, a_wheel_y);
+ self_p->AddMouseWheelEvent(a_wheel_x, a_wheel_y);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_mouse_wheel_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddMouseWheelEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddMouseSourceEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "source", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiMouseSource a_source{};
+ BI_GET(0, a_source);
+ self_p->AddMouseSourceEvent(a_source);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_mouse_source_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddMouseSourceEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddFocusEvent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "focused", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ bool a_focused{};
+ BI_GET(0, a_focused);
+ self_p->AddFocusEvent(a_focused);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_focus_event(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddFocusEvent, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddInputCharacter(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ unsigned int a_c{};
+ BI_GET(0, a_c);
+ self_p->AddInputCharacter(a_c);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_input_character(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddInputCharacter, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddInputCharacterUTF16(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar16 a_c{};
+ BI_GET(0, a_c);
+ self_p->AddInputCharacterUTF16(a_c);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_input_character_utf16(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddInputCharacterUTF16, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_AddInputCharactersUTF8(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_str{};
+ BI_GET(0, a_str);
+ self_p->AddInputCharactersUTF8(a_str);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_add_input_characters_utf8(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_AddInputCharactersUTF8, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_SetKeyEventNativeDataEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "native_keycode", "native_scancode", "native_legacy_index", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiKey a_key{};
+ BI_GET(0, a_key);
+ int a_native_keycode{};
+ BI_GET(1, a_native_keycode);
+ int a_native_scancode{};
+ BI_GET(2, a_native_scancode);
+ int a_native_legacy_index = - 1;
+ BI_GET(3, a_native_legacy_index);
+ self_p->SetKeyEventNativeData(a_key, a_native_keycode, a_native_scancode, a_native_legacy_index);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_set_key_event_native_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_SetKeyEventNativeDataEx, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_SetAppAcceptingEvents(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "accepting_events", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ bool a_accepting_events{};
+ BI_GET(0, a_accepting_events);
+ self_p->SetAppAcceptingEvents(a_accepting_events);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_set_app_accepting_events(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_SetAppAcceptingEvents, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_ClearEventsQueue(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearEventsQueue();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_clear_events_queue(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_ClearEventsQueue, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_ClearInputKeys(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearInputKeys();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_clear_input_keys(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_ClearInputKeys, self, args, kw);
+}
+static PyObject* biv_ImGuiIO_ClearInputMouse(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiIO* self_p = (ImGuiIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearInputMouse();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiIO_clear_input_mouse(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiIO_ClearInputMouse, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiInputTextCallbackData)());
+}
+static PyObject* bid_ImGuiInputTextCallbackData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_DeleteChars(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "bytes_count", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiInputTextCallbackData* self_p = (ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_pos{};
+ BI_GET(0, a_pos);
+ int a_bytes_count{};
+ BI_GET(1, a_bytes_count);
+ self_p->DeleteChars(a_pos, a_bytes_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiInputTextCallbackData_delete_chars(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_DeleteChars, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_InsertCharsEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "text", "text_end", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImGuiInputTextCallbackData* self_p = (ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_pos{};
+ BI_GET(0, a_pos);
+ const char* a_text{};
+ BI_GET(1, a_text);
+ const char* a_text_end = NULL;
+ BI_GET(2, a_text_end);
+ self_p->InsertChars(a_pos, a_text, a_text_end);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiInputTextCallbackData_insert_chars(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_InsertCharsEx, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_SelectAll(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiInputTextCallbackData* self_p = (ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->SelectAll();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiInputTextCallbackData_select_all(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_SelectAll, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_SetSelection(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "s", "e", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiInputTextCallbackData* self_p = (ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_s{};
+ BI_GET(0, a_s);
+ int a_e{};
+ BI_GET(1, a_e);
+ self_p->SetSelection(a_s, a_e);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiInputTextCallbackData_set_selection(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_SetSelection, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_ClearSelection(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiInputTextCallbackData* self_p = (ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearSelection();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiInputTextCallbackData_clear_selection(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_ClearSelection, self, args, kw);
+}
+static PyObject* biv_ImGuiInputTextCallbackData_HasSelection(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiInputTextCallbackData* self_p = (const ImGuiInputTextCallbackData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->HasSelection();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiInputTextCallbackData_has_selection(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiInputTextCallbackData_HasSelection, self, args, kw);
+}
+static PyObject* biv_ImGuiSizeCallbackData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiSizeCallbackData)());
+}
+static PyObject* bid_ImGuiSizeCallbackData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSizeCallbackData_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiPayload_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiPayload)());
+}
+static PyObject* bid_ImGuiPayload_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPayload_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiPayload_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiPayload* self_p = (ImGuiPayload*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiPayload_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPayload_Clear, self, args, kw);
+}
+static PyObject* biv_ImGuiPayload_IsDataType(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "type", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const ImGuiPayload* self_p = (const ImGuiPayload*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_type{};
+ BI_GET(0, a_type);
+ auto r = self_p->IsDataType(a_type);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiPayload_is_data_type(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPayload_IsDataType, self, args, kw);
+}
+static PyObject* biv_ImGuiPayload_IsPreview(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiPayload* self_p = (const ImGuiPayload*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->IsPreview();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiPayload_is_preview(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPayload_IsPreview, self, args, kw);
+}
+static PyObject* biv_ImGuiPayload_IsDelivery(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiPayload* self_p = (const ImGuiPayload*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->IsDelivery();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiPayload_is_delivery(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPayload_IsDelivery, self, args, kw);
+}
+static PyObject* biv_ImGuiOnceUponAFrame_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiOnceUponAFrame)());
+}
+static PyObject* bid_ImGuiOnceUponAFrame_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiOnceUponAFrame_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_NewEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "default_filter", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ const char* a_default_filter = "";
+ BI_GET(0, a_default_filter);
+ return bi_owned(IM_NEW(ImGuiTextFilter)(a_default_filter));
+}
+static PyObject* bid_ImGuiTextFilter_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_NewEx, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_PassFilterEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", "text_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const ImGuiTextFilter* self_p = (const ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_text{};
+ BI_GET(0, a_text);
+ const char* a_text_end = NULL;
+ BI_GET(1, a_text_end);
+ auto r = self_p->PassFilter(a_text, a_text_end);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextFilter_pass_filter(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_PassFilterEx, self, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_Build(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiTextFilter* self_p = (ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Build();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextFilter_build(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_Build, self, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiTextFilter* self_p = (ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextFilter_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_Clear, self, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_IsActive(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextFilter* self_p = (const ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->IsActive();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextFilter_is_active(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_IsActive, self, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_DrawEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImGuiTextFilter* self_p = (ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_label = "Filter";
+ BI_GET(0, a_label);
+ auto r = self_p->Draw(a_label);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextFilter_draw(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_DrawEx, self, args, kw);
+}
+static PyObject* biv_ImGuiTextFilter_DrawWithHintEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "label", "hint", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 0, o, argfail)) return nullptr;
+ ImGuiTextFilter* self_p = (ImGuiTextFilter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_label = "Filter";
+ BI_GET(0, a_label);
+ const char* a_hint = "incl -excl";
+ BI_GET(1, a_hint);
+ auto r = self_p->DrawWithHint(a_label, a_hint);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextFilter_draw_with_hint(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextFilter_DrawWithHintEx, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiTextBuffer)());
+}
+static PyObject* bid_ImGuiTextBuffer_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_begin(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextBuffer* self_p = (const ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->begin();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGuiTextBuffer_begin(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_begin, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_end(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextBuffer* self_p = (const ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->end();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGuiTextBuffer_end(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_end, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_size(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextBuffer* self_p = (const ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->size();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextBuffer_size(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_size, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_empty(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextBuffer* self_p = (const ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->empty();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiTextBuffer_empty(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_empty, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiTextBuffer* self_p = (ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextBuffer_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_clear, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_resize(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiTextBuffer* self_p = (ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_size{};
+ BI_GET(0, a_size);
+ self_p->resize(a_size);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextBuffer_resize(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_resize, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_reserve(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "capacity", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiTextBuffer* self_p = (ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_capacity{};
+ BI_GET(0, a_capacity);
+ self_p->reserve(a_capacity);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextBuffer_reserve(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_reserve, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_c_str(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiTextBuffer* self_p = (const ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->c_str();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImGuiTextBuffer_c_str(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_c_str, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_appendEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "str", "str_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiTextBuffer* self_p = (ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_str{};
+ BI_GET(0, a_str);
+ const char* a_str_end = NULL;
+ BI_GET(1, a_str_end);
+ self_p->append(a_str, a_str_end);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextBuffer_append(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_appendEx, self, args, kw);
+}
+static PyObject* biv_ImGuiTextBuffer_appendf(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiTextBuffer* self_p = (ImGuiTextBuffer*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_fmt{};
+ BI_GET(0, a_fmt);
+ self_p->appendf("%s", a_fmt);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiTextBuffer_appendf(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiTextBuffer_appendf, self, args, kw);
+}
+static PyObject* biv_ImGuiStoragePair_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiID a__key{};
+ BI_GET(0, a__key);
+ int a__val{};
+ BI_GET(1, a__val);
+ return bi_owned(IM_NEW(ImGuiStoragePair)(a__key, a__val));
+}
+static PyObject* biv_ImGuiStoragePair_NewFloat(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiID a__key{};
+ BI_GET(0, a__key);
+ float a__val{};
+ BI_GET(1, a__val);
+ return bi_owned(IM_NEW(ImGuiStoragePair)(a__key, a__val));
+}
+static PyObject* bid_ImGuiStoragePair_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImGuiStoragePair_New, biv_ImGuiStoragePair_NewFloat };
+ return bi_dispatch(nullptr, args, kw, v, 2);
+}
+static PyObject* biv_ImGuiStorage_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiStorage)());
+}
+static PyObject* bid_ImGuiStorage_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiStorage_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_Clear, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const ImGuiStorage* self_p = (const ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ int a_default_val = 0;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetInt(a_key, a_default_val);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiStorage_get_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetIntEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_SetInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ int a_val{};
+ BI_GET(1, a_val);
+ self_p->SetInt(a_key, a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_set_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_SetInt, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetBoolEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const ImGuiStorage* self_p = (const ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ bool a_default_val = false;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetBool(a_key, a_default_val);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiStorage_get_bool(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetBoolEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_SetBool(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ bool a_val{};
+ BI_GET(1, a_val);
+ self_p->SetBool(a_key, a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_set_bool(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_SetBool, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ const ImGuiStorage* self_p = (const ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ float a_default_val = 0.0f;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetFloat(a_key, a_default_val);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiStorage_get_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetFloatEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_SetFloat(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ float a_val{};
+ BI_GET(1, a_val);
+ self_p->SetFloat(a_key, a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_set_float(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_SetFloat, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetVoidPtr(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const ImGuiStorage* self_p = (const ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ auto r = self_p->GetVoidPtr(a_key);
+ return bi_result({ bi_voidptr((const void*)r) });
+}
+static PyObject* bid_ImGuiStorage_get_void_ptr(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetVoidPtr, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetIntRefEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ int a_default_val = 0;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetIntRef(a_key, a_default_val);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGuiStorage_get_int_ref(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetIntRefEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetBoolRefEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ bool a_default_val = false;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetBoolRef(a_key, a_default_val);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGuiStorage_get_bool_ref(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetBoolRefEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetFloatRefEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", "default_val", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ float a_default_val = 0.0f;
+ BI_GET(1, a_default_val);
+ auto r = self_p->GetFloatRef(a_key, a_default_val);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImGuiStorage_get_float_ref(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetFloatRefEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_GetVoidPtrRefEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "key", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_key{};
+ BI_GET(0, a_key);
+ void* a_default_val = NULL;
+ auto r = self_p->GetVoidPtrRef(a_key, a_default_val);
+ return bi_result({ bi_voidptr((const void*)r) });
+}
+static PyObject* bid_ImGuiStorage_get_void_ptr_ref(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_GetVoidPtrRefEx, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_BuildSortByKey(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->BuildSortByKey();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_build_sort_by_key(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_BuildSortByKey, self, args, kw);
+}
+static PyObject* biv_ImGuiStorage_SetAllInt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "val", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiStorage* self_p = (ImGuiStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_val{};
+ BI_GET(0, a_val);
+ self_p->SetAllInt(a_val);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiStorage_set_all_int(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiStorage_SetAllInt, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiListClipper)());
+}
+static PyObject* bid_ImGuiListClipper_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_BeginEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "items_count", "items_height", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_items_count{};
+ BI_GET(0, a_items_count);
+ float a_items_height = - 1.0f;
+ BI_GET(1, a_items_height);
+ self_p->Begin(a_items_count, a_items_height);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiListClipper_begin(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_BeginEx, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_End(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->End();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiListClipper_end(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_End, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_Step(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->Step();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiListClipper_step(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_Step, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_IncludeItemByIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "item_index", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_item_index{};
+ BI_GET(0, a_item_index);
+ self_p->IncludeItemByIndex(a_item_index);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiListClipper_include_item_by_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_IncludeItemByIndex, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_IncludeItemsByIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "item_begin", "item_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_item_begin{};
+ BI_GET(0, a_item_begin);
+ int a_item_end{};
+ BI_GET(1, a_item_end);
+ self_p->IncludeItemsByIndex(a_item_begin, a_item_end);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiListClipper_include_items_by_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_IncludeItemsByIndex, self, args, kw);
+}
+static PyObject* biv_ImGuiListClipper_SeekCursorForItem(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "item_index", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiListClipper* self_p = (ImGuiListClipper*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_item_index{};
+ BI_GET(0, a_item_index);
+ self_p->SeekCursorForItem(a_item_index);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiListClipper_seek_cursor_for_item(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiListClipper_SeekCursorForItem, self, args, kw);
+}
+static PyObject* biv_ImColor_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImColor)());
+}
+static PyObject* biv_ImColor_NewFloatEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "r", "g", "b", "a", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ float a_r{};
+ BI_GET(0, a_r);
+ float a_g{};
+ BI_GET(1, a_g);
+ float a_b{};
+ BI_GET(2, a_b);
+ float a_a = 1.0f;
+ BI_GET(3, a_a);
+ return bi_owned(IM_NEW(ImColor)(a_r, a_g, a_b, a_a));
+}
+static PyObject* biv_ImColor_NewVec4(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImVec4 a_col{};
+ BI_GET(0, a_col);
+ return bi_owned(IM_NEW(ImColor)(a_col));
+}
+static PyObject* biv_ImColor_NewIntEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "r", "g", "b", "a", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ int a_r{};
+ BI_GET(0, a_r);
+ int a_g{};
+ BI_GET(1, a_g);
+ int a_b{};
+ BI_GET(2, a_b);
+ int a_a = 255;
+ BI_GET(3, a_a);
+ return bi_owned(IM_NEW(ImColor)(a_r, a_g, a_b, a_a));
+}
+static PyObject* biv_ImColor_NewU32(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "rgba", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImU32 a_rgba{};
+ BI_GET(0, a_rgba);
+ return bi_owned(IM_NEW(ImColor)(a_rgba));
+}
+static PyObject* bid_ImColor_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImColor_New, biv_ImColor_NewFloatEx, biv_ImColor_NewVec4, biv_ImColor_NewIntEx, biv_ImColor_NewU32 };
+ return bi_dispatch(nullptr, args, kw, v, 5);
+}
+static PyObject* biv_ImColor_SetHSVEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "h", "s", "v", "a", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImColor* self_p = (ImColor*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_h{};
+ BI_GET(0, a_h);
+ float a_s{};
+ BI_GET(1, a_s);
+ float a_v{};
+ BI_GET(2, a_v);
+ float a_a = 1.0f;
+ BI_GET(3, a_a);
+ self_p->SetHSV(a_h, a_s, a_v, a_a);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImColor_set_hsv(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImColor_SetHSVEx, self, args, kw);
+}
+static PyObject* biv_ImColor_HSVEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "h", "s", "v", "a", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ float a_h{};
+ BI_GET(0, a_h);
+ float a_s{};
+ BI_GET(1, a_s);
+ float a_v{};
+ BI_GET(2, a_v);
+ float a_a = 1.0f;
+ BI_GET(3, a_a);
+ auto r = ImColor::HSV(a_h, a_s, a_v, a_a);
+ return bi_result({ bi_copy(r) });
+}
+static PyObject* bid_ImColor_hsv(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImColor_HSVEx, self, args, kw);
+}
+static PyObject* biv_ImGuiMultiSelectIO_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiMultiSelectIO)());
+}
+static PyObject* bid_ImGuiMultiSelectIO_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiMultiSelectIO_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiSelectionRequest_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiSelectionRequest)());
+}
+static PyObject* bid_ImGuiSelectionRequest_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionRequest_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiSelectionBasicStorage)());
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_ApplyRequests(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ms_io", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiSelectionBasicStorage* self_p = (ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiMultiSelectIO* a_ms_io = nullptr;
+ BI_GETP(0, a_ms_io);
+ self_p->ApplyRequests(a_ms_io);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_apply_requests(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_ApplyRequests, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_Contains(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const ImGuiSelectionBasicStorage* self_p = (const ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_id{};
+ BI_GET(0, a_id);
+ auto r = self_p->Contains(a_id);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_contains(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_Contains, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiSelectionBasicStorage* self_p = (ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_Clear, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_Swap(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "r", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiSelectionBasicStorage* self_p = (ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiSelectionBasicStorage* a_r = nullptr;
+ BI_GETP(0, a_r);
+ if (a_r == nullptr) { PyErr_SetString(PyExc_TypeError, "r: an object is required"); BI_FAIL; }
+ self_p->Swap(*a_r);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_swap(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_Swap, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_SetItemSelected(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", "selected", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImGuiSelectionBasicStorage* self_p = (ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiID a_id{};
+ BI_GET(0, a_id);
+ bool a_selected{};
+ BI_GET(1, a_selected);
+ self_p->SetItemSelected(a_id, a_selected);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_set_item_selected(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_SetItemSelected, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionBasicStorage_GetStorageIdFromIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiSelectionBasicStorage* self_p = (ImGuiSelectionBasicStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_idx{};
+ BI_GET(0, a_idx);
+ auto r = self_p->GetStorageIdFromIndex(a_idx);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiSelectionBasicStorage_get_storage_id_from_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionBasicStorage_GetStorageIdFromIndex, self, args, kw);
+}
+static PyObject* biv_ImGuiSelectionExternalStorage_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiSelectionExternalStorage)());
+}
+static PyObject* bid_ImGuiSelectionExternalStorage_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionExternalStorage_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiSelectionExternalStorage_ApplyRequests(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "ms_io", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImGuiSelectionExternalStorage* self_p = (ImGuiSelectionExternalStorage*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImGuiMultiSelectIO* a_ms_io = nullptr;
+ BI_GETP(0, a_ms_io);
+ self_p->ApplyRequests(a_ms_io);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiSelectionExternalStorage_apply_requests(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiSelectionExternalStorage_ApplyRequests, self, args, kw);
+}
+static PyObject* biv_ImDrawCmd_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawCmd)());
+}
+static PyObject* bid_ImDrawCmd_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawCmd_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawCmd_GetTexID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImDrawCmd* self_p = (const ImDrawCmd*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetTexID();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImDrawCmd_get_tex_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawCmd_GetTexID, self, args, kw);
+}
+static PyObject* biv_ImDrawVert_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawVert)());
+}
+static PyObject* bid_ImDrawVert_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawVert_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawCmdHeader_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawCmdHeader)());
+}
+static PyObject* bid_ImDrawCmdHeader_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawCmdHeader_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawChannel_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawChannel)());
+}
+static PyObject* bid_ImDrawChannel_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawChannel_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawListSplitter)());
+}
+static PyObject* bid_ImDrawListSplitter_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawListSplitter* self_p = (ImDrawListSplitter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawListSplitter_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_Clear, self, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_ClearFreeMemory(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawListSplitter* self_p = (ImDrawListSplitter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearFreeMemory();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawListSplitter_clear_free_memory(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_ClearFreeMemory, self, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_Split(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", "count", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawListSplitter* self_p = (ImDrawListSplitter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ int a_count{};
+ BI_GET(1, a_count);
+ self_p->Split(a_draw_list, a_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawListSplitter_split(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_Split, self, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_Merge(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawListSplitter* self_p = (ImDrawListSplitter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ self_p->Merge(a_draw_list);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawListSplitter_merge(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_Merge, self, args, kw);
+}
+static PyObject* biv_ImDrawListSplitter_SetCurrentChannel(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", "channel_idx", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawListSplitter* self_p = (ImDrawListSplitter*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ int a_channel_idx{};
+ BI_GET(1, a_channel_idx);
+ self_p->SetCurrentChannel(a_draw_list, a_channel_idx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawListSplitter_set_current_channel(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawListSplitter_SetCurrentChannel, self, args, kw);
+}
+static PyObject* biv_ImDrawList_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "shared_data", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawListSharedData* a_shared_data = nullptr;
+ BI_GETP(0, a_shared_data);
+ return bi_owned(IM_NEW(ImDrawList)(a_shared_data));
+}
+static PyObject* bid_ImDrawList_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawList_PushClipRectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "clip_rect_min", "clip_rect_max", "intersect_with_current_clip_rect", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_clip_rect_min{};
+ BI_GET(0, a_clip_rect_min);
+ ImVec2 a_clip_rect_max{};
+ BI_GET(1, a_clip_rect_max);
+ bool a_intersect_with_current_clip_rect = false;
+ BI_GET(2, a_intersect_with_current_clip_rect);
+ self_p->PushClipRect(a_clip_rect_min, a_clip_rect_max, a_intersect_with_current_clip_rect);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_push_clip_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PushClipRectEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PushClipRectFullScreen(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->PushClipRectFullScreen();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_push_clip_rect_full_screen(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PushClipRectFullScreen, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PopClipRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->PopClipRect();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_pop_clip_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PopClipRect, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PushTexture(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ self_p->PushTexture(a_tex_ref);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_push_texture(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PushTexture, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PopTexture(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->PopTexture();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_pop_texture(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PopTexture, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PushDrawFlag(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "flags", "enabled", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawFlags a_flags{};
+ BI_GET(0, a_flags);
+ bool a_enabled{};
+ BI_GET(1, a_enabled);
+ self_p->PushDrawFlag(a_flags, a_enabled);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_push_draw_flag(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PushDrawFlag, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PopDrawFlag(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->PopDrawFlag();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_pop_draw_flag(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PopDrawFlag, self, args, kw);
+}
+static PyObject* biv_ImDrawList_GetClipRectMin(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImDrawList* self_p = (const ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetClipRectMin();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImDrawList_get_clip_rect_min(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_GetClipRectMin, self, args, kw);
+}
+static PyObject* biv_ImDrawList_GetClipRectMax(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImDrawList* self_p = (const ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetClipRectMax();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImDrawList_get_clip_rect_max(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_GetClipRectMax, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddLineEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "col", "thickness", "flags", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(3, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(4, a_flags);
+ self_p->AddLine(a_p1, a_p2, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_line(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddLineEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddLineHEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "min_x", "max_x", "y", "col", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_min_x{};
+ BI_GET(0, a_min_x);
+ float a_max_x{};
+ BI_GET(1, a_max_x);
+ float a_y{};
+ BI_GET(2, a_y);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddLineH(a_min_x, a_max_x, a_y, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_line_h(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddLineHEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddLineVEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "x", "min_y", "max_y", "col", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_x{};
+ BI_GET(0, a_x);
+ float a_min_y{};
+ BI_GET(1, a_min_y);
+ float a_max_y{};
+ BI_GET(2, a_max_y);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddLineV(a_x, a_min_y, a_max_y, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_line_v(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddLineVEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddRectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col", "rounding", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_rounding = 0.0f;
+ BI_GET(3, a_rounding);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddRect(a_p_min, a_p_max, a_col, a_rounding, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddRectEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddRectFilledEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col", "rounding", "flags", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_rounding = 0.0f;
+ BI_GET(3, a_rounding);
+ ImDrawFlags a_flags = 0;
+ BI_GET(4, a_flags);
+ self_p->AddRectFilled(a_p_min, a_p_max, a_col, a_rounding, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_rect_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddRectFilledEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddRectFilledMultiColor(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col_upr_left", "col_upr_right", "col_bot_right", "col_bot_left", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 6, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col_upr_left{};
+ BI_GET(2, a_col_upr_left);
+ ImU32 a_col_upr_right{};
+ BI_GET(3, a_col_upr_right);
+ ImU32 a_col_bot_right{};
+ BI_GET(4, a_col_bot_right);
+ ImU32 a_col_bot_left{};
+ BI_GET(5, a_col_bot_left);
+ self_p->AddRectFilledMultiColor(a_p_min, a_p_max, a_col_upr_left, a_col_upr_right, a_col_bot_right, a_col_bot_left);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_rect_filled_multi_color(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddRectFilledMultiColor, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddQuadEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "p4", "col", "thickness", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImVec2 a_p4{};
+ BI_GET(3, a_p4);
+ ImU32 a_col{};
+ BI_GET(4, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(5, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ self_p->AddQuad(a_p1, a_p2, a_p3, a_p4, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_quad(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddQuadEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddQuadFilled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "p4", "col", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImVec2 a_p4{};
+ BI_GET(3, a_p4);
+ ImU32 a_col{};
+ BI_GET(4, a_col);
+ self_p->AddQuadFilled(a_p1, a_p2, a_p3, a_p4, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_quad_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddQuadFilled, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddTriangleEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "col", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddTriangle(a_p1, a_p2, a_p3, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_triangle(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddTriangleEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddTriangleFilled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "col", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ self_p->AddTriangleFilled(a_p1, a_p2, a_p3, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_triangle_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddTriangleFilled, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddCircleEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "num_segments", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ int a_num_segments = 0;
+ BI_GET(3, a_num_segments);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddCircle(a_center, a_radius, a_col, a_num_segments, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_circle(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddCircleEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddCircleFilledEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "num_segments", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ int a_num_segments = 0;
+ BI_GET(3, a_num_segments);
+ self_p->AddCircleFilled(a_center, a_radius, a_col, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_circle_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddCircleFilledEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddNgonEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "num_segments", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ int a_num_segments{};
+ BI_GET(3, a_num_segments);
+ float a_thickness = 1.0f;
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(5, a_flags);
+ self_p->AddNgon(a_center, a_radius, a_col, a_num_segments, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_ngon(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddNgonEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddNgonFilled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "num_segments", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ int a_num_segments{};
+ BI_GET(3, a_num_segments);
+ self_p->AddNgonFilled(a_center, a_radius, a_col, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_ngon_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddNgonFilled, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddEllipseEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "rot", "num_segments", "thickness", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ ImVec2 a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_rot = 0.0f;
+ BI_GET(3, a_rot);
+ int a_num_segments = 0;
+ BI_GET(4, a_num_segments);
+ float a_thickness = 1.0f;
+ BI_GET(5, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ self_p->AddEllipse(a_center, a_radius, a_col, a_rot, a_num_segments, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_ellipse(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddEllipseEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddEllipseFilledEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "col", "rot", "num_segments", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ ImVec2 a_radius{};
+ BI_GET(1, a_radius);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_rot = 0.0f;
+ BI_GET(3, a_rot);
+ int a_num_segments = 0;
+ BI_GET(4, a_num_segments);
+ self_p->AddEllipseFilled(a_center, a_radius, a_col, a_rot, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_ellipse_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddEllipseFilledEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddTextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "col", "text_begin", "text_end", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ const char* a_text_begin{};
+ BI_GET(2, a_text_begin);
+ const char* a_text_end = NULL;
+ BI_GET(3, a_text_end);
+ self_p->AddText(a_pos, a_col, a_text_begin, a_text_end);
+ Py_RETURN_NONE;
+}
+static PyObject* biv_ImDrawList_AddTextFontPtrEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font", "font_size", "pos", "col", "text_begin", "text_end", "wrap_width", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImFont* a_font = nullptr;
+ BI_GETP(0, a_font);
+ float a_font_size{};
+ BI_GET(1, a_font_size);
+ ImVec2 a_pos{};
+ BI_GET(2, a_pos);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ const char* a_text_begin{};
+ BI_GET(4, a_text_begin);
+ const char* a_text_end = NULL;
+ BI_GET(5, a_text_end);
+ float a_wrap_width = 0.0f;
+ BI_GET(6, a_wrap_width);
+ const ImVec4* a_cpu_fine_clip_rect = NULL;
+ self_p->AddText(a_font, a_font_size, a_pos, a_col, a_text_begin, a_text_end, a_wrap_width, a_cpu_fine_clip_rect);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ static const BiVariant v[] = { biv_ImDrawList_AddTextEx, biv_ImDrawList_AddTextFontPtrEx };
+ return bi_dispatch(self, args, kw, v, 2);
+}
+static PyObject* bid1_ImDrawList_AddTextFontPtrEx(PyObject* self, PyObject* args, PyObject* kw) { return bi_call1(biv_ImDrawList_AddTextFontPtrEx, self, args, kw); }
+static PyObject* biv_ImDrawList_AddBezierCubicEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "p4", "col", "thickness", "num_segments", "flags", nullptr };
+ PyObject* o[8] = {};
+ if (!bi_parse(args, kw, kwl, 8, 6, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImVec2 a_p4{};
+ BI_GET(3, a_p4);
+ ImU32 a_col{};
+ BI_GET(4, a_col);
+ float a_thickness{};
+ BI_GET(5, a_thickness);
+ int a_num_segments = 0;
+ BI_GET(6, a_num_segments);
+ ImDrawFlags a_flags = 0;
+ BI_GET(7, a_flags);
+ self_p->AddBezierCubic(a_p1, a_p2, a_p3, a_p4, a_col, a_thickness, a_num_segments, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_bezier_cubic(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddBezierCubicEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddBezierQuadraticEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "p3", "col", "thickness", "num_segments", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(2, a_p3);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ float a_thickness{};
+ BI_GET(4, a_thickness);
+ int a_num_segments = 0;
+ BI_GET(5, a_num_segments);
+ ImDrawFlags a_flags = 0;
+ BI_GET(6, a_flags);
+ self_p->AddBezierQuadratic(a_p1, a_p2, a_p3, a_col, a_thickness, a_num_segments, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_bezier_quadratic(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddBezierQuadraticEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddPolylineEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "points", "col", "thickness", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ BiSeq<ImVec2> a_points;
+ BI_GET(0, a_points);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ float a_thickness{};
+ BI_GET(2, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ self_p->AddPolyline(a_points.data(), (int)a_points.size(), a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_polyline(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddPolylineEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddConvexPolyFilledEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "points", "col", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ BiSeq<ImVec2> a_points;
+ BI_GET(0, a_points);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ ImDrawFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ self_p->AddConvexPolyFilled(a_points.data(), (int)a_points.size(), a_col, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_convex_poly_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddConvexPolyFilledEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddConcavePolyFilled(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "points", "col", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ BiSeq<ImVec2> a_points;
+ BI_GET(0, a_points);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ self_p->AddConcavePolyFilled(a_points.data(), (int)a_points.size(), a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_concave_poly_filled(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddConcavePolyFilled, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddImageEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", "p_min", "p_max", "uv_min", "uv_max", "col", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ ImVec2 a_p_min{};
+ BI_GET(1, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(2, a_p_max);
+ ImVec2 a_uv_min = ImVec2(0, 0);
+ BI_GET(3, a_uv_min);
+ ImVec2 a_uv_max = ImVec2(1, 1);
+ BI_GET(4, a_uv_max);
+ ImU32 a_col = IM_COL32_WHITE;
+ BI_GET(5, a_col);
+ self_p->AddImage(a_tex_ref, a_p_min, a_p_max, a_uv_min, a_uv_max, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_image(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddImageEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddImageQuadEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", "p1", "p2", "p3", "p4", "uv1", "uv2", "uv3", "uv4", "col", nullptr };
+ PyObject* o[10] = {};
+ if (!bi_parse(args, kw, kwl, 10, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ ImVec2 a_p1{};
+ BI_GET(1, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(2, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(3, a_p3);
+ ImVec2 a_p4{};
+ BI_GET(4, a_p4);
+ ImVec2 a_uv1 = ImVec2(0, 0);
+ BI_GET(5, a_uv1);
+ ImVec2 a_uv2 = ImVec2(1, 0);
+ BI_GET(6, a_uv2);
+ ImVec2 a_uv3 = ImVec2(1, 1);
+ BI_GET(7, a_uv3);
+ ImVec2 a_uv4 = ImVec2(0, 1);
+ BI_GET(8, a_uv4);
+ ImU32 a_col = IM_COL32_WHITE;
+ BI_GET(9, a_col);
+ self_p->AddImageQuad(a_tex_ref, a_p1, a_p2, a_p3, a_p4, a_uv1, a_uv2, a_uv3, a_uv4, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_image_quad(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddImageQuadEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddImageRoundedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", "p_min", "p_max", "uv_min", "uv_max", "col", "rounding", "flags", nullptr };
+ PyObject* o[8] = {};
+ if (!bi_parse(args, kw, kwl, 8, 7, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ ImVec2 a_p_min{};
+ BI_GET(1, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(2, a_p_max);
+ ImVec2 a_uv_min{};
+ BI_GET(3, a_uv_min);
+ ImVec2 a_uv_max{};
+ BI_GET(4, a_uv_max);
+ ImU32 a_col{};
+ BI_GET(5, a_col);
+ float a_rounding{};
+ BI_GET(6, a_rounding);
+ ImDrawFlags a_flags = 0;
+ BI_GET(7, a_flags);
+ self_p->AddImageRounded(a_tex_ref, a_p_min, a_p_max, a_uv_min, a_uv_max, a_col, a_rounding, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_image_rounded(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddImageRoundedEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathClear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->PathClear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathClear, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathLineTo(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ self_p->PathLineTo(a_pos);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_line_to(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathLineTo, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathLineToMergeDuplicate(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ self_p->PathLineToMergeDuplicate(a_pos);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_line_to_merge_duplicate(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathLineToMergeDuplicate, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathFillConvexEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", "flags", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImU32 a_col{};
+ BI_GET(0, a_col);
+ ImDrawFlags a_flags = 0;
+ BI_GET(1, a_flags);
+ self_p->PathFillConvex(a_col, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_fill_convex(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathFillConvexEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathFillConcave(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImU32 a_col{};
+ BI_GET(0, a_col);
+ self_p->PathFillConcave(a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_fill_concave(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathFillConcave, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathStrokeEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "col", "thickness", "flags", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImU32 a_col{};
+ BI_GET(0, a_col);
+ float a_thickness = 1.0f;
+ BI_GET(1, a_thickness);
+ ImDrawFlags a_flags = 0;
+ BI_GET(2, a_flags);
+ self_p->PathStroke(a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_stroke(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathStrokeEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathArcToEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "a_min", "a_max", "num_segments", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ float a_a_min{};
+ BI_GET(2, a_a_min);
+ float a_a_max{};
+ BI_GET(3, a_a_max);
+ int a_num_segments = 0;
+ BI_GET(4, a_num_segments);
+ self_p->PathArcTo(a_center, a_radius, a_a_min, a_a_max, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_arc_to(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathArcToEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathArcToFast(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "a_min_of_12", "a_max_of_12", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 4, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ int a_a_min_of_12{};
+ BI_GET(2, a_a_min_of_12);
+ int a_a_max_of_12{};
+ BI_GET(3, a_a_max_of_12);
+ self_p->PathArcToFast(a_center, a_radius, a_a_min_of_12, a_a_max_of_12);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_arc_to_fast(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathArcToFast, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathEllipticalArcToEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "rot", "a_min", "a_max", "num_segments", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ ImVec2 a_radius{};
+ BI_GET(1, a_radius);
+ float a_rot{};
+ BI_GET(2, a_rot);
+ float a_a_min{};
+ BI_GET(3, a_a_min);
+ float a_a_max{};
+ BI_GET(4, a_a_max);
+ int a_num_segments = 0;
+ BI_GET(5, a_num_segments);
+ self_p->PathEllipticalArcTo(a_center, a_radius, a_rot, a_a_min, a_a_max, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_elliptical_arc_to(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathEllipticalArcToEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathBezierCubicCurveToEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p2", "p3", "p4", "num_segments", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p2{};
+ BI_GET(0, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(1, a_p3);
+ ImVec2 a_p4{};
+ BI_GET(2, a_p4);
+ int a_num_segments = 0;
+ BI_GET(3, a_num_segments);
+ self_p->PathBezierCubicCurveTo(a_p2, a_p3, a_p4, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_bezier_cubic_curve_to(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathBezierCubicCurveToEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathBezierQuadraticCurveToEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p2", "p3", "num_segments", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p2{};
+ BI_GET(0, a_p2);
+ ImVec2 a_p3{};
+ BI_GET(1, a_p3);
+ int a_num_segments = 0;
+ BI_GET(2, a_num_segments);
+ self_p->PathBezierQuadraticCurveTo(a_p2, a_p3, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_bezier_quadratic_curve_to(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathBezierQuadraticCurveToEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PathRectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "rect_min", "rect_max", "rounding", "flags", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_rect_min{};
+ BI_GET(0, a_rect_min);
+ ImVec2 a_rect_max{};
+ BI_GET(1, a_rect_max);
+ float a_rounding = 0.0f;
+ BI_GET(2, a_rounding);
+ ImDrawFlags a_flags = 0;
+ BI_GET(3, a_flags);
+ self_p->PathRect(a_rect_min, a_rect_max, a_rounding, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_path_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PathRectEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_AddDrawCmd(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->AddDrawCmd();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_add_draw_cmd(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_AddDrawCmd, self, args, kw);
+}
+static PyObject* biv_ImDrawList_CloneOutput(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImDrawList* self_p = (const ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->CloneOutput();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImDrawList_clone_output(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_CloneOutput, self, args, kw);
+}
+static PyObject* biv_ImDrawList_ChannelsSplit(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "count", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_count{};
+ BI_GET(0, a_count);
+ self_p->ChannelsSplit(a_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_channels_split(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_ChannelsSplit, self, args, kw);
+}
+static PyObject* biv_ImDrawList_ChannelsMerge(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ChannelsMerge();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_channels_merge(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_ChannelsMerge, self, args, kw);
+}
+static PyObject* biv_ImDrawList_ChannelsSetCurrent(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_n{};
+ BI_GET(0, a_n);
+ self_p->ChannelsSetCurrent(a_n);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_channels_set_current(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_ChannelsSetCurrent, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimReserve(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx_count", "vtx_count", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_idx_count{};
+ BI_GET(0, a_idx_count);
+ int a_vtx_count{};
+ BI_GET(1, a_vtx_count);
+ self_p->PrimReserve(a_idx_count, a_vtx_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_reserve(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimReserve, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimUnreserve(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx_count", "vtx_count", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_idx_count{};
+ BI_GET(0, a_idx_count);
+ int a_vtx_count{};
+ BI_GET(1, a_vtx_count);
+ self_p->PrimUnreserve(a_idx_count, a_vtx_count);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_unreserve(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimUnreserve, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "a", "b", "col", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_a{};
+ BI_GET(0, a_a);
+ ImVec2 a_b{};
+ BI_GET(1, a_b);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ self_p->PrimRect(a_a, a_b, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimRect, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimRectUV(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "a", "b", "uv_a", "uv_b", "col", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_a{};
+ BI_GET(0, a_a);
+ ImVec2 a_b{};
+ BI_GET(1, a_b);
+ ImVec2 a_uv_a{};
+ BI_GET(2, a_uv_a);
+ ImVec2 a_uv_b{};
+ BI_GET(3, a_uv_b);
+ ImU32 a_col{};
+ BI_GET(4, a_col);
+ self_p->PrimRectUV(a_a, a_b, a_uv_a, a_uv_b, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_rect_uv(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimRectUV, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimQuadUV(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "a", "b", "c", "d", "uv_a", "uv_b", "uv_c", "uv_d", "col", nullptr };
+ PyObject* o[9] = {};
+ if (!bi_parse(args, kw, kwl, 9, 9, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_a{};
+ BI_GET(0, a_a);
+ ImVec2 a_b{};
+ BI_GET(1, a_b);
+ ImVec2 a_c{};
+ BI_GET(2, a_c);
+ ImVec2 a_d{};
+ BI_GET(3, a_d);
+ ImVec2 a_uv_a{};
+ BI_GET(4, a_uv_a);
+ ImVec2 a_uv_b{};
+ BI_GET(5, a_uv_b);
+ ImVec2 a_uv_c{};
+ BI_GET(6, a_uv_c);
+ ImVec2 a_uv_d{};
+ BI_GET(7, a_uv_d);
+ ImU32 a_col{};
+ BI_GET(8, a_col);
+ self_p->PrimQuadUV(a_a, a_b, a_c, a_d, a_uv_a, a_uv_b, a_uv_c, a_uv_d, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_quad_uv(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimQuadUV, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimWriteVtx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "uv", "col", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImVec2 a_uv{};
+ BI_GET(1, a_uv);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ self_p->PrimWriteVtx(a_pos, a_uv, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_write_vtx(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimWriteVtx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimWriteIdx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "idx", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawIdx a_idx{};
+ BI_GET(0, a_idx);
+ self_p->PrimWriteIdx(a_idx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_write_idx(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimWriteIdx, self, args, kw);
+}
+static PyObject* biv_ImDrawList_PrimVtx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pos", "uv", "col", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_pos{};
+ BI_GET(0, a_pos);
+ ImVec2 a_uv{};
+ BI_GET(1, a_uv);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ self_p->PrimVtx(a_pos, a_uv, a_col);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList_prim_vtx(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList_PrimVtx, self, args, kw);
+}
+static PyObject* biv_ImDrawList__SetDrawListSharedData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "data", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawListSharedData* a_data = nullptr;
+ BI_GETP(0, a_data);
+ self_p->_SetDrawListSharedData(a_data);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__set_draw_list_shared_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__SetDrawListSharedData, self, args, kw);
+}
+static PyObject* biv_ImDrawList__ResetForNewFrame(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_ResetForNewFrame();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__reset_for_new_frame(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__ResetForNewFrame, self, args, kw);
+}
+static PyObject* biv_ImDrawList__SetPixelDensity(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "pixel_density", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_pixel_density{};
+ BI_GET(0, a_pixel_density);
+ self_p->_SetPixelDensity(a_pixel_density);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__set_pixel_density(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__SetPixelDensity, self, args, kw);
+}
+static PyObject* biv_ImDrawList__ClearFreeMemory(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_ClearFreeMemory();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__clear_free_memory(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__ClearFreeMemory, self, args, kw);
+}
+static PyObject* biv_ImDrawList__PopUnusedDrawCmd(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_PopUnusedDrawCmd();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__pop_unused_draw_cmd(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__PopUnusedDrawCmd, self, args, kw);
+}
+static PyObject* biv_ImDrawList__TryMergeDrawCmds(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_TryMergeDrawCmds();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__try_merge_draw_cmds(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__TryMergeDrawCmds, self, args, kw);
+}
+static PyObject* biv_ImDrawList__OnChangedClipRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_OnChangedClipRect();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__on_changed_clip_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__OnChangedClipRect, self, args, kw);
+}
+static PyObject* biv_ImDrawList__OnChangedTexture(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_OnChangedTexture();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__on_changed_texture(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__OnChangedTexture, self, args, kw);
+}
+static PyObject* biv_ImDrawList__OnChangedVtxOffset(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->_OnChangedVtxOffset();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__on_changed_vtx_offset(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__OnChangedVtxOffset, self, args, kw);
+}
+static PyObject* biv_ImDrawList__SetTexture(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_ref", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureRef a_tex_ref{};
+ BI_GET(0, a_tex_ref);
+ self_p->_SetTexture(a_tex_ref);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__set_texture(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__SetTexture, self, args, kw);
+}
+static PyObject* biv_ImDrawList__CalcCircleAutoSegmentCount(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "radius", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const ImDrawList* self_p = (const ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_radius{};
+ BI_GET(0, a_radius);
+ auto r = self_p->_CalcCircleAutoSegmentCount(a_radius);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImDrawList__calc_circle_auto_segment_count(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__CalcCircleAutoSegmentCount, self, args, kw);
+}
+static PyObject* biv_ImDrawList__PathArcToFastEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "a_min_sample", "a_max_sample", "a_step", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ int a_a_min_sample{};
+ BI_GET(2, a_a_min_sample);
+ int a_a_max_sample{};
+ BI_GET(3, a_a_max_sample);
+ int a_a_step{};
+ BI_GET(4, a_a_step);
+ self_p->_PathArcToFastEx(a_center, a_radius, a_a_min_sample, a_a_max_sample, a_a_step);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__path_arc_to_fast_ex(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__PathArcToFastEx, self, args, kw);
+}
+static PyObject* biv_ImDrawList__PathArcToN(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "center", "radius", "a_min", "a_max", "num_segments", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_center{};
+ BI_GET(0, a_center);
+ float a_radius{};
+ BI_GET(1, a_radius);
+ float a_a_min{};
+ BI_GET(2, a_a_min);
+ float a_a_max{};
+ BI_GET(3, a_a_max);
+ int a_num_segments{};
+ BI_GET(4, a_num_segments);
+ self_p->_PathArcToN(a_center, a_radius, a_a_min, a_a_max, a_num_segments);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__path_arc_to_n(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__PathArcToN, self, args, kw);
+}
+static PyObject* biv_ImDrawList__AddRectFilledBaked(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col", "r", "tex_uvs", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 6, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_r{};
+ BI_GET(3, a_r);
+ ImVec4 a_tex_uvs{};
+ BI_GET(4, a_tex_uvs);
+ ImDrawFlags a_flags{};
+ BI_GET(5, a_flags);
+ self_p->_AddRectFilledBaked(a_p_min, a_p_max, a_col, a_r, a_tex_uvs, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__add_rect_filled_baked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__AddRectFilledBaked, self, args, kw);
+}
+static PyObject* biv_ImDrawList__AddRectBaked(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col", "r", "t", "tex_uvs", "flags", nullptr };
+ PyObject* o[7] = {};
+ if (!bi_parse(args, kw, kwl, 7, 7, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_r{};
+ BI_GET(3, a_r);
+ float a_t{};
+ BI_GET(4, a_t);
+ ImVec4 a_tex_uvs{};
+ BI_GET(5, a_tex_uvs);
+ ImDrawFlags a_flags{};
+ BI_GET(6, a_flags);
+ self_p->_AddRectBaked(a_p_min, a_p_max, a_col, a_r, a_t, a_tex_uvs, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__add_rect_baked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__AddRectBaked, self, args, kw);
+}
+static PyObject* biv_ImDrawList__AddLine(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p1", "p2", "col", "thickness", "flags", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p1{};
+ BI_GET(0, a_p1);
+ ImVec2 a_p2{};
+ BI_GET(1, a_p2);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_thickness{};
+ BI_GET(3, a_thickness);
+ ImDrawFlags a_flags{};
+ BI_GET(4, a_flags);
+ self_p->_AddLine(a_p1, a_p2, a_col, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__add_line(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__AddLine, self, args, kw);
+}
+static PyObject* biv_ImDrawList__AddRectTinyRounding(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "p_min", "p_max", "col", "rounding", "thickness", "flags", nullptr };
+ PyObject* o[6] = {};
+ if (!bi_parse(args, kw, kwl, 6, 6, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_p_min{};
+ BI_GET(0, a_p_min);
+ ImVec2 a_p_max{};
+ BI_GET(1, a_p_max);
+ ImU32 a_col{};
+ BI_GET(2, a_col);
+ float a_rounding{};
+ BI_GET(3, a_rounding);
+ float a_thickness{};
+ BI_GET(4, a_thickness);
+ ImDrawFlags a_flags{};
+ BI_GET(5, a_flags);
+ self_p->_AddRectTinyRounding(a_p_min, a_p_max, a_col, a_rounding, a_thickness, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__add_rect_tiny_rounding(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__AddRectTinyRounding, self, args, kw);
+}
+static PyObject* biv_ImDrawList__SelectLineTexture(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "screen_thickness", "out_uv0", "out_uv1", "out_fringe", "flags", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_screen_thickness{};
+ BI_GET(0, a_screen_thickness);
+ ImVec2 a_out_uv0_v{}; ImVec2* a_out_uv0 = nullptr;
+ if (o[1] && o[1] != Py_None) { if (!bi_from(o[1], a_out_uv0_v)) BI_FAIL; a_out_uv0 = &a_out_uv0_v; }
+ ImVec2 a_out_uv1_v{}; ImVec2* a_out_uv1 = nullptr;
+ if (o[2] && o[2] != Py_None) { if (!bi_from(o[2], a_out_uv1_v)) BI_FAIL; a_out_uv1 = &a_out_uv1_v; }
+ float a_out_fringe_v{}; float* a_out_fringe = nullptr;
+ if (o[3] && o[3] != Py_None) { if (!bi_from(o[3], a_out_fringe_v)) BI_FAIL; a_out_fringe = &a_out_fringe_v; }
+ ImDrawFlags a_flags{};
+ BI_GET(4, a_flags);
+ self_p->_SelectLineTexture(a_screen_thickness, a_out_uv0, a_out_uv1, a_out_fringe, a_flags);
+ return bi_result({ bi_opt(a_out_uv0), bi_opt(a_out_uv1), bi_opt(a_out_fringe) });
+}
+static PyObject* bid_ImDrawList__select_line_texture(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__SelectLineTexture, self, args, kw);
+}
+static PyObject* biv_ImDrawList__CalculateCenterBiasedOffset(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "thickness", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_thickness{};
+ BI_GET(0, a_thickness);
+ auto r = self_p->_CalculateCenterBiasedOffset(a_thickness);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImDrawList__calculate_center_biased_offset(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__CalculateCenterBiasedOffset, self, args, kw);
+}
+static PyObject* biv_ImDrawList__AddPolyline(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "points", "col", "thickness", "flags", "max_inner_offset", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImDrawList* self_p = (ImDrawList*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ BiSeq<ImVec2> a_points;
+ BI_GET(0, a_points);
+ ImU32 a_col{};
+ BI_GET(1, a_col);
+ float a_thickness{};
+ BI_GET(2, a_thickness);
+ ImDrawFlags a_flags{};
+ BI_GET(3, a_flags);
+ float a_max_inner_offset{};
+ BI_GET(4, a_max_inner_offset);
+ self_p->_AddPolyline(a_points.data(), (int)a_points.size(), a_col, a_thickness, a_flags, a_max_inner_offset);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawList__add_polyline(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawList__AddPolyline, self, args, kw);
+}
+static PyObject* biv_ImDrawData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImDrawData)());
+}
+static PyObject* bid_ImDrawData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawData_New, nullptr, args, kw);
+}
+static PyObject* biv_ImDrawData_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawData* self_p = (ImDrawData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawData_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawData_Clear, self, args, kw);
+}
+static PyObject* biv_ImDrawData_AddDrawList(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawData* self_p = (ImDrawData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ self_p->AddDrawList(a_draw_list);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawData_add_draw_list(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawData_AddDrawList, self, args, kw);
+}
+static PyObject* biv_ImDrawData_DeIndexAllBuffers(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImDrawData* self_p = (ImDrawData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->DeIndexAllBuffers();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawData_de_index_all_buffers(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawData_DeIndexAllBuffers, self, args, kw);
+}
+static PyObject* biv_ImDrawData_ScaleClipRects(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "fb_scale", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImDrawData* self_p = (ImDrawData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImVec2 a_fb_scale{};
+ BI_GET(0, a_fb_scale);
+ self_p->ScaleClipRects(a_fb_scale);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImDrawData_scale_clip_rects(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImDrawData_ScaleClipRects, self, args, kw);
+}
+static PyObject* biv_ImTextureRect_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImTextureRect)());
+}
+static PyObject* bid_ImTextureRect_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureRect_New, nullptr, args, kw);
+}
+static PyObject* biv_ImTextureData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImTextureData)());
+}
+static PyObject* bid_ImTextureData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_New, nullptr, args, kw);
+}
+static PyObject* biv_ImTextureData_Create(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "format", "w", "h", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureFormat a_format{};
+ BI_GET(0, a_format);
+ int a_w{};
+ BI_GET(1, a_w);
+ int a_h{};
+ BI_GET(2, a_h);
+ self_p->Create(a_format, a_w, a_h);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImTextureData_create(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_Create, self, args, kw);
+}
+static PyObject* biv_ImTextureData_DestroyPixels(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->DestroyPixels();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImTextureData_destroy_pixels(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_DestroyPixels, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetPixels(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetPixels();
+ return bi_result({ bi_voidptr((const void*)r) });
+}
+static PyObject* bid_ImTextureData_get_pixels(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetPixels, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetPixelsAt(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "x", "y", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_x{};
+ BI_GET(0, a_x);
+ int a_y{};
+ BI_GET(1, a_y);
+ auto r = self_p->GetPixelsAt(a_x, a_y);
+ return bi_result({ bi_voidptr((const void*)r) });
+}
+static PyObject* bid_ImTextureData_get_pixels_at(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetPixelsAt, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetSizeInBytes(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImTextureData* self_p = (const ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetSizeInBytes();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImTextureData_get_size_in_bytes(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetSizeInBytes, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetPitch(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImTextureData* self_p = (const ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetPitch();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImTextureData_get_pitch(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetPitch, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetTexRef(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetTexRef();
+ return bi_result({ bi_copy(r) });
+}
+static PyObject* bid_ImTextureData_get_tex_ref(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetTexRef, self, args, kw);
+}
+static PyObject* biv_ImTextureData_GetTexID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImTextureData* self_p = (const ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetTexID();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImTextureData_get_tex_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_GetTexID, self, args, kw);
+}
+static PyObject* biv_ImTextureData_SetTexID(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "tex_id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureID a_tex_id{};
+ BI_GET(0, a_tex_id);
+ self_p->SetTexID(a_tex_id);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImTextureData_set_tex_id(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_SetTexID, self, args, kw);
+}
+static PyObject* biv_ImTextureData_SetStatus(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "status", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImTextureData* self_p = (ImTextureData*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImTextureStatus a_status{};
+ BI_GET(0, a_status);
+ self_p->SetStatus(a_status);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImTextureData_set_status(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImTextureData_SetStatus, self, args, kw);
+}
+static PyObject* biv_ImFontConfig_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontConfig)());
+}
+static PyObject* bid_ImFontConfig_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontConfig_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontGlyph_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontGlyph)());
+}
+static PyObject* bid_ImFontGlyph_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyph_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontGlyphRangesBuilder)());
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontGlyphRangesBuilder* self_p = (ImFontGlyphRangesBuilder*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_Clear, self, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_GetBit(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ const ImFontGlyphRangesBuilder* self_p = (const ImFontGlyphRangesBuilder*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ size_t a_n{};
+ BI_GET(0, a_n);
+ auto r = self_p->GetBit(a_n);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_get_bit(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_GetBit, self, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_SetBit(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "n", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontGlyphRangesBuilder* self_p = (ImFontGlyphRangesBuilder*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ size_t a_n{};
+ BI_GET(0, a_n);
+ self_p->SetBit(a_n);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_set_bit(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_SetBit, self, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_AddChar(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontGlyphRangesBuilder* self_p = (ImFontGlyphRangesBuilder*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ self_p->AddChar(a_c);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_add_char(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_AddChar, self, args, kw);
+}
+static PyObject* biv_ImFontGlyphRangesBuilder_AddTextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "text", "text_end", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImFontGlyphRangesBuilder* self_p = (ImFontGlyphRangesBuilder*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_text{};
+ BI_GET(0, a_text);
+ const char* a_text_end = NULL;
+ BI_GET(1, a_text_end);
+ self_p->AddText(a_text, a_text_end);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontGlyphRangesBuilder_add_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontGlyphRangesBuilder_AddTextEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlasRect_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontAtlasRect)());
+}
+static PyObject* bid_ImFontAtlasRect_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlasRect_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontAtlas_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontAtlas)());
+}
+static PyObject* bid_ImFontAtlas_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_cfg", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const ImFontConfig* a_font_cfg = nullptr;
+ BI_GETP(0, a_font_cfg);
+ auto r = self_p->AddFont(a_font_cfg);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFont, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFontDefaultEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_cfg", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const ImFontConfig* a_font_cfg = NULL;
+ BI_GETP(0, a_font_cfg);
+ auto r = self_p->AddFontDefault(a_font_cfg);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font_default(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFontDefaultEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFontDefaultVectorEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_cfg", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const ImFontConfig* a_font_cfg = NULL;
+ BI_GETP(0, a_font_cfg);
+ auto r = self_p->AddFontDefaultVector(a_font_cfg);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font_default_vector(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFontDefaultVectorEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFontDefaultBitmapEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_cfg", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 0, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const ImFontConfig* a_font_cfg = NULL;
+ BI_GETP(0, a_font_cfg);
+ auto r = self_p->AddFontDefaultBitmap(a_font_cfg);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font_default_bitmap(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFontDefaultBitmapEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFontFromFileTTFEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "filename", "size_pixels", "font_cfg", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_filename{};
+ BI_GET(0, a_filename);
+ float a_size_pixels = 0.0f;
+ BI_GET(1, a_size_pixels);
+ const ImFontConfig* a_font_cfg = NULL;
+ BI_GETP(2, a_font_cfg);
+ const ImWchar* a_glyph_ranges = NULL;
+ auto r = self_p->AddFontFromFileTTF(a_filename, a_size_pixels, a_font_cfg, a_glyph_ranges);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font_from_file_ttf(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFontFromFileTTFEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "compressed_font_data_base85", "size_pixels", "font_cfg", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const char* a_compressed_font_data_base85{};
+ BI_GET(0, a_compressed_font_data_base85);
+ float a_size_pixels = 0.0f;
+ BI_GET(1, a_size_pixels);
+ const ImFontConfig* a_font_cfg = NULL;
+ BI_GETP(2, a_font_cfg);
+ const ImWchar* a_glyph_ranges = NULL;
+ auto r = self_p->AddFontFromMemoryCompressedBase85TTF(a_compressed_font_data_base85, a_size_pixels, a_font_cfg, a_glyph_ranges);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_add_font_from_memory_compressed_base85_ttf(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_RemoveFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImFont* a_font = nullptr;
+ BI_GETP(0, a_font);
+ self_p->RemoveFont(a_font);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_remove_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_RemoveFont, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_CompactCache(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->CompactCache();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_compact_cache(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_CompactCache, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_SetFontLoader(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_loader", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ const ImFontLoader* a_font_loader = nullptr;
+ BI_GETP(0, a_font_loader);
+ self_p->SetFontLoader(a_font_loader);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_set_font_loader(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_SetFontLoader, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_Clear(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->Clear();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_clear(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_Clear, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_ClearFonts(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearFonts();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_clear_fonts(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_ClearFonts, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_ClearInputData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearInputData();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_clear_input_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_ClearInputData, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_ClearTexData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearTexData();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_clear_tex_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_ClearTexData, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_GetGlyphRangesDefault(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetGlyphRangesDefault();
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontAtlas_get_glyph_ranges_default(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_GetGlyphRangesDefault, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_AddCustomRectEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "width", "height", "out_r", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 2, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ int a_width{};
+ BI_GET(0, a_width);
+ int a_height{};
+ BI_GET(1, a_height);
+ ImFontAtlasRect* a_out_r = NULL;
+ BI_GETP(2, a_out_r);
+ auto r = self_p->AddCustomRect(a_width, a_height, a_out_r);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFontAtlas_add_custom_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_AddCustomRectEx, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_RemoveCustomRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontAtlas* self_p = (ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImFontAtlasRectId a_id{};
+ BI_GET(0, a_id);
+ self_p->RemoveCustomRect(a_id);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontAtlas_remove_custom_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_RemoveCustomRect, self, args, kw);
+}
+static PyObject* biv_ImFontAtlas_GetCustomRect(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "id", "out_r", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ const ImFontAtlas* self_p = (const ImFontAtlas*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImFontAtlasRectId a_id{};
+ BI_GET(0, a_id);
+ ImFontAtlasRect* a_out_r = nullptr;
+ BI_GETP(1, a_out_r);
+ auto r = self_p->GetCustomRect(a_id, a_out_r);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFontAtlas_get_custom_rect(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontAtlas_GetCustomRect, self, args, kw);
+}
+static PyObject* biv_ImFontBaked_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFontBaked)());
+}
+static PyObject* bid_ImFontBaked_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFontBaked_ClearOutputData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFontBaked* self_p = (ImFontBaked*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearOutputData();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFontBaked_clear_output_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_ClearOutputData, self, args, kw);
+}
+static PyObject* biv_ImFontBaked_FindGlyph(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontBaked* self_p = (ImFontBaked*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ auto r = self_p->FindGlyph(a_c);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontBaked_find_glyph(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_FindGlyph, self, args, kw);
+}
+static PyObject* biv_ImFontBaked_FindGlyphNoFallback(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontBaked* self_p = (ImFontBaked*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ auto r = self_p->FindGlyphNoFallback(a_c);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFontBaked_find_glyph_no_fallback(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_FindGlyphNoFallback, self, args, kw);
+}
+static PyObject* biv_ImFontBaked_GetCharAdvance(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontBaked* self_p = (ImFontBaked*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ auto r = self_p->GetCharAdvance(a_c);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFontBaked_get_char_advance(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_GetCharAdvance, self, args, kw);
+}
+static PyObject* biv_ImFontBaked_IsGlyphLoaded(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFontBaked* self_p = (ImFontBaked*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ auto r = self_p->IsGlyphLoaded(a_c);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFontBaked_is_glyph_loaded(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFontBaked_IsGlyphLoaded, self, args, kw);
+}
+static PyObject* biv_ImFont_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImFont)());
+}
+static PyObject* bid_ImFont_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_New, nullptr, args, kw);
+}
+static PyObject* biv_ImFont_IsGlyphInFont(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c", nullptr };
+ PyObject* o[1] = {};
+ if (!bi_parse(args, kw, kwl, 1, 1, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_c{};
+ BI_GET(0, a_c);
+ auto r = self_p->IsGlyphInFont(a_c);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFont_is_glyph_in_font(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_IsGlyphInFont, self, args, kw);
+}
+static PyObject* biv_ImFont_IsLoaded(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImFont* self_p = (const ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->IsLoaded();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFont_is_loaded(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_IsLoaded, self, args, kw);
+}
+static PyObject* biv_ImFont_GetDebugName(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImFont* self_p = (const ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetDebugName();
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImFont_get_debug_name(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_GetDebugName, self, args, kw);
+}
+static PyObject* biv_ImFont_GetFontBakedEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "font_size", "density", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 1, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_font_size{};
+ BI_GET(0, a_font_size);
+ float a_density = - 1.0f;
+ BI_GET(1, a_density);
+ auto r = self_p->GetFontBaked(a_font_size, a_density);
+ return bi_result({ bi_ptr_result(r) });
+}
+static PyObject* bid_ImFont_get_font_baked(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_GetFontBakedEx, self, args, kw);
+}
+static PyObject* biv_ImFont_CalcTextSizeAEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", "max_width", "wrap_width", "text_begin", "text_end", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 4, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_size{};
+ BI_GET(0, a_size);
+ float a_max_width{};
+ BI_GET(1, a_max_width);
+ float a_wrap_width{};
+ BI_GET(2, a_wrap_width);
+ const char* a_text_begin{};
+ BI_GET(3, a_text_begin);
+ const char* a_text_end = NULL;
+ BI_GET(4, a_text_end);
+ const char** a_out_remaining = NULL;
+ auto r = self_p->CalcTextSizeA(a_size, a_max_width, a_wrap_width, a_text_begin, a_text_end, a_out_remaining);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFont_calc_text_size_a(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_CalcTextSizeAEx, self, args, kw);
+}
+static PyObject* biv_ImFont_CalcWordWrapPosition(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "size", "text", "text_end", "wrap_width", nullptr };
+ PyObject* o[4] = {};
+ if (!bi_parse(args, kw, kwl, 4, 4, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ float a_size{};
+ BI_GET(0, a_size);
+ const char* a_text{};
+ BI_GET(1, a_text);
+ const char* a_text_end{};
+ BI_GET(2, a_text_end);
+ float a_wrap_width{};
+ BI_GET(3, a_wrap_width);
+ auto r = self_p->CalcWordWrapPosition(a_size, a_text, a_text_end, a_wrap_width);
+ return bi_result({ bi_to((const char*)r) });
+}
+static PyObject* bid_ImFont_calc_word_wrap_position(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_CalcWordWrapPosition, self, args, kw);
+}
+static PyObject* biv_ImFont_RenderCharEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", "size", "pos", "col", "c", nullptr };
+ PyObject* o[5] = {};
+ if (!bi_parse(args, kw, kwl, 5, 5, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ float a_size{};
+ BI_GET(1, a_size);
+ ImVec2 a_pos{};
+ BI_GET(2, a_pos);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ ImWchar a_c{};
+ BI_GET(4, a_c);
+ const ImVec4* a_cpu_fine_clip = NULL;
+ self_p->RenderChar(a_draw_list, a_size, a_pos, a_col, a_c, a_cpu_fine_clip);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFont_render_char(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_RenderCharEx, self, args, kw);
+}
+static PyObject* biv_ImFont_RenderTextEx(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "draw_list", "size", "pos", "col", "clip_rect", "text_begin", "text_end", "wrap_width", "flags", nullptr };
+ PyObject* o[9] = {};
+ if (!bi_parse(args, kw, kwl, 9, 7, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImDrawList* a_draw_list = nullptr;
+ BI_GETP(0, a_draw_list);
+ float a_size{};
+ BI_GET(1, a_size);
+ ImVec2 a_pos{};
+ BI_GET(2, a_pos);
+ ImU32 a_col{};
+ BI_GET(3, a_col);
+ ImVec4 a_clip_rect{};
+ BI_GET(4, a_clip_rect);
+ const char* a_text_begin{};
+ BI_GET(5, a_text_begin);
+ const char* a_text_end{};
+ BI_GET(6, a_text_end);
+ float a_wrap_width = 0.0f;
+ BI_GET(7, a_wrap_width);
+ ImDrawTextFlags a_flags = 0;
+ BI_GET(8, a_flags);
+ self_p->RenderText(a_draw_list, a_size, a_pos, a_col, a_clip_rect, a_text_begin, a_text_end, a_wrap_width, a_flags);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFont_render_text(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_RenderTextEx, self, args, kw);
+}
+static PyObject* biv_ImFont_ClearOutputData(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearOutputData();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFont_clear_output_data(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_ClearOutputData, self, args, kw);
+}
+static PyObject* biv_ImFont_AddRemapCodepoint(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "from_codepoint", "to_codepoint", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_from_codepoint{};
+ BI_GET(0, a_from_codepoint);
+ ImWchar a_to_codepoint{};
+ BI_GET(1, a_to_codepoint);
+ self_p->AddRemapCodepoint(a_from_codepoint, a_to_codepoint);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFont_add_remap_codepoint(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_AddRemapCodepoint, self, args, kw);
+}
+static PyObject* biv_ImFont_AddRemapCodepointToGlyphIndex(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "from_codepoint", "font_src_idx", "glyph_idx", nullptr };
+ PyObject* o[3] = {};
+ if (!bi_parse(args, kw, kwl, 3, 3, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ ImWchar a_from_codepoint{};
+ BI_GET(0, a_from_codepoint);
+ int a_font_src_idx{};
+ BI_GET(1, a_font_src_idx);
+ int a_glyph_idx{};
+ BI_GET(2, a_glyph_idx);
+ self_p->AddRemapCodepointToGlyphIndex(a_from_codepoint, a_font_src_idx, a_glyph_idx);
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImFont_add_remap_codepoint_to_glyph_index(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_AddRemapCodepointToGlyphIndex, self, args, kw);
+}
+static PyObject* biv_ImFont_IsGlyphRangeUnused(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ static const char* const kwl[] = { "c_begin", "c_last", nullptr };
+ PyObject* o[2] = {};
+ if (!bi_parse(args, kw, kwl, 2, 2, o, argfail)) return nullptr;
+ ImFont* self_p = (ImFont*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ unsigned int a_c_begin{};
+ BI_GET(0, a_c_begin);
+ unsigned int a_c_last{};
+ BI_GET(1, a_c_last);
+ auto r = self_p->IsGlyphRangeUnused(a_c_begin, a_c_last);
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImFont_is_glyph_range_unused(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImFont_IsGlyphRangeUnused, self, args, kw);
+}
+static PyObject* biv_ImGuiViewport_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiViewport)());
+}
+static PyObject* bid_ImGuiViewport_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiViewport_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiViewport_GetCenter(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiViewport* self_p = (const ImGuiViewport*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetCenter();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiViewport_get_center(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiViewport_GetCenter, self, args, kw);
+}
+static PyObject* biv_ImGuiViewport_GetWorkCenter(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ const ImGuiViewport* self_p = (const ImGuiViewport*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ auto r = self_p->GetWorkCenter();
+ return bi_result({ bi_to(r) });
+}
+static PyObject* bid_ImGuiViewport_get_work_center(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiViewport_GetWorkCenter, self, args, kw);
+}
+static PyObject* biv_ImGuiPlatformIO_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiPlatformIO)());
+}
+static PyObject* bid_ImGuiPlatformIO_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPlatformIO_New, nullptr, args, kw);
+}
+static PyObject* biv_ImGuiPlatformIO_ClearPlatformHandlers(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiPlatformIO* self_p = (ImGuiPlatformIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearPlatformHandlers();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiPlatformIO_clear_platform_handlers(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPlatformIO_ClearPlatformHandlers, self, args, kw);
+}
+static PyObject* biv_ImGuiPlatformIO_ClearRendererHandlers(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ ImGuiPlatformIO* self_p = (ImGuiPlatformIO*)((BiObj*)self)->ptr;
+ if (self_p == nullptr) { PyErr_SetString(PyExc_ValueError, "NULL object"); return nullptr; }
+ self_p->ClearRendererHandlers();
+ Py_RETURN_NONE;
+}
+static PyObject* bid_ImGuiPlatformIO_clear_renderer_handlers(PyObject* self, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPlatformIO_ClearRendererHandlers, self, args, kw);
+}
+static PyObject* biv_ImGuiPlatformImeData_New(PyObject* self, PyObject* args, PyObject* kw, int* argfail)
+{
+ (void)self;
+ if (!bi_parse(args, kw, nullptr, 0, 0, nullptr, argfail)) return nullptr;
+ return bi_owned(IM_NEW(ImGuiPlatformImeData)());
+}
+static PyObject* bid_ImGuiPlatformImeData_new(PyTypeObject*, PyObject* args, PyObject* kw)
+{
+ return bi_call1(biv_ImGuiPlatformImeData_New, nullptr, args, kw);
+}
+
+static PyMethodDef bi_module_methods_gen[] = {
+ { "create_context", (PyCFunction)(void (*)(void))bid_ImGui_create_context, METH_VARARGS | METH_KEYWORDS, "create_context(shared_font_atlas=NULL) -> ImGui::CreateContext" },
+ { "destroy_context", (PyCFunction)(void (*)(void))bid_ImGui_destroy_context, METH_VARARGS | METH_KEYWORDS, "destroy_context(ctx=NULL) -> ImGui::DestroyContext" },
+ { "get_current_context", (PyCFunction)(void (*)(void))bid_ImGui_get_current_context, METH_VARARGS | METH_KEYWORDS, "get_current_context() -> ImGui::GetCurrentContext" },
+ { "set_current_context", (PyCFunction)(void (*)(void))bid_ImGui_set_current_context, METH_VARARGS | METH_KEYWORDS, "set_current_context(ctx) -> ImGui::SetCurrentContext" },
+ { "get_io", (PyCFunction)(void (*)(void))bid_ImGui_get_io, METH_VARARGS | METH_KEYWORDS, "get_io() -> ImGui::GetIO" },
+ { "get_platform_io", (PyCFunction)(void (*)(void))bid_ImGui_get_platform_io, METH_VARARGS | METH_KEYWORDS, "get_platform_io() -> ImGui::GetPlatformIO" },
+ { "get_style", (PyCFunction)(void (*)(void))bid_ImGui_get_style, METH_VARARGS | METH_KEYWORDS, "get_style() -> ImGui::GetStyle" },
+ { "new_frame", (PyCFunction)(void (*)(void))bid_ImGui_new_frame, METH_VARARGS | METH_KEYWORDS, "new_frame() -> ImGui::NewFrame" },
+ { "end_frame", (PyCFunction)(void (*)(void))bid_ImGui_end_frame, METH_VARARGS | METH_KEYWORDS, "end_frame() -> ImGui::EndFrame" },
+ { "render", (PyCFunction)(void (*)(void))bid_ImGui_render, METH_VARARGS | METH_KEYWORDS, "render() -> ImGui::Render" },
+ { "get_draw_data", (PyCFunction)(void (*)(void))bid_ImGui_get_draw_data, METH_VARARGS | METH_KEYWORDS, "get_draw_data() -> ImGui::GetDrawData" },
+ { "show_demo_window", (PyCFunction)(void (*)(void))bid_ImGui_show_demo_window, METH_VARARGS | METH_KEYWORDS, "show_demo_window(p_open=NULL) -> ImGui::ShowDemoWindow" },
+ { "show_metrics_window", (PyCFunction)(void (*)(void))bid_ImGui_show_metrics_window, METH_VARARGS | METH_KEYWORDS, "show_metrics_window(p_open=NULL) -> ImGui::ShowMetricsWindow" },
+ { "show_debug_log_window", (PyCFunction)(void (*)(void))bid_ImGui_show_debug_log_window, METH_VARARGS | METH_KEYWORDS, "show_debug_log_window(p_open=NULL) -> ImGui::ShowDebugLogWindow" },
+ { "show_id_stack_tool_window", (PyCFunction)(void (*)(void))bid_ImGui_show_id_stack_tool_window, METH_VARARGS | METH_KEYWORDS, "show_id_stack_tool_window(p_open=NULL) -> ImGui::ShowIDStackToolWindow" },
+ { "show_about_window", (PyCFunction)(void (*)(void))bid_ImGui_show_about_window, METH_VARARGS | METH_KEYWORDS, "show_about_window(p_open=NULL) -> ImGui::ShowAboutWindow" },
+ { "show_style_editor", (PyCFunction)(void (*)(void))bid_ImGui_show_style_editor, METH_VARARGS | METH_KEYWORDS, "show_style_editor(ref=NULL) -> ImGui::ShowStyleEditor" },
+ { "show_style_selector", (PyCFunction)(void (*)(void))bid_ImGui_show_style_selector, METH_VARARGS | METH_KEYWORDS, "show_style_selector(label) -> ImGui::ShowStyleSelector" },
+ { "show_font_selector", (PyCFunction)(void (*)(void))bid_ImGui_show_font_selector, METH_VARARGS | METH_KEYWORDS, "show_font_selector(label) -> ImGui::ShowFontSelector" },
+ { "show_user_guide", (PyCFunction)(void (*)(void))bid_ImGui_show_user_guide, METH_VARARGS | METH_KEYWORDS, "show_user_guide() -> ImGui::ShowUserGuide" },
+ { "get_version", (PyCFunction)(void (*)(void))bid_ImGui_get_version, METH_VARARGS | METH_KEYWORDS, "get_version() -> ImGui::GetVersion" },
+ { "style_colors_dark", (PyCFunction)(void (*)(void))bid_ImGui_style_colors_dark, METH_VARARGS | METH_KEYWORDS, "style_colors_dark(dst=NULL) -> ImGui::StyleColorsDark" },
+ { "style_colors_light", (PyCFunction)(void (*)(void))bid_ImGui_style_colors_light, METH_VARARGS | METH_KEYWORDS, "style_colors_light(dst=NULL) -> ImGui::StyleColorsLight" },
+ { "style_colors_classic", (PyCFunction)(void (*)(void))bid_ImGui_style_colors_classic, METH_VARARGS | METH_KEYWORDS, "style_colors_classic(dst=NULL) -> ImGui::StyleColorsClassic" },
+ { "begin", (PyCFunction)(void (*)(void))bid_ImGui_begin, METH_VARARGS | METH_KEYWORDS, "begin(name, p_open=NULL, flags=0) -> ImGui::Begin" },
+ { "end", (PyCFunction)(void (*)(void))bid_ImGui_end, METH_VARARGS | METH_KEYWORDS, "end() -> ImGui::End" },
+ { "begin_child", (PyCFunction)(void (*)(void))bid_ImGui_begin_child, METH_VARARGS | METH_KEYWORDS, "begin_child(str_id, size=ImVec2(0, 0), child_flags=0, window_flags=0) -> ImGui::BeginChild\nbegin_child(id, size=ImVec2(0, 0), child_flags=0, window_flags=0) -> ImGui::BeginChild" },
+ { "begin_child_id", (PyCFunction)(void (*)(void))bid1_ImGui_BeginChildIDEx, METH_VARARGS | METH_KEYWORDS, "begin_child(str_id, size=ImVec2(0, 0), child_flags=0, window_flags=0) -> ImGui::BeginChild\nbegin_child(id, size=ImVec2(0, 0), child_flags=0, window_flags=0) -> ImGui::BeginChild" },
+ { "end_child", (PyCFunction)(void (*)(void))bid_ImGui_end_child, METH_VARARGS | METH_KEYWORDS, "end_child() -> ImGui::EndChild" },
+ { "is_window_appearing", (PyCFunction)(void (*)(void))bid_ImGui_is_window_appearing, METH_VARARGS | METH_KEYWORDS, "is_window_appearing() -> ImGui::IsWindowAppearing" },
+ { "is_window_collapsed", (PyCFunction)(void (*)(void))bid_ImGui_is_window_collapsed, METH_VARARGS | METH_KEYWORDS, "is_window_collapsed() -> ImGui::IsWindowCollapsed" },
+ { "is_window_focused", (PyCFunction)(void (*)(void))bid_ImGui_is_window_focused, METH_VARARGS | METH_KEYWORDS, "is_window_focused(flags=0) -> ImGui::IsWindowFocused" },
+ { "is_window_hovered", (PyCFunction)(void (*)(void))bid_ImGui_is_window_hovered, METH_VARARGS | METH_KEYWORDS, "is_window_hovered(flags=0) -> ImGui::IsWindowHovered" },
+ { "get_window_draw_list", (PyCFunction)(void (*)(void))bid_ImGui_get_window_draw_list, METH_VARARGS | METH_KEYWORDS, "get_window_draw_list() -> ImGui::GetWindowDrawList" },
+ { "get_window_pos", (PyCFunction)(void (*)(void))bid_ImGui_get_window_pos, METH_VARARGS | METH_KEYWORDS, "get_window_pos() -> ImGui::GetWindowPos" },
+ { "get_window_size", (PyCFunction)(void (*)(void))bid_ImGui_get_window_size, METH_VARARGS | METH_KEYWORDS, "get_window_size() -> ImGui::GetWindowSize" },
+ { "get_window_width", (PyCFunction)(void (*)(void))bid_ImGui_get_window_width, METH_VARARGS | METH_KEYWORDS, "get_window_width() -> ImGui::GetWindowWidth" },
+ { "get_window_height", (PyCFunction)(void (*)(void))bid_ImGui_get_window_height, METH_VARARGS | METH_KEYWORDS, "get_window_height() -> ImGui::GetWindowHeight" },
+ { "set_next_window_pos", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_pos, METH_VARARGS | METH_KEYWORDS, "set_next_window_pos(pos, cond=0, pivot=ImVec2(0, 0)) -> ImGui::SetNextWindowPos" },
+ { "set_next_window_size", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_size, METH_VARARGS | METH_KEYWORDS, "set_next_window_size(size, cond=0) -> ImGui::SetNextWindowSize" },
+ { "set_next_window_size_constraints", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_size_constraints, METH_VARARGS | METH_KEYWORDS, "set_next_window_size_constraints(size_min, size_max) -> ImGui::SetNextWindowSizeConstraints" },
+ { "set_next_window_content_size", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_content_size, METH_VARARGS | METH_KEYWORDS, "set_next_window_content_size(size) -> ImGui::SetNextWindowContentSize" },
+ { "set_next_window_collapsed", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_collapsed, METH_VARARGS | METH_KEYWORDS, "set_next_window_collapsed(collapsed, cond=0) -> ImGui::SetNextWindowCollapsed" },
+ { "set_next_window_focus", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_focus, METH_VARARGS | METH_KEYWORDS, "set_next_window_focus() -> ImGui::SetNextWindowFocus" },
+ { "set_next_window_scroll", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_scroll, METH_VARARGS | METH_KEYWORDS, "set_next_window_scroll(scroll) -> ImGui::SetNextWindowScroll" },
+ { "set_next_window_bg_alpha", (PyCFunction)(void (*)(void))bid_ImGui_set_next_window_bg_alpha, METH_VARARGS | METH_KEYWORDS, "set_next_window_bg_alpha(alpha) -> ImGui::SetNextWindowBgAlpha" },
+ { "set_window_pos", (PyCFunction)(void (*)(void))bid_ImGui_set_window_pos, METH_VARARGS | METH_KEYWORDS, "set_window_pos(pos, cond=0) -> ImGui::SetWindowPos\nset_window_pos(name, pos, cond=0) -> ImGui::SetWindowPos" },
+ { "set_window_pos_str", (PyCFunction)(void (*)(void))bid1_ImGui_SetWindowPosStrEx, METH_VARARGS | METH_KEYWORDS, "set_window_pos(pos, cond=0) -> ImGui::SetWindowPos\nset_window_pos(name, pos, cond=0) -> ImGui::SetWindowPos" },
+ { "set_window_size", (PyCFunction)(void (*)(void))bid_ImGui_set_window_size, METH_VARARGS | METH_KEYWORDS, "set_window_size(size, cond=0) -> ImGui::SetWindowSize\nset_window_size(name, size, cond=0) -> ImGui::SetWindowSize" },
+ { "set_window_size_str", (PyCFunction)(void (*)(void))bid1_ImGui_SetWindowSizeStrEx, METH_VARARGS | METH_KEYWORDS, "set_window_size(size, cond=0) -> ImGui::SetWindowSize\nset_window_size(name, size, cond=0) -> ImGui::SetWindowSize" },
+ { "set_window_collapsed", (PyCFunction)(void (*)(void))bid_ImGui_set_window_collapsed, METH_VARARGS | METH_KEYWORDS, "set_window_collapsed(collapsed, cond=0) -> ImGui::SetWindowCollapsed\nset_window_collapsed(name, collapsed, cond=0) -> ImGui::SetWindowCollapsed" },
+ { "set_window_collapsed_str", (PyCFunction)(void (*)(void))bid1_ImGui_SetWindowCollapsedStrEx, METH_VARARGS | METH_KEYWORDS, "set_window_collapsed(collapsed, cond=0) -> ImGui::SetWindowCollapsed\nset_window_collapsed(name, collapsed, cond=0) -> ImGui::SetWindowCollapsed" },
+ { "set_window_focus", (PyCFunction)(void (*)(void))bid_ImGui_set_window_focus, METH_VARARGS | METH_KEYWORDS, "set_window_focus() -> ImGui::SetWindowFocus\nset_window_focus(name) -> ImGui::SetWindowFocus" },
+ { "set_window_focus_str", (PyCFunction)(void (*)(void))bid1_ImGui_SetWindowFocusStr, METH_VARARGS | METH_KEYWORDS, "set_window_focus() -> ImGui::SetWindowFocus\nset_window_focus(name) -> ImGui::SetWindowFocus" },
+ { "get_scroll_x", (PyCFunction)(void (*)(void))bid_ImGui_get_scroll_x, METH_VARARGS | METH_KEYWORDS, "get_scroll_x() -> ImGui::GetScrollX" },
+ { "get_scroll_y", (PyCFunction)(void (*)(void))bid_ImGui_get_scroll_y, METH_VARARGS | METH_KEYWORDS, "get_scroll_y() -> ImGui::GetScrollY" },
+ { "set_scroll_x", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_x, METH_VARARGS | METH_KEYWORDS, "set_scroll_x(scroll_x) -> ImGui::SetScrollX" },
+ { "set_scroll_y", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_y, METH_VARARGS | METH_KEYWORDS, "set_scroll_y(scroll_y) -> ImGui::SetScrollY" },
+ { "get_scroll_max_x", (PyCFunction)(void (*)(void))bid_ImGui_get_scroll_max_x, METH_VARARGS | METH_KEYWORDS, "get_scroll_max_x() -> ImGui::GetScrollMaxX" },
+ { "get_scroll_max_y", (PyCFunction)(void (*)(void))bid_ImGui_get_scroll_max_y, METH_VARARGS | METH_KEYWORDS, "get_scroll_max_y() -> ImGui::GetScrollMaxY" },
+ { "set_scroll_here_x", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_here_x, METH_VARARGS | METH_KEYWORDS, "set_scroll_here_x(center_x_ratio=0.5f) -> ImGui::SetScrollHereX" },
+ { "set_scroll_here_y", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_here_y, METH_VARARGS | METH_KEYWORDS, "set_scroll_here_y(center_y_ratio=0.5f) -> ImGui::SetScrollHereY" },
+ { "set_scroll_from_pos_x", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_from_pos_x, METH_VARARGS | METH_KEYWORDS, "set_scroll_from_pos_x(local_x, center_x_ratio=0.5f) -> ImGui::SetScrollFromPosX" },
+ { "set_scroll_from_pos_y", (PyCFunction)(void (*)(void))bid_ImGui_set_scroll_from_pos_y, METH_VARARGS | METH_KEYWORDS, "set_scroll_from_pos_y(local_y, center_y_ratio=0.5f) -> ImGui::SetScrollFromPosY" },
+ { "push_font", (PyCFunction)(void (*)(void))bid_ImGui_push_font, METH_VARARGS | METH_KEYWORDS, "push_font(font, font_size_base_unscaled) -> ImGui::PushFont" },
+ { "pop_font", (PyCFunction)(void (*)(void))bid_ImGui_pop_font, METH_VARARGS | METH_KEYWORDS, "pop_font() -> ImGui::PopFont" },
+ { "get_font", (PyCFunction)(void (*)(void))bid_ImGui_get_font, METH_VARARGS | METH_KEYWORDS, "get_font() -> ImGui::GetFont" },
+ { "get_font_size", (PyCFunction)(void (*)(void))bid_ImGui_get_font_size, METH_VARARGS | METH_KEYWORDS, "get_font_size() -> ImGui::GetFontSize" },
+ { "get_font_baked", (PyCFunction)(void (*)(void))bid_ImGui_get_font_baked, METH_VARARGS | METH_KEYWORDS, "get_font_baked() -> ImGui::GetFontBaked" },
+ { "push_style_color", (PyCFunction)(void (*)(void))bid_ImGui_push_style_color, METH_VARARGS | METH_KEYWORDS, "push_style_color(idx, col) -> ImGui::PushStyleColor\npush_style_color(idx, col) -> ImGui::PushStyleColor" },
+ { "push_style_color_vec4", (PyCFunction)(void (*)(void))bid1_ImGui_PushStyleColorVec4, METH_VARARGS | METH_KEYWORDS, "push_style_color(idx, col) -> ImGui::PushStyleColor\npush_style_color(idx, col) -> ImGui::PushStyleColor" },
+ { "pop_style_color", (PyCFunction)(void (*)(void))bid_ImGui_pop_style_color, METH_VARARGS | METH_KEYWORDS, "pop_style_color(count=1) -> ImGui::PopStyleColor" },
+ { "push_style_var", (PyCFunction)(void (*)(void))bid_ImGui_push_style_var, METH_VARARGS | METH_KEYWORDS, "push_style_var(idx, val) -> ImGui::PushStyleVar\npush_style_var(idx, val) -> ImGui::PushStyleVar" },
+ { "push_style_var_vec2", (PyCFunction)(void (*)(void))bid1_ImGui_PushStyleVarVec2, METH_VARARGS | METH_KEYWORDS, "push_style_var(idx, val) -> ImGui::PushStyleVar\npush_style_var(idx, val) -> ImGui::PushStyleVar" },
+ { "push_style_var_x", (PyCFunction)(void (*)(void))bid_ImGui_push_style_var_x, METH_VARARGS | METH_KEYWORDS, "push_style_var_x(idx, val_x) -> ImGui::PushStyleVarX" },
+ { "push_style_var_y", (PyCFunction)(void (*)(void))bid_ImGui_push_style_var_y, METH_VARARGS | METH_KEYWORDS, "push_style_var_y(idx, val_y) -> ImGui::PushStyleVarY" },
+ { "pop_style_var", (PyCFunction)(void (*)(void))bid_ImGui_pop_style_var, METH_VARARGS | METH_KEYWORDS, "pop_style_var(count=1) -> ImGui::PopStyleVar" },
+ { "push_item_flag", (PyCFunction)(void (*)(void))bid_ImGui_push_item_flag, METH_VARARGS | METH_KEYWORDS, "push_item_flag(option, enabled) -> ImGui::PushItemFlag" },
+ { "pop_item_flag", (PyCFunction)(void (*)(void))bid_ImGui_pop_item_flag, METH_VARARGS | METH_KEYWORDS, "pop_item_flag() -> ImGui::PopItemFlag" },
+ { "push_item_width", (PyCFunction)(void (*)(void))bid_ImGui_push_item_width, METH_VARARGS | METH_KEYWORDS, "push_item_width(item_width) -> ImGui::PushItemWidth" },
+ { "pop_item_width", (PyCFunction)(void (*)(void))bid_ImGui_pop_item_width, METH_VARARGS | METH_KEYWORDS, "pop_item_width() -> ImGui::PopItemWidth" },
+ { "set_next_item_width", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_width, METH_VARARGS | METH_KEYWORDS, "set_next_item_width(item_width) -> ImGui::SetNextItemWidth" },
+ { "calc_item_width", (PyCFunction)(void (*)(void))bid_ImGui_calc_item_width, METH_VARARGS | METH_KEYWORDS, "calc_item_width() -> ImGui::CalcItemWidth" },
+ { "push_text_wrap_pos", (PyCFunction)(void (*)(void))bid_ImGui_push_text_wrap_pos, METH_VARARGS | METH_KEYWORDS, "push_text_wrap_pos(wrap_local_pos_x=0.0f) -> ImGui::PushTextWrapPos" },
+ { "pop_text_wrap_pos", (PyCFunction)(void (*)(void))bid_ImGui_pop_text_wrap_pos, METH_VARARGS | METH_KEYWORDS, "pop_text_wrap_pos() -> ImGui::PopTextWrapPos" },
+ { "get_font_tex_uv_white_pixel", (PyCFunction)(void (*)(void))bid_ImGui_get_font_tex_uv_white_pixel, METH_VARARGS | METH_KEYWORDS, "get_font_tex_uv_white_pixel() -> ImGui::GetFontTexUvWhitePixel" },
+ { "get_color_u32", (PyCFunction)(void (*)(void))bid_ImGui_get_color_u32, METH_VARARGS | METH_KEYWORDS, "get_color_u32(idx, alpha_mul=1.0f) -> ImGui::GetColorU32\nget_color_u32(col) -> ImGui::GetColorU32\nget_color_u32(col, alpha_mul=1.0f) -> ImGui::GetColorU32" },
+ { "get_color_u32_vec4", (PyCFunction)(void (*)(void))bid1_ImGui_GetColorU32Vec4, METH_VARARGS | METH_KEYWORDS, "get_color_u32(idx, alpha_mul=1.0f) -> ImGui::GetColorU32\nget_color_u32(col) -> ImGui::GetColorU32\nget_color_u32(col, alpha_mul=1.0f) -> ImGui::GetColorU32" },
+ { "get_color_u32_u32", (PyCFunction)(void (*)(void))bid1_ImGui_GetColorU32U32Ex, METH_VARARGS | METH_KEYWORDS, "get_color_u32(idx, alpha_mul=1.0f) -> ImGui::GetColorU32\nget_color_u32(col) -> ImGui::GetColorU32\nget_color_u32(col, alpha_mul=1.0f) -> ImGui::GetColorU32" },
+ { "get_style_color_vec4", (PyCFunction)(void (*)(void))bid_ImGui_get_style_color_vec4, METH_VARARGS | METH_KEYWORDS, "get_style_color_vec4(idx) -> ImGui::GetStyleColorVec4" },
+ { "get_cursor_screen_pos", (PyCFunction)(void (*)(void))bid_ImGui_get_cursor_screen_pos, METH_VARARGS | METH_KEYWORDS, "get_cursor_screen_pos() -> ImGui::GetCursorScreenPos" },
+ { "set_cursor_screen_pos", (PyCFunction)(void (*)(void))bid_ImGui_set_cursor_screen_pos, METH_VARARGS | METH_KEYWORDS, "set_cursor_screen_pos(pos) -> ImGui::SetCursorScreenPos" },
+ { "get_content_region_avail", (PyCFunction)(void (*)(void))bid_ImGui_get_content_region_avail, METH_VARARGS | METH_KEYWORDS, "get_content_region_avail() -> ImGui::GetContentRegionAvail" },
+ { "get_cursor_pos", (PyCFunction)(void (*)(void))bid_ImGui_get_cursor_pos, METH_VARARGS | METH_KEYWORDS, "get_cursor_pos() -> ImGui::GetCursorPos" },
+ { "get_cursor_pos_x", (PyCFunction)(void (*)(void))bid_ImGui_get_cursor_pos_x, METH_VARARGS | METH_KEYWORDS, "get_cursor_pos_x() -> ImGui::GetCursorPosX" },
+ { "get_cursor_pos_y", (PyCFunction)(void (*)(void))bid_ImGui_get_cursor_pos_y, METH_VARARGS | METH_KEYWORDS, "get_cursor_pos_y() -> ImGui::GetCursorPosY" },
+ { "set_cursor_pos", (PyCFunction)(void (*)(void))bid_ImGui_set_cursor_pos, METH_VARARGS | METH_KEYWORDS, "set_cursor_pos(local_pos) -> ImGui::SetCursorPos" },
+ { "set_cursor_pos_x", (PyCFunction)(void (*)(void))bid_ImGui_set_cursor_pos_x, METH_VARARGS | METH_KEYWORDS, "set_cursor_pos_x(local_x) -> ImGui::SetCursorPosX" },
+ { "set_cursor_pos_y", (PyCFunction)(void (*)(void))bid_ImGui_set_cursor_pos_y, METH_VARARGS | METH_KEYWORDS, "set_cursor_pos_y(local_y) -> ImGui::SetCursorPosY" },
+ { "get_cursor_start_pos", (PyCFunction)(void (*)(void))bid_ImGui_get_cursor_start_pos, METH_VARARGS | METH_KEYWORDS, "get_cursor_start_pos() -> ImGui::GetCursorStartPos" },
+ { "separator", (PyCFunction)(void (*)(void))bid_ImGui_separator, METH_VARARGS | METH_KEYWORDS, "separator() -> ImGui::Separator" },
+ { "same_line", (PyCFunction)(void (*)(void))bid_ImGui_same_line, METH_VARARGS | METH_KEYWORDS, "same_line(offset_from_start_x=0.0f, spacing=- 1.0f) -> ImGui::SameLine" },
+ { "new_line", (PyCFunction)(void (*)(void))bid_ImGui_new_line, METH_VARARGS | METH_KEYWORDS, "new_line() -> ImGui::NewLine" },
+ { "spacing", (PyCFunction)(void (*)(void))bid_ImGui_spacing, METH_VARARGS | METH_KEYWORDS, "spacing() -> ImGui::Spacing" },
+ { "dummy", (PyCFunction)(void (*)(void))bid_ImGui_dummy, METH_VARARGS | METH_KEYWORDS, "dummy(size) -> ImGui::Dummy" },
+ { "indent", (PyCFunction)(void (*)(void))bid_ImGui_indent, METH_VARARGS | METH_KEYWORDS, "indent(indent_w=0.0f) -> ImGui::Indent" },
+ { "unindent", (PyCFunction)(void (*)(void))bid_ImGui_unindent, METH_VARARGS | METH_KEYWORDS, "unindent(indent_w=0.0f) -> ImGui::Unindent" },
+ { "begin_group", (PyCFunction)(void (*)(void))bid_ImGui_begin_group, METH_VARARGS | METH_KEYWORDS, "begin_group() -> ImGui::BeginGroup" },
+ { "end_group", (PyCFunction)(void (*)(void))bid_ImGui_end_group, METH_VARARGS | METH_KEYWORDS, "end_group() -> ImGui::EndGroup" },
+ { "align_text_to_frame_padding", (PyCFunction)(void (*)(void))bid_ImGui_align_text_to_frame_padding, METH_VARARGS | METH_KEYWORDS, "align_text_to_frame_padding() -> ImGui::AlignTextToFramePadding" },
+ { "get_text_line_height", (PyCFunction)(void (*)(void))bid_ImGui_get_text_line_height, METH_VARARGS | METH_KEYWORDS, "get_text_line_height() -> ImGui::GetTextLineHeight" },
+ { "get_text_line_height_with_spacing", (PyCFunction)(void (*)(void))bid_ImGui_get_text_line_height_with_spacing, METH_VARARGS | METH_KEYWORDS, "get_text_line_height_with_spacing() -> ImGui::GetTextLineHeightWithSpacing" },
+ { "get_frame_height", (PyCFunction)(void (*)(void))bid_ImGui_get_frame_height, METH_VARARGS | METH_KEYWORDS, "get_frame_height() -> ImGui::GetFrameHeight" },
+ { "get_frame_height_with_spacing", (PyCFunction)(void (*)(void))bid_ImGui_get_frame_height_with_spacing, METH_VARARGS | METH_KEYWORDS, "get_frame_height_with_spacing() -> ImGui::GetFrameHeightWithSpacing" },
+ { "push_id", (PyCFunction)(void (*)(void))bid_ImGui_push_id, METH_VARARGS | METH_KEYWORDS, "push_id(str_id) -> ImGui::PushID\npush_id(str_id_begin, str_id_end) -> ImGui::PushID\npush_id(int_id) -> ImGui::PushID" },
+ { "push_id_str", (PyCFunction)(void (*)(void))bid1_ImGui_PushIDStr, METH_VARARGS | METH_KEYWORDS, "push_id(str_id) -> ImGui::PushID\npush_id(str_id_begin, str_id_end) -> ImGui::PushID\npush_id(int_id) -> ImGui::PushID" },
+ { "push_id_int", (PyCFunction)(void (*)(void))bid1_ImGui_PushIDInt, METH_VARARGS | METH_KEYWORDS, "push_id(str_id) -> ImGui::PushID\npush_id(str_id_begin, str_id_end) -> ImGui::PushID\npush_id(int_id) -> ImGui::PushID" },
+ { "pop_id", (PyCFunction)(void (*)(void))bid_ImGui_pop_id, METH_VARARGS | METH_KEYWORDS, "pop_id() -> ImGui::PopID" },
+ { "get_id", (PyCFunction)(void (*)(void))bid_ImGui_get_id, METH_VARARGS | METH_KEYWORDS, "get_id(str_id) -> ImGui::GetID\nget_id(str_id_begin, str_id_end) -> ImGui::GetID\nget_id(int_id) -> ImGui::GetID" },
+ { "get_id_str", (PyCFunction)(void (*)(void))bid1_ImGui_GetIDStr, METH_VARARGS | METH_KEYWORDS, "get_id(str_id) -> ImGui::GetID\nget_id(str_id_begin, str_id_end) -> ImGui::GetID\nget_id(int_id) -> ImGui::GetID" },
+ { "get_id_int", (PyCFunction)(void (*)(void))bid1_ImGui_GetIDInt, METH_VARARGS | METH_KEYWORDS, "get_id(str_id) -> ImGui::GetID\nget_id(str_id_begin, str_id_end) -> ImGui::GetID\nget_id(int_id) -> ImGui::GetID" },
+ { "text_unformatted", (PyCFunction)(void (*)(void))bid_ImGui_text_unformatted, METH_VARARGS | METH_KEYWORDS, "text_unformatted(text, text_end=NULL) -> ImGui::TextUnformatted" },
+ { "text", (PyCFunction)(void (*)(void))bid_ImGui_text, METH_VARARGS | METH_KEYWORDS, "text(text) -> ImGui::Text" },
+ { "text_colored", (PyCFunction)(void (*)(void))bid_ImGui_text_colored, METH_VARARGS | METH_KEYWORDS, "text_colored(col, text) -> ImGui::TextColored" },
+ { "text_disabled", (PyCFunction)(void (*)(void))bid_ImGui_text_disabled, METH_VARARGS | METH_KEYWORDS, "text_disabled(text) -> ImGui::TextDisabled" },
+ { "text_wrapped", (PyCFunction)(void (*)(void))bid_ImGui_text_wrapped, METH_VARARGS | METH_KEYWORDS, "text_wrapped(text) -> ImGui::TextWrapped" },
+ { "label_text", (PyCFunction)(void (*)(void))bid_ImGui_label_text, METH_VARARGS | METH_KEYWORDS, "label_text(label, text) -> ImGui::LabelText" },
+ { "bullet_text", (PyCFunction)(void (*)(void))bid_ImGui_bullet_text, METH_VARARGS | METH_KEYWORDS, "bullet_text(text) -> ImGui::BulletText" },
+ { "separator_text", (PyCFunction)(void (*)(void))bid_ImGui_separator_text, METH_VARARGS | METH_KEYWORDS, "separator_text(label) -> ImGui::SeparatorText" },
+ { "button", (PyCFunction)(void (*)(void))bid_ImGui_button, METH_VARARGS | METH_KEYWORDS, "button(label, size=ImVec2(0, 0)) -> ImGui::Button" },
+ { "small_button", (PyCFunction)(void (*)(void))bid_ImGui_small_button, METH_VARARGS | METH_KEYWORDS, "small_button(label) -> ImGui::SmallButton" },
+ { "invisible_button", (PyCFunction)(void (*)(void))bid_ImGui_invisible_button, METH_VARARGS | METH_KEYWORDS, "invisible_button(str_id, size, flags=0) -> ImGui::InvisibleButton" },
+ { "arrow_button", (PyCFunction)(void (*)(void))bid_ImGui_arrow_button, METH_VARARGS | METH_KEYWORDS, "arrow_button(str_id, dir) -> ImGui::ArrowButton" },
+ { "checkbox", (PyCFunction)(void (*)(void))bid_ImGui_checkbox, METH_VARARGS | METH_KEYWORDS, "checkbox(label, v) -> ImGui::Checkbox" },
+ { "checkbox_flags", (PyCFunction)(void (*)(void))bid_ImGui_checkbox_flags, METH_VARARGS | METH_KEYWORDS, "checkbox_flags(label, flags, flags_value) -> ImGui::CheckboxFlags\ncheckbox_flags(label, flags, flags_value) -> ImGui::CheckboxFlags" },
+ { "checkbox_flags_u_int_ptr", (PyCFunction)(void (*)(void))bid1_ImGui_CheckboxFlagsUIntPtr, METH_VARARGS | METH_KEYWORDS, "checkbox_flags(label, flags, flags_value) -> ImGui::CheckboxFlags\ncheckbox_flags(label, flags, flags_value) -> ImGui::CheckboxFlags" },
+ { "radio_button", (PyCFunction)(void (*)(void))bid_ImGui_radio_button, METH_VARARGS | METH_KEYWORDS, "radio_button(label, active) -> ImGui::RadioButton\nradio_button(label, v, v_button) -> ImGui::RadioButton" },
+ { "radio_button_int_ptr", (PyCFunction)(void (*)(void))bid1_ImGui_RadioButtonIntPtr, METH_VARARGS | METH_KEYWORDS, "radio_button(label, active) -> ImGui::RadioButton\nradio_button(label, v, v_button) -> ImGui::RadioButton" },
+ { "progress_bar", (PyCFunction)(void (*)(void))bid_ImGui_progress_bar, METH_VARARGS | METH_KEYWORDS, "progress_bar(fraction, size_arg=ImVec2(- FLT_MIN, 0), overlay=NULL) -> ImGui::ProgressBar" },
+ { "bullet", (PyCFunction)(void (*)(void))bid_ImGui_bullet, METH_VARARGS | METH_KEYWORDS, "bullet() -> ImGui::Bullet" },
+ { "text_link", (PyCFunction)(void (*)(void))bid_ImGui_text_link, METH_VARARGS | METH_KEYWORDS, "text_link(label) -> ImGui::TextLink" },
+ { "text_link_open_url", (PyCFunction)(void (*)(void))bid_ImGui_text_link_open_url, METH_VARARGS | METH_KEYWORDS, "text_link_open_url(label, url=NULL) -> ImGui::TextLinkOpenURL" },
+ { "image", (PyCFunction)(void (*)(void))bid_ImGui_image, METH_VARARGS | METH_KEYWORDS, "image(tex_ref, image_size, uv0=ImVec2(0, 0), uv1=ImVec2(1, 1)) -> ImGui::Image" },
+ { "image_with_bg", (PyCFunction)(void (*)(void))bid_ImGui_image_with_bg, METH_VARARGS | METH_KEYWORDS, "image_with_bg(tex_ref, image_size, uv0=ImVec2(0, 0), uv1=ImVec2(1, 1), bg_col=ImVec4(0, 0, 0, 0), tint_col=ImVec4(1, 1, 1, 1)) -> ImGui::ImageWithBg" },
+ { "image_button", (PyCFunction)(void (*)(void))bid_ImGui_image_button, METH_VARARGS | METH_KEYWORDS, "image_button(str_id, tex_ref, image_size, uv0=ImVec2(0, 0), uv1=ImVec2(1, 1), bg_col=ImVec4(0, 0, 0, 0), tint_col=ImVec4(1, 1, 1, 1)) -> ImGui::ImageButton" },
+ { "begin_combo", (PyCFunction)(void (*)(void))bid_ImGui_begin_combo, METH_VARARGS | METH_KEYWORDS, "begin_combo(label, preview_value, flags=0) -> ImGui::BeginCombo" },
+ { "end_combo", (PyCFunction)(void (*)(void))bid_ImGui_end_combo, METH_VARARGS | METH_KEYWORDS, "end_combo() -> ImGui::EndCombo" },
+ { "combo", (PyCFunction)(void (*)(void))bid_ImGui_combo, METH_VARARGS | METH_KEYWORDS, "combo(label, current_item, items, popup_max_height_in_items=- 1) -> ImGui::Combo\ncombo(label, current_item, items_separated_by_zeros, popup_max_height_in_items=- 1) -> ImGui::Combo" },
+ { "combo_str", (PyCFunction)(void (*)(void))bid1_ImGui_ComboStrEx, METH_VARARGS | METH_KEYWORDS, "combo(label, current_item, items, popup_max_height_in_items=- 1) -> ImGui::Combo\ncombo(label, current_item, items_separated_by_zeros, popup_max_height_in_items=- 1) -> ImGui::Combo" },
+ { "drag_float", (PyCFunction)(void (*)(void))bid_ImGui_drag_float, METH_VARARGS | METH_KEYWORDS, "drag_float(label, v, v_speed=1.0f, v_min=0.0f, v_max=0.0f, format=\"%.3f\", flags=0) -> ImGui::DragFloat" },
+ { "drag_float2", (PyCFunction)(void (*)(void))bid_ImGui_drag_float2, METH_VARARGS | METH_KEYWORDS, "drag_float2(label, v, v_speed=1.0f, v_min=0.0f, v_max=0.0f, format=\"%.3f\", flags=0) -> ImGui::DragFloat2" },
+ { "drag_float3", (PyCFunction)(void (*)(void))bid_ImGui_drag_float3, METH_VARARGS | METH_KEYWORDS, "drag_float3(label, v, v_speed=1.0f, v_min=0.0f, v_max=0.0f, format=\"%.3f\", flags=0) -> ImGui::DragFloat3" },
+ { "drag_float4", (PyCFunction)(void (*)(void))bid_ImGui_drag_float4, METH_VARARGS | METH_KEYWORDS, "drag_float4(label, v, v_speed=1.0f, v_min=0.0f, v_max=0.0f, format=\"%.3f\", flags=0) -> ImGui::DragFloat4" },
+ { "drag_float_range2", (PyCFunction)(void (*)(void))bid_ImGui_drag_float_range2, METH_VARARGS | METH_KEYWORDS, "drag_float_range2(label, v_current_min, v_current_max, v_speed=1.0f, v_min=0.0f, v_max=0.0f, format=\"%.3f\", format_max=NULL, flags=0) -> ImGui::DragFloatRange2" },
+ { "drag_int", (PyCFunction)(void (*)(void))bid_ImGui_drag_int, METH_VARARGS | METH_KEYWORDS, "drag_int(label, v, v_speed=1.0f, v_min=0, v_max=0, format=\"%d\", flags=0) -> ImGui::DragInt" },
+ { "drag_int2", (PyCFunction)(void (*)(void))bid_ImGui_drag_int2, METH_VARARGS | METH_KEYWORDS, "drag_int2(label, v, v_speed=1.0f, v_min=0, v_max=0, format=\"%d\", flags=0) -> ImGui::DragInt2" },
+ { "drag_int3", (PyCFunction)(void (*)(void))bid_ImGui_drag_int3, METH_VARARGS | METH_KEYWORDS, "drag_int3(label, v, v_speed=1.0f, v_min=0, v_max=0, format=\"%d\", flags=0) -> ImGui::DragInt3" },
+ { "drag_int4", (PyCFunction)(void (*)(void))bid_ImGui_drag_int4, METH_VARARGS | METH_KEYWORDS, "drag_int4(label, v, v_speed=1.0f, v_min=0, v_max=0, format=\"%d\", flags=0) -> ImGui::DragInt4" },
+ { "drag_int_range2", (PyCFunction)(void (*)(void))bid_ImGui_drag_int_range2, METH_VARARGS | METH_KEYWORDS, "drag_int_range2(label, v_current_min, v_current_max, v_speed=1.0f, v_min=0, v_max=0, format=\"%d\", format_max=NULL, flags=0) -> ImGui::DragIntRange2" },
+ { "slider_float", (PyCFunction)(void (*)(void))bid_ImGui_slider_float, METH_VARARGS | METH_KEYWORDS, "slider_float(label, v, v_min, v_max, format=\"%.3f\", flags=0) -> ImGui::SliderFloat" },
+ { "slider_float2", (PyCFunction)(void (*)(void))bid_ImGui_slider_float2, METH_VARARGS | METH_KEYWORDS, "slider_float2(label, v, v_min, v_max, format=\"%.3f\", flags=0) -> ImGui::SliderFloat2" },
+ { "slider_float3", (PyCFunction)(void (*)(void))bid_ImGui_slider_float3, METH_VARARGS | METH_KEYWORDS, "slider_float3(label, v, v_min, v_max, format=\"%.3f\", flags=0) -> ImGui::SliderFloat3" },
+ { "slider_float4", (PyCFunction)(void (*)(void))bid_ImGui_slider_float4, METH_VARARGS | METH_KEYWORDS, "slider_float4(label, v, v_min, v_max, format=\"%.3f\", flags=0) -> ImGui::SliderFloat4" },
+ { "slider_angle", (PyCFunction)(void (*)(void))bid_ImGui_slider_angle, METH_VARARGS | METH_KEYWORDS, "slider_angle(label, v_rad, v_degrees_min=- 360.0f, v_degrees_max=+ 360.0f, format=\"%.0f deg\", flags=0) -> ImGui::SliderAngle" },
+ { "slider_int", (PyCFunction)(void (*)(void))bid_ImGui_slider_int, METH_VARARGS | METH_KEYWORDS, "slider_int(label, v, v_min, v_max, format=\"%d\", flags=0) -> ImGui::SliderInt" },
+ { "slider_int2", (PyCFunction)(void (*)(void))bid_ImGui_slider_int2, METH_VARARGS | METH_KEYWORDS, "slider_int2(label, v, v_min, v_max, format=\"%d\", flags=0) -> ImGui::SliderInt2" },
+ { "slider_int3", (PyCFunction)(void (*)(void))bid_ImGui_slider_int3, METH_VARARGS | METH_KEYWORDS, "slider_int3(label, v, v_min, v_max, format=\"%d\", flags=0) -> ImGui::SliderInt3" },
+ { "slider_int4", (PyCFunction)(void (*)(void))bid_ImGui_slider_int4, METH_VARARGS | METH_KEYWORDS, "slider_int4(label, v, v_min, v_max, format=\"%d\", flags=0) -> ImGui::SliderInt4" },
+ { "v_slider_float", (PyCFunction)(void (*)(void))bid_ImGui_v_slider_float, METH_VARARGS | METH_KEYWORDS, "v_slider_float(label, size, v, v_min, v_max, format=\"%.3f\", flags=0) -> ImGui::VSliderFloat" },
+ { "v_slider_int", (PyCFunction)(void (*)(void))bid_ImGui_v_slider_int, METH_VARARGS | METH_KEYWORDS, "v_slider_int(label, size, v, v_min, v_max, format=\"%d\", flags=0) -> ImGui::VSliderInt" },
+ { "input_text", (PyCFunction)(void (*)(void))bid_ImGui_input_text, METH_VARARGS | METH_KEYWORDS, "input_text(label, buf, flags=0) -> ImGui::InputText" },
+ { "input_text_multiline", (PyCFunction)(void (*)(void))bid_ImGui_input_text_multiline, METH_VARARGS | METH_KEYWORDS, "input_text_multiline(label, buf, size=ImVec2(0, 0), flags=0) -> ImGui::InputTextMultiline" },
+ { "input_text_with_hint", (PyCFunction)(void (*)(void))bid_ImGui_input_text_with_hint, METH_VARARGS | METH_KEYWORDS, "input_text_with_hint(label, hint, buf, flags=0) -> ImGui::InputTextWithHint" },
+ { "input_float", (PyCFunction)(void (*)(void))bid_ImGui_input_float, METH_VARARGS | METH_KEYWORDS, "input_float(label, v, step=0.0f, step_fast=0.0f, format=\"%.3f\", flags=0) -> ImGui::InputFloat" },
+ { "input_float2", (PyCFunction)(void (*)(void))bid_ImGui_input_float2, METH_VARARGS | METH_KEYWORDS, "input_float2(label, v, format=\"%.3f\", flags=0) -> ImGui::InputFloat2" },
+ { "input_float3", (PyCFunction)(void (*)(void))bid_ImGui_input_float3, METH_VARARGS | METH_KEYWORDS, "input_float3(label, v, format=\"%.3f\", flags=0) -> ImGui::InputFloat3" },
+ { "input_float4", (PyCFunction)(void (*)(void))bid_ImGui_input_float4, METH_VARARGS | METH_KEYWORDS, "input_float4(label, v, format=\"%.3f\", flags=0) -> ImGui::InputFloat4" },
+ { "input_int", (PyCFunction)(void (*)(void))bid_ImGui_input_int, METH_VARARGS | METH_KEYWORDS, "input_int(label, v, step=1, step_fast=100, flags=0) -> ImGui::InputInt" },
+ { "input_int2", (PyCFunction)(void (*)(void))bid_ImGui_input_int2, METH_VARARGS | METH_KEYWORDS, "input_int2(label, v, flags=0) -> ImGui::InputInt2" },
+ { "input_int3", (PyCFunction)(void (*)(void))bid_ImGui_input_int3, METH_VARARGS | METH_KEYWORDS, "input_int3(label, v, flags=0) -> ImGui::InputInt3" },
+ { "input_int4", (PyCFunction)(void (*)(void))bid_ImGui_input_int4, METH_VARARGS | METH_KEYWORDS, "input_int4(label, v, flags=0) -> ImGui::InputInt4" },
+ { "input_double", (PyCFunction)(void (*)(void))bid_ImGui_input_double, METH_VARARGS | METH_KEYWORDS, "input_double(label, v, step=0.0, step_fast=0.0, format=\"%.6f\", flags=0) -> ImGui::InputDouble" },
+ { "color_edit3", (PyCFunction)(void (*)(void))bid_ImGui_color_edit3, METH_VARARGS | METH_KEYWORDS, "color_edit3(label, col, flags=0) -> ImGui::ColorEdit3" },
+ { "color_edit4", (PyCFunction)(void (*)(void))bid_ImGui_color_edit4, METH_VARARGS | METH_KEYWORDS, "color_edit4(label, col, flags=0) -> ImGui::ColorEdit4" },
+ { "color_picker3", (PyCFunction)(void (*)(void))bid_ImGui_color_picker3, METH_VARARGS | METH_KEYWORDS, "color_picker3(label, col, flags=0) -> ImGui::ColorPicker3" },
+ { "color_picker4", (PyCFunction)(void (*)(void))bid_ImGui_color_picker4, METH_VARARGS | METH_KEYWORDS, "color_picker4(label, col, flags=0) -> ImGui::ColorPicker4" },
+ { "color_button", (PyCFunction)(void (*)(void))bid_ImGui_color_button, METH_VARARGS | METH_KEYWORDS, "color_button(desc_id, col, flags=0, size=ImVec2(0, 0)) -> ImGui::ColorButton" },
+ { "tree_node", (PyCFunction)(void (*)(void))bid_ImGui_tree_node, METH_VARARGS | METH_KEYWORDS, "tree_node(label) -> ImGui::TreeNode\ntree_node(str_id, text) -> ImGui::TreeNode" },
+ { "tree_node_str", (PyCFunction)(void (*)(void))bid1_ImGui_TreeNodeStr, METH_VARARGS | METH_KEYWORDS, "tree_node(label) -> ImGui::TreeNode\ntree_node(str_id, text) -> ImGui::TreeNode" },
+ { "tree_node_ex", (PyCFunction)(void (*)(void))bid_ImGui_tree_node_ex, METH_VARARGS | METH_KEYWORDS, "tree_node_ex(label, flags=0) -> ImGui::TreeNodeEx\ntree_node_ex(str_id, flags, text) -> ImGui::TreeNodeEx" },
+ { "tree_node_ex_str", (PyCFunction)(void (*)(void))bid1_ImGui_TreeNodeExStr, METH_VARARGS | METH_KEYWORDS, "tree_node_ex(label, flags=0) -> ImGui::TreeNodeEx\ntree_node_ex(str_id, flags, text) -> ImGui::TreeNodeEx" },
+ { "tree_push", (PyCFunction)(void (*)(void))bid_ImGui_tree_push, METH_VARARGS | METH_KEYWORDS, "tree_push(str_id) -> ImGui::TreePush" },
+ { "tree_pop", (PyCFunction)(void (*)(void))bid_ImGui_tree_pop, METH_VARARGS | METH_KEYWORDS, "tree_pop() -> ImGui::TreePop" },
+ { "get_tree_node_to_label_spacing", (PyCFunction)(void (*)(void))bid_ImGui_get_tree_node_to_label_spacing, METH_VARARGS | METH_KEYWORDS, "get_tree_node_to_label_spacing() -> ImGui::GetTreeNodeToLabelSpacing" },
+ { "collapsing_header", (PyCFunction)(void (*)(void))bid_ImGui_collapsing_header, METH_VARARGS | METH_KEYWORDS, "collapsing_header(label, flags=0) -> ImGui::CollapsingHeader\ncollapsing_header(label, p_visible, flags=0) -> ImGui::CollapsingHeader" },
+ { "collapsing_header_bool_ptr", (PyCFunction)(void (*)(void))bid1_ImGui_CollapsingHeaderBoolPtrEx, METH_VARARGS | METH_KEYWORDS, "collapsing_header(label, flags=0) -> ImGui::CollapsingHeader\ncollapsing_header(label, p_visible, flags=0) -> ImGui::CollapsingHeader" },
+ { "set_next_item_open", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_open, METH_VARARGS | METH_KEYWORDS, "set_next_item_open(is_open, cond=0) -> ImGui::SetNextItemOpen" },
+ { "set_next_item_storage_id", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_storage_id, METH_VARARGS | METH_KEYWORDS, "set_next_item_storage_id(storage_id) -> ImGui::SetNextItemStorageID" },
+ { "tree_node_get_open", (PyCFunction)(void (*)(void))bid_ImGui_tree_node_get_open, METH_VARARGS | METH_KEYWORDS, "tree_node_get_open(storage_id, flags=0) -> ImGui::TreeNodeGetOpen" },
+ { "selectable", (PyCFunction)(void (*)(void))bid_ImGui_selectable, METH_VARARGS | METH_KEYWORDS, "selectable(label, selected=false, flags=0, size=ImVec2(0, 0)) -> ImGui::Selectable\nselectable(label, p_selected, flags=0, size=ImVec2(0, 0)) -> ImGui::Selectable" },
+ { "selectable_bool_ptr", (PyCFunction)(void (*)(void))bid1_ImGui_SelectableBoolPtrEx, METH_VARARGS | METH_KEYWORDS, "selectable(label, selected=false, flags=0, size=ImVec2(0, 0)) -> ImGui::Selectable\nselectable(label, p_selected, flags=0, size=ImVec2(0, 0)) -> ImGui::Selectable" },
+ { "begin_multi_select", (PyCFunction)(void (*)(void))bid_ImGui_begin_multi_select, METH_VARARGS | METH_KEYWORDS, "begin_multi_select(flags, selection_size=- 1, items_count=- 1) -> ImGui::BeginMultiSelect" },
+ { "end_multi_select", (PyCFunction)(void (*)(void))bid_ImGui_end_multi_select, METH_VARARGS | METH_KEYWORDS, "end_multi_select() -> ImGui::EndMultiSelect" },
+ { "set_next_item_selection_user_data", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_selection_user_data, METH_VARARGS | METH_KEYWORDS, "set_next_item_selection_user_data(selection_user_data) -> ImGui::SetNextItemSelectionUserData" },
+ { "is_item_toggled_selection", (PyCFunction)(void (*)(void))bid_ImGui_is_item_toggled_selection, METH_VARARGS | METH_KEYWORDS, "is_item_toggled_selection() -> ImGui::IsItemToggledSelection" },
+ { "begin_list_box", (PyCFunction)(void (*)(void))bid_ImGui_begin_list_box, METH_VARARGS | METH_KEYWORDS, "begin_list_box(label, size=ImVec2(0, 0)) -> ImGui::BeginListBox" },
+ { "end_list_box", (PyCFunction)(void (*)(void))bid_ImGui_end_list_box, METH_VARARGS | METH_KEYWORDS, "end_list_box() -> ImGui::EndListBox" },
+ { "list_box", (PyCFunction)(void (*)(void))bid_ImGui_list_box, METH_VARARGS | METH_KEYWORDS, "list_box(label, current_item, items, height_in_items=- 1) -> ImGui::ListBox" },
+ { "plot_lines", (PyCFunction)(void (*)(void))bid_ImGui_plot_lines, METH_VARARGS | METH_KEYWORDS, "plot_lines(label, values, values_offset=0, overlay_text=NULL, scale_min=FLT_MAX, scale_max=FLT_MAX, graph_size=ImVec2(0, 0), stride=sizeof(float)) -> ImGui::PlotLines" },
+ { "plot_histogram", (PyCFunction)(void (*)(void))bid_ImGui_plot_histogram, METH_VARARGS | METH_KEYWORDS, "plot_histogram(label, values, values_offset=0, overlay_text=NULL, scale_min=FLT_MAX, scale_max=FLT_MAX, graph_size=ImVec2(0, 0), stride=sizeof(float)) -> ImGui::PlotHistogram" },
+ { "value", (PyCFunction)(void (*)(void))bid_ImGui_value, METH_VARARGS | METH_KEYWORDS, "value(prefix, b) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v, float_format=NULL) -> ImGui::Value" },
+ { "value_int", (PyCFunction)(void (*)(void))bid1_ImGui_ValueInt, METH_VARARGS | METH_KEYWORDS, "value(prefix, b) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v, float_format=NULL) -> ImGui::Value" },
+ { "value_u_int", (PyCFunction)(void (*)(void))bid1_ImGui_ValueUInt, METH_VARARGS | METH_KEYWORDS, "value(prefix, b) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v, float_format=NULL) -> ImGui::Value" },
+ { "value_float", (PyCFunction)(void (*)(void))bid1_ImGui_ValueFloatEx, METH_VARARGS | METH_KEYWORDS, "value(prefix, b) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v) -> ImGui::Value\nvalue(prefix, v, float_format=NULL) -> ImGui::Value" },
+ { "begin_menu_bar", (PyCFunction)(void (*)(void))bid_ImGui_begin_menu_bar, METH_VARARGS | METH_KEYWORDS, "begin_menu_bar() -> ImGui::BeginMenuBar" },
+ { "end_menu_bar", (PyCFunction)(void (*)(void))bid_ImGui_end_menu_bar, METH_VARARGS | METH_KEYWORDS, "end_menu_bar() -> ImGui::EndMenuBar" },
+ { "begin_main_menu_bar", (PyCFunction)(void (*)(void))bid_ImGui_begin_main_menu_bar, METH_VARARGS | METH_KEYWORDS, "begin_main_menu_bar() -> ImGui::BeginMainMenuBar" },
+ { "end_main_menu_bar", (PyCFunction)(void (*)(void))bid_ImGui_end_main_menu_bar, METH_VARARGS | METH_KEYWORDS, "end_main_menu_bar() -> ImGui::EndMainMenuBar" },
+ { "begin_menu", (PyCFunction)(void (*)(void))bid_ImGui_begin_menu, METH_VARARGS | METH_KEYWORDS, "begin_menu(label, enabled=true) -> ImGui::BeginMenu" },
+ { "end_menu", (PyCFunction)(void (*)(void))bid_ImGui_end_menu, METH_VARARGS | METH_KEYWORDS, "end_menu() -> ImGui::EndMenu" },
+ { "menu_item", (PyCFunction)(void (*)(void))bid_ImGui_menu_item, METH_VARARGS | METH_KEYWORDS, "menu_item(label, shortcut=NULL, selected=false, enabled=true) -> ImGui::MenuItem\nmenu_item(label, shortcut, p_selected, enabled=true) -> ImGui::MenuItem" },
+ { "menu_item_bool_ptr", (PyCFunction)(void (*)(void))bid1_ImGui_MenuItemBoolPtrEx, METH_VARARGS | METH_KEYWORDS, "menu_item(label, shortcut=NULL, selected=false, enabled=true) -> ImGui::MenuItem\nmenu_item(label, shortcut, p_selected, enabled=true) -> ImGui::MenuItem" },
+ { "begin_tooltip", (PyCFunction)(void (*)(void))bid_ImGui_begin_tooltip, METH_VARARGS | METH_KEYWORDS, "begin_tooltip() -> ImGui::BeginTooltip" },
+ { "end_tooltip", (PyCFunction)(void (*)(void))bid_ImGui_end_tooltip, METH_VARARGS | METH_KEYWORDS, "end_tooltip() -> ImGui::EndTooltip" },
+ { "set_tooltip", (PyCFunction)(void (*)(void))bid_ImGui_set_tooltip, METH_VARARGS | METH_KEYWORDS, "set_tooltip(text) -> ImGui::SetTooltip" },
+ { "begin_item_tooltip", (PyCFunction)(void (*)(void))bid_ImGui_begin_item_tooltip, METH_VARARGS | METH_KEYWORDS, "begin_item_tooltip() -> ImGui::BeginItemTooltip" },
+ { "set_item_tooltip", (PyCFunction)(void (*)(void))bid_ImGui_set_item_tooltip, METH_VARARGS | METH_KEYWORDS, "set_item_tooltip(text) -> ImGui::SetItemTooltip" },
+ { "begin_popup", (PyCFunction)(void (*)(void))bid_ImGui_begin_popup, METH_VARARGS | METH_KEYWORDS, "begin_popup(str_id, flags=0) -> ImGui::BeginPopup" },
+ { "begin_popup_modal", (PyCFunction)(void (*)(void))bid_ImGui_begin_popup_modal, METH_VARARGS | METH_KEYWORDS, "begin_popup_modal(name, p_open=NULL, flags=0) -> ImGui::BeginPopupModal" },
+ { "end_popup", (PyCFunction)(void (*)(void))bid_ImGui_end_popup, METH_VARARGS | METH_KEYWORDS, "end_popup() -> ImGui::EndPopup" },
+ { "open_popup", (PyCFunction)(void (*)(void))bid_ImGui_open_popup, METH_VARARGS | METH_KEYWORDS, "open_popup(str_id, popup_flags=0) -> ImGui::OpenPopup\nopen_popup(id, popup_flags=0) -> ImGui::OpenPopup" },
+ { "open_popup_id", (PyCFunction)(void (*)(void))bid1_ImGui_OpenPopupIDEx, METH_VARARGS | METH_KEYWORDS, "open_popup(str_id, popup_flags=0) -> ImGui::OpenPopup\nopen_popup(id, popup_flags=0) -> ImGui::OpenPopup" },
+ { "open_popup_on_item_click", (PyCFunction)(void (*)(void))bid_ImGui_open_popup_on_item_click, METH_VARARGS | METH_KEYWORDS, "open_popup_on_item_click(str_id=NULL, popup_flags=0) -> ImGui::OpenPopupOnItemClick" },
+ { "close_current_popup", (PyCFunction)(void (*)(void))bid_ImGui_close_current_popup, METH_VARARGS | METH_KEYWORDS, "close_current_popup() -> ImGui::CloseCurrentPopup" },
+ { "begin_popup_context_item", (PyCFunction)(void (*)(void))bid_ImGui_begin_popup_context_item, METH_VARARGS | METH_KEYWORDS, "begin_popup_context_item(str_id=NULL, popup_flags=0) -> ImGui::BeginPopupContextItem" },
+ { "begin_popup_context_window", (PyCFunction)(void (*)(void))bid_ImGui_begin_popup_context_window, METH_VARARGS | METH_KEYWORDS, "begin_popup_context_window(str_id=NULL, popup_flags=0) -> ImGui::BeginPopupContextWindow" },
+ { "begin_popup_context_void", (PyCFunction)(void (*)(void))bid_ImGui_begin_popup_context_void, METH_VARARGS | METH_KEYWORDS, "begin_popup_context_void(str_id=NULL, popup_flags=0) -> ImGui::BeginPopupContextVoid" },
+ { "is_popup_open", (PyCFunction)(void (*)(void))bid_ImGui_is_popup_open, METH_VARARGS | METH_KEYWORDS, "is_popup_open(str_id, flags=0) -> ImGui::IsPopupOpen" },
+ { "begin_table", (PyCFunction)(void (*)(void))bid_ImGui_begin_table, METH_VARARGS | METH_KEYWORDS, "begin_table(str_id, columns, flags=0, outer_size=ImVec2(0.0f, 0.0f), inner_width=0.0f) -> ImGui::BeginTable" },
+ { "end_table", (PyCFunction)(void (*)(void))bid_ImGui_end_table, METH_VARARGS | METH_KEYWORDS, "end_table() -> ImGui::EndTable" },
+ { "table_next_row", (PyCFunction)(void (*)(void))bid_ImGui_table_next_row, METH_VARARGS | METH_KEYWORDS, "table_next_row(row_flags=0, min_row_height=0.0f) -> ImGui::TableNextRow" },
+ { "table_next_column", (PyCFunction)(void (*)(void))bid_ImGui_table_next_column, METH_VARARGS | METH_KEYWORDS, "table_next_column() -> ImGui::TableNextColumn" },
+ { "table_set_column_index", (PyCFunction)(void (*)(void))bid_ImGui_table_set_column_index, METH_VARARGS | METH_KEYWORDS, "table_set_column_index(column_n) -> ImGui::TableSetColumnIndex" },
+ { "table_setup_column", (PyCFunction)(void (*)(void))bid_ImGui_table_setup_column, METH_VARARGS | METH_KEYWORDS, "table_setup_column(label, flags=0, init_width_or_weight=0.0f, user_data=0) -> ImGui::TableSetupColumn" },
+ { "table_setup_scroll_freeze", (PyCFunction)(void (*)(void))bid_ImGui_table_setup_scroll_freeze, METH_VARARGS | METH_KEYWORDS, "table_setup_scroll_freeze(cols, rows) -> ImGui::TableSetupScrollFreeze" },
+ { "table_header", (PyCFunction)(void (*)(void))bid_ImGui_table_header, METH_VARARGS | METH_KEYWORDS, "table_header(label) -> ImGui::TableHeader" },
+ { "table_headers_row", (PyCFunction)(void (*)(void))bid_ImGui_table_headers_row, METH_VARARGS | METH_KEYWORDS, "table_headers_row() -> ImGui::TableHeadersRow" },
+ { "table_angled_headers_row", (PyCFunction)(void (*)(void))bid_ImGui_table_angled_headers_row, METH_VARARGS | METH_KEYWORDS, "table_angled_headers_row() -> ImGui::TableAngledHeadersRow" },
+ { "table_get_sort_specs", (PyCFunction)(void (*)(void))bid_ImGui_table_get_sort_specs, METH_VARARGS | METH_KEYWORDS, "table_get_sort_specs() -> ImGui::TableGetSortSpecs" },
+ { "table_get_column_count", (PyCFunction)(void (*)(void))bid_ImGui_table_get_column_count, METH_VARARGS | METH_KEYWORDS, "table_get_column_count() -> ImGui::TableGetColumnCount" },
+ { "table_get_column_index", (PyCFunction)(void (*)(void))bid_ImGui_table_get_column_index, METH_VARARGS | METH_KEYWORDS, "table_get_column_index() -> ImGui::TableGetColumnIndex" },
+ { "table_get_row_index", (PyCFunction)(void (*)(void))bid_ImGui_table_get_row_index, METH_VARARGS | METH_KEYWORDS, "table_get_row_index() -> ImGui::TableGetRowIndex" },
+ { "table_get_column_name", (PyCFunction)(void (*)(void))bid_ImGui_table_get_column_name, METH_VARARGS | METH_KEYWORDS, "table_get_column_name(column_n=- 1) -> ImGui::TableGetColumnName" },
+ { "table_get_column_flags", (PyCFunction)(void (*)(void))bid_ImGui_table_get_column_flags, METH_VARARGS | METH_KEYWORDS, "table_get_column_flags(column_n=- 1) -> ImGui::TableGetColumnFlags" },
+ { "table_set_column_enabled", (PyCFunction)(void (*)(void))bid_ImGui_table_set_column_enabled, METH_VARARGS | METH_KEYWORDS, "table_set_column_enabled(column_n, v) -> ImGui::TableSetColumnEnabled" },
+ { "table_get_hovered_column", (PyCFunction)(void (*)(void))bid_ImGui_table_get_hovered_column, METH_VARARGS | METH_KEYWORDS, "table_get_hovered_column() -> ImGui::TableGetHoveredColumn" },
+ { "table_set_bg_color", (PyCFunction)(void (*)(void))bid_ImGui_table_set_bg_color, METH_VARARGS | METH_KEYWORDS, "table_set_bg_color(target, color, column_n=- 1) -> ImGui::TableSetBgColor" },
+ { "columns", (PyCFunction)(void (*)(void))bid_ImGui_columns, METH_VARARGS | METH_KEYWORDS, "columns(count=1, id=NULL, borders=true) -> ImGui::Columns" },
+ { "next_column", (PyCFunction)(void (*)(void))bid_ImGui_next_column, METH_VARARGS | METH_KEYWORDS, "next_column() -> ImGui::NextColumn" },
+ { "get_column_index", (PyCFunction)(void (*)(void))bid_ImGui_get_column_index, METH_VARARGS | METH_KEYWORDS, "get_column_index() -> ImGui::GetColumnIndex" },
+ { "get_column_width", (PyCFunction)(void (*)(void))bid_ImGui_get_column_width, METH_VARARGS | METH_KEYWORDS, "get_column_width(column_index=- 1) -> ImGui::GetColumnWidth" },
+ { "set_column_width", (PyCFunction)(void (*)(void))bid_ImGui_set_column_width, METH_VARARGS | METH_KEYWORDS, "set_column_width(column_index, width) -> ImGui::SetColumnWidth" },
+ { "get_column_offset", (PyCFunction)(void (*)(void))bid_ImGui_get_column_offset, METH_VARARGS | METH_KEYWORDS, "get_column_offset(column_index=- 1) -> ImGui::GetColumnOffset" },
+ { "set_column_offset", (PyCFunction)(void (*)(void))bid_ImGui_set_column_offset, METH_VARARGS | METH_KEYWORDS, "set_column_offset(column_index, offset_x) -> ImGui::SetColumnOffset" },
+ { "get_columns_count", (PyCFunction)(void (*)(void))bid_ImGui_get_columns_count, METH_VARARGS | METH_KEYWORDS, "get_columns_count() -> ImGui::GetColumnsCount" },
+ { "begin_tab_bar", (PyCFunction)(void (*)(void))bid_ImGui_begin_tab_bar, METH_VARARGS | METH_KEYWORDS, "begin_tab_bar(str_id, flags=0) -> ImGui::BeginTabBar" },
+ { "end_tab_bar", (PyCFunction)(void (*)(void))bid_ImGui_end_tab_bar, METH_VARARGS | METH_KEYWORDS, "end_tab_bar() -> ImGui::EndTabBar" },
+ { "begin_tab_item", (PyCFunction)(void (*)(void))bid_ImGui_begin_tab_item, METH_VARARGS | METH_KEYWORDS, "begin_tab_item(label, p_open=NULL, flags=0) -> ImGui::BeginTabItem" },
+ { "end_tab_item", (PyCFunction)(void (*)(void))bid_ImGui_end_tab_item, METH_VARARGS | METH_KEYWORDS, "end_tab_item() -> ImGui::EndTabItem" },
+ { "tab_item_button", (PyCFunction)(void (*)(void))bid_ImGui_tab_item_button, METH_VARARGS | METH_KEYWORDS, "tab_item_button(label, flags=0) -> ImGui::TabItemButton" },
+ { "set_tab_item_closed", (PyCFunction)(void (*)(void))bid_ImGui_set_tab_item_closed, METH_VARARGS | METH_KEYWORDS, "set_tab_item_closed(tab_or_docked_window_label) -> ImGui::SetTabItemClosed" },
+ { "log_to_tty", (PyCFunction)(void (*)(void))bid_ImGui_log_to_tty, METH_VARARGS | METH_KEYWORDS, "log_to_tty(auto_open_depth=- 1) -> ImGui::LogToTTY" },
+ { "log_to_file", (PyCFunction)(void (*)(void))bid_ImGui_log_to_file, METH_VARARGS | METH_KEYWORDS, "log_to_file(auto_open_depth=- 1, filename=NULL) -> ImGui::LogToFile" },
+ { "log_to_clipboard", (PyCFunction)(void (*)(void))bid_ImGui_log_to_clipboard, METH_VARARGS | METH_KEYWORDS, "log_to_clipboard(auto_open_depth=- 1) -> ImGui::LogToClipboard" },
+ { "log_finish", (PyCFunction)(void (*)(void))bid_ImGui_log_finish, METH_VARARGS | METH_KEYWORDS, "log_finish() -> ImGui::LogFinish" },
+ { "log_buttons", (PyCFunction)(void (*)(void))bid_ImGui_log_buttons, METH_VARARGS | METH_KEYWORDS, "log_buttons() -> ImGui::LogButtons" },
+ { "log_text", (PyCFunction)(void (*)(void))bid_ImGui_log_text, METH_VARARGS | METH_KEYWORDS, "log_text(text) -> ImGui::LogText" },
+ { "begin_drag_drop_source", (PyCFunction)(void (*)(void))bid_ImGui_begin_drag_drop_source, METH_VARARGS | METH_KEYWORDS, "begin_drag_drop_source(flags=0) -> ImGui::BeginDragDropSource" },
+ { "set_drag_drop_payload", (PyCFunction)(void (*)(void))bid_ImGui_set_drag_drop_payload, METH_VARARGS | METH_KEYWORDS, "set_drag_drop_payload(type, data, cond=0) -> ImGui::SetDragDropPayload" },
+ { "end_drag_drop_source", (PyCFunction)(void (*)(void))bid_ImGui_end_drag_drop_source, METH_VARARGS | METH_KEYWORDS, "end_drag_drop_source() -> ImGui::EndDragDropSource" },
+ { "begin_drag_drop_target", (PyCFunction)(void (*)(void))bid_ImGui_begin_drag_drop_target, METH_VARARGS | METH_KEYWORDS, "begin_drag_drop_target() -> ImGui::BeginDragDropTarget" },
+ { "accept_drag_drop_payload", (PyCFunction)(void (*)(void))bid_ImGui_accept_drag_drop_payload, METH_VARARGS | METH_KEYWORDS, "accept_drag_drop_payload(type, flags=0) -> ImGui::AcceptDragDropPayload" },
+ { "end_drag_drop_target", (PyCFunction)(void (*)(void))bid_ImGui_end_drag_drop_target, METH_VARARGS | METH_KEYWORDS, "end_drag_drop_target() -> ImGui::EndDragDropTarget" },
+ { "get_drag_drop_payload", (PyCFunction)(void (*)(void))bid_ImGui_get_drag_drop_payload, METH_VARARGS | METH_KEYWORDS, "get_drag_drop_payload() -> ImGui::GetDragDropPayload" },
+ { "begin_disabled", (PyCFunction)(void (*)(void))bid_ImGui_begin_disabled, METH_VARARGS | METH_KEYWORDS, "begin_disabled(disabled=true) -> ImGui::BeginDisabled" },
+ { "end_disabled", (PyCFunction)(void (*)(void))bid_ImGui_end_disabled, METH_VARARGS | METH_KEYWORDS, "end_disabled() -> ImGui::EndDisabled" },
+ { "push_clip_rect", (PyCFunction)(void (*)(void))bid_ImGui_push_clip_rect, METH_VARARGS | METH_KEYWORDS, "push_clip_rect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect) -> ImGui::PushClipRect" },
+ { "pop_clip_rect", (PyCFunction)(void (*)(void))bid_ImGui_pop_clip_rect, METH_VARARGS | METH_KEYWORDS, "pop_clip_rect() -> ImGui::PopClipRect" },
+ { "set_item_default_focus", (PyCFunction)(void (*)(void))bid_ImGui_set_item_default_focus, METH_VARARGS | METH_KEYWORDS, "set_item_default_focus() -> ImGui::SetItemDefaultFocus" },
+ { "set_keyboard_focus_here", (PyCFunction)(void (*)(void))bid_ImGui_set_keyboard_focus_here, METH_VARARGS | METH_KEYWORDS, "set_keyboard_focus_here(offset=0) -> ImGui::SetKeyboardFocusHere" },
+ { "set_nav_cursor_visible", (PyCFunction)(void (*)(void))bid_ImGui_set_nav_cursor_visible, METH_VARARGS | METH_KEYWORDS, "set_nav_cursor_visible(visible) -> ImGui::SetNavCursorVisible" },
+ { "set_next_item_allow_overlap", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_allow_overlap, METH_VARARGS | METH_KEYWORDS, "set_next_item_allow_overlap() -> ImGui::SetNextItemAllowOverlap" },
+ { "is_item_hovered", (PyCFunction)(void (*)(void))bid_ImGui_is_item_hovered, METH_VARARGS | METH_KEYWORDS, "is_item_hovered(flags=0) -> ImGui::IsItemHovered" },
+ { "is_item_active", (PyCFunction)(void (*)(void))bid_ImGui_is_item_active, METH_VARARGS | METH_KEYWORDS, "is_item_active() -> ImGui::IsItemActive" },
+ { "is_item_focused", (PyCFunction)(void (*)(void))bid_ImGui_is_item_focused, METH_VARARGS | METH_KEYWORDS, "is_item_focused() -> ImGui::IsItemFocused" },
+ { "is_item_clicked", (PyCFunction)(void (*)(void))bid_ImGui_is_item_clicked, METH_VARARGS | METH_KEYWORDS, "is_item_clicked(mouse_button=0) -> ImGui::IsItemClicked" },
+ { "is_item_visible", (PyCFunction)(void (*)(void))bid_ImGui_is_item_visible, METH_VARARGS | METH_KEYWORDS, "is_item_visible() -> ImGui::IsItemVisible" },
+ { "is_item_edited", (PyCFunction)(void (*)(void))bid_ImGui_is_item_edited, METH_VARARGS | METH_KEYWORDS, "is_item_edited() -> ImGui::IsItemEdited" },
+ { "is_item_activated", (PyCFunction)(void (*)(void))bid_ImGui_is_item_activated, METH_VARARGS | METH_KEYWORDS, "is_item_activated() -> ImGui::IsItemActivated" },
+ { "is_item_deactivated", (PyCFunction)(void (*)(void))bid_ImGui_is_item_deactivated, METH_VARARGS | METH_KEYWORDS, "is_item_deactivated() -> ImGui::IsItemDeactivated" },
+ { "is_item_deactivated_after_edit", (PyCFunction)(void (*)(void))bid_ImGui_is_item_deactivated_after_edit, METH_VARARGS | METH_KEYWORDS, "is_item_deactivated_after_edit() -> ImGui::IsItemDeactivatedAfterEdit" },
+ { "is_item_toggled_open", (PyCFunction)(void (*)(void))bid_ImGui_is_item_toggled_open, METH_VARARGS | METH_KEYWORDS, "is_item_toggled_open() -> ImGui::IsItemToggledOpen" },
+ { "is_any_item_hovered", (PyCFunction)(void (*)(void))bid_ImGui_is_any_item_hovered, METH_VARARGS | METH_KEYWORDS, "is_any_item_hovered() -> ImGui::IsAnyItemHovered" },
+ { "is_any_item_active", (PyCFunction)(void (*)(void))bid_ImGui_is_any_item_active, METH_VARARGS | METH_KEYWORDS, "is_any_item_active() -> ImGui::IsAnyItemActive" },
+ { "is_any_item_focused", (PyCFunction)(void (*)(void))bid_ImGui_is_any_item_focused, METH_VARARGS | METH_KEYWORDS, "is_any_item_focused() -> ImGui::IsAnyItemFocused" },
+ { "get_item_id", (PyCFunction)(void (*)(void))bid_ImGui_get_item_id, METH_VARARGS | METH_KEYWORDS, "get_item_id() -> ImGui::GetItemID" },
+ { "get_item_rect_min", (PyCFunction)(void (*)(void))bid_ImGui_get_item_rect_min, METH_VARARGS | METH_KEYWORDS, "get_item_rect_min() -> ImGui::GetItemRectMin" },
+ { "get_item_rect_max", (PyCFunction)(void (*)(void))bid_ImGui_get_item_rect_max, METH_VARARGS | METH_KEYWORDS, "get_item_rect_max() -> ImGui::GetItemRectMax" },
+ { "get_item_rect_size", (PyCFunction)(void (*)(void))bid_ImGui_get_item_rect_size, METH_VARARGS | METH_KEYWORDS, "get_item_rect_size() -> ImGui::GetItemRectSize" },
+ { "get_item_flags", (PyCFunction)(void (*)(void))bid_ImGui_get_item_flags, METH_VARARGS | METH_KEYWORDS, "get_item_flags() -> ImGui::GetItemFlags" },
+ { "get_item_clicked_count_with_single_click_delay", (PyCFunction)(void (*)(void))bid_ImGui_get_item_clicked_count_with_single_click_delay, METH_VARARGS | METH_KEYWORDS, "get_item_clicked_count_with_single_click_delay(mouse_button=0, delay=- 1.0f) -> ImGui::GetItemClickedCountWithSingleClickDelay" },
+ { "get_main_viewport", (PyCFunction)(void (*)(void))bid_ImGui_get_main_viewport, METH_VARARGS | METH_KEYWORDS, "get_main_viewport() -> ImGui::GetMainViewport" },
+ { "get_background_draw_list", (PyCFunction)(void (*)(void))bid_ImGui_get_background_draw_list, METH_VARARGS | METH_KEYWORDS, "get_background_draw_list() -> ImGui::GetBackgroundDrawList" },
+ { "get_foreground_draw_list", (PyCFunction)(void (*)(void))bid_ImGui_get_foreground_draw_list, METH_VARARGS | METH_KEYWORDS, "get_foreground_draw_list() -> ImGui::GetForegroundDrawList" },
+ { "is_rect_visible", (PyCFunction)(void (*)(void))bid_ImGui_is_rect_visible, METH_VARARGS | METH_KEYWORDS, "is_rect_visible(size) -> ImGui::IsRectVisible\nis_rect_visible(rect_min, rect_max) -> ImGui::IsRectVisible" },
+ { "is_rect_visible_vec2", (PyCFunction)(void (*)(void))bid1_ImGui_IsRectVisibleVec2, METH_VARARGS | METH_KEYWORDS, "is_rect_visible(size) -> ImGui::IsRectVisible\nis_rect_visible(rect_min, rect_max) -> ImGui::IsRectVisible" },
+ { "get_time", (PyCFunction)(void (*)(void))bid_ImGui_get_time, METH_VARARGS | METH_KEYWORDS, "get_time() -> ImGui::GetTime" },
+ { "get_frame_count", (PyCFunction)(void (*)(void))bid_ImGui_get_frame_count, METH_VARARGS | METH_KEYWORDS, "get_frame_count() -> ImGui::GetFrameCount" },
+ { "get_draw_list_shared_data", (PyCFunction)(void (*)(void))bid_ImGui_get_draw_list_shared_data, METH_VARARGS | METH_KEYWORDS, "get_draw_list_shared_data() -> ImGui::GetDrawListSharedData" },
+ { "get_style_color_name", (PyCFunction)(void (*)(void))bid_ImGui_get_style_color_name, METH_VARARGS | METH_KEYWORDS, "get_style_color_name(idx) -> ImGui::GetStyleColorName" },
+ { "set_state_storage", (PyCFunction)(void (*)(void))bid_ImGui_set_state_storage, METH_VARARGS | METH_KEYWORDS, "set_state_storage(storage) -> ImGui::SetStateStorage" },
+ { "get_state_storage", (PyCFunction)(void (*)(void))bid_ImGui_get_state_storage, METH_VARARGS | METH_KEYWORDS, "get_state_storage() -> ImGui::GetStateStorage" },
+ { "calc_text_size", (PyCFunction)(void (*)(void))bid_ImGui_calc_text_size, METH_VARARGS | METH_KEYWORDS, "calc_text_size(text, text_end=NULL, hide_text_after_double_hash=false, wrap_width=- 1.0f) -> ImGui::CalcTextSize" },
+ { "color_convert_u32_to_float4", (PyCFunction)(void (*)(void))bid_ImGui_color_convert_u32_to_float4, METH_VARARGS | METH_KEYWORDS, "color_convert_u32_to_float4(in_) -> ImGui::ColorConvertU32ToFloat4" },
+ { "color_convert_float4_to_u32", (PyCFunction)(void (*)(void))bid_ImGui_color_convert_float4_to_u32, METH_VARARGS | METH_KEYWORDS, "color_convert_float4_to_u32(in_) -> ImGui::ColorConvertFloat4ToU32" },
+ { "color_convert_rgb_to_hsv", (PyCFunction)(void (*)(void))bid_ImGui_color_convert_rgb_to_hsv, METH_VARARGS | METH_KEYWORDS, "color_convert_rgb_to_hsv(r, g, b) -> ImGui::ColorConvertRGBtoHSV" },
+ { "color_convert_hsv_to_rgb", (PyCFunction)(void (*)(void))bid_ImGui_color_convert_hsv_to_rgb, METH_VARARGS | METH_KEYWORDS, "color_convert_hsv_to_rgb(h, s, v) -> ImGui::ColorConvertHSVtoRGB" },
+ { "is_key_down", (PyCFunction)(void (*)(void))bid_ImGui_is_key_down, METH_VARARGS | METH_KEYWORDS, "is_key_down(key) -> ImGui::IsKeyDown" },
+ { "is_key_pressed", (PyCFunction)(void (*)(void))bid_ImGui_is_key_pressed, METH_VARARGS | METH_KEYWORDS, "is_key_pressed(key, repeat=true) -> ImGui::IsKeyPressed" },
+ { "is_key_released", (PyCFunction)(void (*)(void))bid_ImGui_is_key_released, METH_VARARGS | METH_KEYWORDS, "is_key_released(key) -> ImGui::IsKeyReleased" },
+ { "is_key_chord_pressed", (PyCFunction)(void (*)(void))bid_ImGui_is_key_chord_pressed, METH_VARARGS | METH_KEYWORDS, "is_key_chord_pressed(key_chord) -> ImGui::IsKeyChordPressed" },
+ { "get_key_pressed_amount", (PyCFunction)(void (*)(void))bid_ImGui_get_key_pressed_amount, METH_VARARGS | METH_KEYWORDS, "get_key_pressed_amount(key, repeat_delay, rate) -> ImGui::GetKeyPressedAmount" },
+ { "get_key_name", (PyCFunction)(void (*)(void))bid_ImGui_get_key_name, METH_VARARGS | METH_KEYWORDS, "get_key_name(key) -> ImGui::GetKeyName" },
+ { "set_next_frame_want_capture_keyboard", (PyCFunction)(void (*)(void))bid_ImGui_set_next_frame_want_capture_keyboard, METH_VARARGS | METH_KEYWORDS, "set_next_frame_want_capture_keyboard(want_capture_keyboard) -> ImGui::SetNextFrameWantCaptureKeyboard" },
+ { "shortcut", (PyCFunction)(void (*)(void))bid_ImGui_shortcut, METH_VARARGS | METH_KEYWORDS, "shortcut(key_chord, flags=0) -> ImGui::Shortcut" },
+ { "set_next_item_shortcut", (PyCFunction)(void (*)(void))bid_ImGui_set_next_item_shortcut, METH_VARARGS | METH_KEYWORDS, "set_next_item_shortcut(key_chord, flags=0) -> ImGui::SetNextItemShortcut" },
+ { "set_item_key_owner", (PyCFunction)(void (*)(void))bid_ImGui_set_item_key_owner, METH_VARARGS | METH_KEYWORDS, "set_item_key_owner(key) -> ImGui::SetItemKeyOwner" },
+ { "is_mouse_down", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_down, METH_VARARGS | METH_KEYWORDS, "is_mouse_down(button) -> ImGui::IsMouseDown" },
+ { "is_mouse_clicked", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_clicked, METH_VARARGS | METH_KEYWORDS, "is_mouse_clicked(button, repeat=false) -> ImGui::IsMouseClicked" },
+ { "is_mouse_released", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_released, METH_VARARGS | METH_KEYWORDS, "is_mouse_released(button) -> ImGui::IsMouseReleased" },
+ { "is_mouse_double_clicked", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_double_clicked, METH_VARARGS | METH_KEYWORDS, "is_mouse_double_clicked(button) -> ImGui::IsMouseDoubleClicked" },
+ { "is_mouse_released_with_delay", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_released_with_delay, METH_VARARGS | METH_KEYWORDS, "is_mouse_released_with_delay(button, delay=- 1.f) -> ImGui::IsMouseReleasedWithDelay" },
+ { "get_mouse_clicked_count", (PyCFunction)(void (*)(void))bid_ImGui_get_mouse_clicked_count, METH_VARARGS | METH_KEYWORDS, "get_mouse_clicked_count(button) -> ImGui::GetMouseClickedCount" },
+ { "is_mouse_hovering_rect", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_hovering_rect, METH_VARARGS | METH_KEYWORDS, "is_mouse_hovering_rect(r_min, r_max, clip=true) -> ImGui::IsMouseHoveringRect" },
+ { "is_mouse_pos_valid", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_pos_valid, METH_VARARGS | METH_KEYWORDS, "is_mouse_pos_valid() -> ImGui::IsMousePosValid" },
+ { "is_any_mouse_down", (PyCFunction)(void (*)(void))bid_ImGui_is_any_mouse_down, METH_VARARGS | METH_KEYWORDS, "is_any_mouse_down() -> ImGui::IsAnyMouseDown" },
+ { "get_mouse_pos", (PyCFunction)(void (*)(void))bid_ImGui_get_mouse_pos, METH_VARARGS | METH_KEYWORDS, "get_mouse_pos() -> ImGui::GetMousePos" },
+ { "get_mouse_pos_on_opening_current_popup", (PyCFunction)(void (*)(void))bid_ImGui_get_mouse_pos_on_opening_current_popup, METH_VARARGS | METH_KEYWORDS, "get_mouse_pos_on_opening_current_popup() -> ImGui::GetMousePosOnOpeningCurrentPopup" },
+ { "is_mouse_dragging", (PyCFunction)(void (*)(void))bid_ImGui_is_mouse_dragging, METH_VARARGS | METH_KEYWORDS, "is_mouse_dragging(button, lock_threshold=- 1.0f) -> ImGui::IsMouseDragging" },
+ { "get_mouse_drag_delta", (PyCFunction)(void (*)(void))bid_ImGui_get_mouse_drag_delta, METH_VARARGS | METH_KEYWORDS, "get_mouse_drag_delta(button=0, lock_threshold=- 1.0f) -> ImGui::GetMouseDragDelta" },
+ { "reset_mouse_drag_delta", (PyCFunction)(void (*)(void))bid_ImGui_reset_mouse_drag_delta, METH_VARARGS | METH_KEYWORDS, "reset_mouse_drag_delta(button=0) -> ImGui::ResetMouseDragDelta" },
+ { "get_mouse_cursor", (PyCFunction)(void (*)(void))bid_ImGui_get_mouse_cursor, METH_VARARGS | METH_KEYWORDS, "get_mouse_cursor() -> ImGui::GetMouseCursor" },
+ { "set_mouse_cursor", (PyCFunction)(void (*)(void))bid_ImGui_set_mouse_cursor, METH_VARARGS | METH_KEYWORDS, "set_mouse_cursor(cursor_type) -> ImGui::SetMouseCursor" },
+ { "set_next_frame_want_capture_mouse", (PyCFunction)(void (*)(void))bid_ImGui_set_next_frame_want_capture_mouse, METH_VARARGS | METH_KEYWORDS, "set_next_frame_want_capture_mouse(want_capture_mouse) -> ImGui::SetNextFrameWantCaptureMouse" },
+ { "get_clipboard_text", (PyCFunction)(void (*)(void))bid_ImGui_get_clipboard_text, METH_VARARGS | METH_KEYWORDS, "get_clipboard_text() -> ImGui::GetClipboardText" },
+ { "set_clipboard_text", (PyCFunction)(void (*)(void))bid_ImGui_set_clipboard_text, METH_VARARGS | METH_KEYWORDS, "set_clipboard_text(text) -> ImGui::SetClipboardText" },
+ { "load_ini_settings_from_disk", (PyCFunction)(void (*)(void))bid_ImGui_load_ini_settings_from_disk, METH_VARARGS | METH_KEYWORDS, "load_ini_settings_from_disk(ini_filename) -> ImGui::LoadIniSettingsFromDisk" },
+ { "load_ini_settings_from_memory", (PyCFunction)(void (*)(void))bid_ImGui_load_ini_settings_from_memory, METH_VARARGS | METH_KEYWORDS, "load_ini_settings_from_memory(ini_data, ini_size=0) -> ImGui::LoadIniSettingsFromMemory" },
+ { "save_ini_settings_to_disk", (PyCFunction)(void (*)(void))bid_ImGui_save_ini_settings_to_disk, METH_VARARGS | METH_KEYWORDS, "save_ini_settings_to_disk(ini_filename) -> ImGui::SaveIniSettingsToDisk" },
+ { "save_ini_settings_to_memory", (PyCFunction)(void (*)(void))bid_ImGui_save_ini_settings_to_memory, METH_VARARGS | METH_KEYWORDS, "save_ini_settings_to_memory(out_ini_size=NULL) -> ImGui::SaveIniSettingsToMemory" },
+ { "debug_text_encoding", (PyCFunction)(void (*)(void))bid_ImGui_debug_text_encoding, METH_VARARGS | METH_KEYWORDS, "debug_text_encoding(text) -> ImGui::DebugTextEncoding" },
+ { "debug_flash_style_color", (PyCFunction)(void (*)(void))bid_ImGui_debug_flash_style_color, METH_VARARGS | METH_KEYWORDS, "debug_flash_style_color(idx) -> ImGui::DebugFlashStyleColor" },
+ { "debug_start_item_picker", (PyCFunction)(void (*)(void))bid_ImGui_debug_start_item_picker, METH_VARARGS | METH_KEYWORDS, "debug_start_item_picker() -> ImGui::DebugStartItemPicker" },
+ { "debug_check_version_and_data_layout", (PyCFunction)(void (*)(void))bid_ImGui_debug_check_version_and_data_layout, METH_VARARGS | METH_KEYWORDS, "debug_check_version_and_data_layout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx) -> ImGui::DebugCheckVersionAndDataLayout" },
+ { "debug_log", (PyCFunction)(void (*)(void))bid_ImGui_debug_log, METH_VARARGS | METH_KEYWORDS, "debug_log(text) -> ImGui::DebugLog" },
+ { "mem_alloc", (PyCFunction)(void (*)(void))bid_ImGui_mem_alloc, METH_VARARGS | METH_KEYWORDS, "mem_alloc(size) -> ImGui::MemAlloc" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static PyMethodDef bi_methods_ImTextureRef[] = {
+ { "get_tex_id", (PyCFunction)(void (*)(void))bid_ImTextureRef_get_tex_id, METH_VARARGS | METH_KEYWORDS, "get_tex_id() -> ImTextureRef::GetTexID" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImTextureRef[] = {
+ BI_FIELD(ImTextureRef, _TexData, "_tex_data"),
+ BI_FIELD(ImTextureRef, _TexData, "_TexData"),
+ BI_FIELD(ImTextureRef, _TexID, "_tex_id"),
+ BI_FIELD(ImTextureRef, _TexID, "_TexID"),
+};
+static BiField bi_fields_ImGuiTableSortSpecs[] = {
+ BI_FIELD(ImGuiTableSortSpecs, Specs, "specs"),
+ BI_FIELD(ImGuiTableSortSpecs, Specs, "Specs"),
+ BI_FIELD(ImGuiTableSortSpecs, SpecsCount, "specs_count"),
+ BI_FIELD(ImGuiTableSortSpecs, SpecsCount, "SpecsCount"),
+ BI_FIELD(ImGuiTableSortSpecs, SpecsDirty, "specs_dirty"),
+ BI_FIELD(ImGuiTableSortSpecs, SpecsDirty, "SpecsDirty"),
+};
+static BiField bi_fields_ImGuiTableColumnSortSpecs[] = {
+ BI_FIELD(ImGuiTableColumnSortSpecs, ColumnUserID, "column_user_id"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, ColumnUserID, "ColumnUserID"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, ColumnIndex, "column_index"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, ColumnIndex, "ColumnIndex"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, SortOrder, "sort_order"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, SortOrder, "SortOrder"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, SortDirection, "sort_direction"),
+ BI_FIELD(ImGuiTableColumnSortSpecs, SortDirection, "SortDirection"),
+};
+static PyMethodDef bi_methods_ImGuiStyle[] = {
+ { "scale_all_sizes", (PyCFunction)(void (*)(void))bid_ImGuiStyle_scale_all_sizes, METH_VARARGS | METH_KEYWORDS, "scale_all_sizes(scale_factor) -> ImGuiStyle::ScaleAllSizes" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiStyle[] = {
+ BI_FIELD(ImGuiStyle, FontSizeBase, "font_size_base"),
+ BI_FIELD(ImGuiStyle, FontSizeBase, "FontSizeBase"),
+ BI_FIELD(ImGuiStyle, FontScaleMain, "font_scale_main"),
+ BI_FIELD(ImGuiStyle, FontScaleMain, "FontScaleMain"),
+ BI_FIELD(ImGuiStyle, FontScaleDpi, "font_scale_dpi"),
+ BI_FIELD(ImGuiStyle, FontScaleDpi, "FontScaleDpi"),
+ BI_FIELD(ImGuiStyle, Alpha, "alpha"),
+ BI_FIELD(ImGuiStyle, Alpha, "Alpha"),
+ BI_FIELD(ImGuiStyle, DisabledAlpha, "disabled_alpha"),
+ BI_FIELD(ImGuiStyle, DisabledAlpha, "DisabledAlpha"),
+ BI_FIELD(ImGuiStyle, WindowPadding, "window_padding"),
+ BI_FIELD(ImGuiStyle, WindowPadding, "WindowPadding"),
+ BI_FIELD(ImGuiStyle, WindowRounding, "window_rounding"),
+ BI_FIELD(ImGuiStyle, WindowRounding, "WindowRounding"),
+ BI_FIELD(ImGuiStyle, WindowBorderSize, "window_border_size"),
+ BI_FIELD(ImGuiStyle, WindowBorderSize, "WindowBorderSize"),
+ BI_FIELD(ImGuiStyle, WindowBorderHoverPadding, "window_border_hover_padding"),
+ BI_FIELD(ImGuiStyle, WindowBorderHoverPadding, "WindowBorderHoverPadding"),
+ BI_FIELD(ImGuiStyle, WindowMinSize, "window_min_size"),
+ BI_FIELD(ImGuiStyle, WindowMinSize, "WindowMinSize"),
+ BI_FIELD(ImGuiStyle, WindowTitleAlign, "window_title_align"),
+ BI_FIELD(ImGuiStyle, WindowTitleAlign, "WindowTitleAlign"),
+ BI_FIELD(ImGuiStyle, WindowMenuButtonPosition, "window_menu_button_position"),
+ BI_FIELD(ImGuiStyle, WindowMenuButtonPosition, "WindowMenuButtonPosition"),
+ BI_FIELD(ImGuiStyle, ChildRounding, "child_rounding"),
+ BI_FIELD(ImGuiStyle, ChildRounding, "ChildRounding"),
+ BI_FIELD(ImGuiStyle, ChildBorderSize, "child_border_size"),
+ BI_FIELD(ImGuiStyle, ChildBorderSize, "ChildBorderSize"),
+ BI_FIELD(ImGuiStyle, PopupRounding, "popup_rounding"),
+ BI_FIELD(ImGuiStyle, PopupRounding, "PopupRounding"),
+ BI_FIELD(ImGuiStyle, PopupBorderSize, "popup_border_size"),
+ BI_FIELD(ImGuiStyle, PopupBorderSize, "PopupBorderSize"),
+ BI_FIELD(ImGuiStyle, FramePadding, "frame_padding"),
+ BI_FIELD(ImGuiStyle, FramePadding, "FramePadding"),
+ BI_FIELD(ImGuiStyle, FrameRounding, "frame_rounding"),
+ BI_FIELD(ImGuiStyle, FrameRounding, "FrameRounding"),
+ BI_FIELD(ImGuiStyle, FrameBorderSize, "frame_border_size"),
+ BI_FIELD(ImGuiStyle, FrameBorderSize, "FrameBorderSize"),
+ BI_FIELD(ImGuiStyle, ItemSpacing, "item_spacing"),
+ BI_FIELD(ImGuiStyle, ItemSpacing, "ItemSpacing"),
+ BI_FIELD(ImGuiStyle, ItemInnerSpacing, "item_inner_spacing"),
+ BI_FIELD(ImGuiStyle, ItemInnerSpacing, "ItemInnerSpacing"),
+ BI_FIELD(ImGuiStyle, CellPadding, "cell_padding"),
+ BI_FIELD(ImGuiStyle, CellPadding, "CellPadding"),
+ BI_FIELD(ImGuiStyle, TouchExtraPadding, "touch_extra_padding"),
+ BI_FIELD(ImGuiStyle, TouchExtraPadding, "TouchExtraPadding"),
+ BI_FIELD(ImGuiStyle, IndentSpacing, "indent_spacing"),
+ BI_FIELD(ImGuiStyle, IndentSpacing, "IndentSpacing"),
+ BI_FIELD(ImGuiStyle, ColumnsMinSpacing, "columns_min_spacing"),
+ BI_FIELD(ImGuiStyle, ColumnsMinSpacing, "ColumnsMinSpacing"),
+ BI_FIELD(ImGuiStyle, ScrollbarSize, "scrollbar_size"),
+ BI_FIELD(ImGuiStyle, ScrollbarSize, "ScrollbarSize"),
+ BI_FIELD(ImGuiStyle, ScrollbarRounding, "scrollbar_rounding"),
+ BI_FIELD(ImGuiStyle, ScrollbarRounding, "ScrollbarRounding"),
+ BI_FIELD(ImGuiStyle, ScrollbarPadding, "scrollbar_padding"),
+ BI_FIELD(ImGuiStyle, ScrollbarPadding, "ScrollbarPadding"),
+ BI_FIELD(ImGuiStyle, GrabMinSize, "grab_min_size"),
+ BI_FIELD(ImGuiStyle, GrabMinSize, "GrabMinSize"),
+ BI_FIELD(ImGuiStyle, GrabRounding, "grab_rounding"),
+ BI_FIELD(ImGuiStyle, GrabRounding, "GrabRounding"),
+ BI_FIELD(ImGuiStyle, LogSliderDeadzone, "log_slider_deadzone"),
+ BI_FIELD(ImGuiStyle, LogSliderDeadzone, "LogSliderDeadzone"),
+ BI_FIELD(ImGuiStyle, ImageRounding, "image_rounding"),
+ BI_FIELD(ImGuiStyle, ImageRounding, "ImageRounding"),
+ BI_FIELD(ImGuiStyle, ImageBorderSize, "image_border_size"),
+ BI_FIELD(ImGuiStyle, ImageBorderSize, "ImageBorderSize"),
+ BI_FIELD(ImGuiStyle, TabRounding, "tab_rounding"),
+ BI_FIELD(ImGuiStyle, TabRounding, "TabRounding"),
+ BI_FIELD(ImGuiStyle, TabBorderSize, "tab_border_size"),
+ BI_FIELD(ImGuiStyle, TabBorderSize, "TabBorderSize"),
+ BI_FIELD(ImGuiStyle, TabMinWidthBase, "tab_min_width_base"),
+ BI_FIELD(ImGuiStyle, TabMinWidthBase, "TabMinWidthBase"),
+ BI_FIELD(ImGuiStyle, TabMinWidthShrink, "tab_min_width_shrink"),
+ BI_FIELD(ImGuiStyle, TabMinWidthShrink, "TabMinWidthShrink"),
+ BI_FIELD(ImGuiStyle, TabCloseButtonMinWidthSelected, "tab_close_button_min_width_selected"),
+ BI_FIELD(ImGuiStyle, TabCloseButtonMinWidthSelected, "TabCloseButtonMinWidthSelected"),
+ BI_FIELD(ImGuiStyle, TabCloseButtonMinWidthUnselected, "tab_close_button_min_width_unselected"),
+ BI_FIELD(ImGuiStyle, TabCloseButtonMinWidthUnselected, "TabCloseButtonMinWidthUnselected"),
+ BI_FIELD(ImGuiStyle, TabBarBorderSize, "tab_bar_border_size"),
+ BI_FIELD(ImGuiStyle, TabBarBorderSize, "TabBarBorderSize"),
+ BI_FIELD(ImGuiStyle, TabBarOverlineSize, "tab_bar_overline_size"),
+ BI_FIELD(ImGuiStyle, TabBarOverlineSize, "TabBarOverlineSize"),
+ BI_FIELD(ImGuiStyle, TableAngledHeadersAngle, "table_angled_headers_angle"),
+ BI_FIELD(ImGuiStyle, TableAngledHeadersAngle, "TableAngledHeadersAngle"),
+ BI_FIELD(ImGuiStyle, TableAngledHeadersTextAlign, "table_angled_headers_text_align"),
+ BI_FIELD(ImGuiStyle, TableAngledHeadersTextAlign, "TableAngledHeadersTextAlign"),
+ BI_FIELD(ImGuiStyle, TreeLinesFlags, "tree_lines_flags"),
+ BI_FIELD(ImGuiStyle, TreeLinesFlags, "TreeLinesFlags"),
+ BI_FIELD(ImGuiStyle, TreeLinesSize, "tree_lines_size"),
+ BI_FIELD(ImGuiStyle, TreeLinesSize, "TreeLinesSize"),
+ BI_FIELD(ImGuiStyle, TreeLinesRounding, "tree_lines_rounding"),
+ BI_FIELD(ImGuiStyle, TreeLinesRounding, "TreeLinesRounding"),
+ BI_FIELD(ImGuiStyle, MenuItemRounding, "menu_item_rounding"),
+ BI_FIELD(ImGuiStyle, MenuItemRounding, "MenuItemRounding"),
+ BI_FIELD(ImGuiStyle, SelectableRounding, "selectable_rounding"),
+ BI_FIELD(ImGuiStyle, SelectableRounding, "SelectableRounding"),
+ BI_FIELD(ImGuiStyle, DragDropTargetRounding, "drag_drop_target_rounding"),
+ BI_FIELD(ImGuiStyle, DragDropTargetRounding, "DragDropTargetRounding"),
+ BI_FIELD(ImGuiStyle, DragDropTargetBorderSize, "drag_drop_target_border_size"),
+ BI_FIELD(ImGuiStyle, DragDropTargetBorderSize, "DragDropTargetBorderSize"),
+ BI_FIELD(ImGuiStyle, DragDropTargetPadding, "drag_drop_target_padding"),
+ BI_FIELD(ImGuiStyle, DragDropTargetPadding, "DragDropTargetPadding"),
+ BI_FIELD(ImGuiStyle, ColorMarkerSize, "color_marker_size"),
+ BI_FIELD(ImGuiStyle, ColorMarkerSize, "ColorMarkerSize"),
+ BI_FIELD(ImGuiStyle, ColorButtonPosition, "color_button_position"),
+ BI_FIELD(ImGuiStyle, ColorButtonPosition, "ColorButtonPosition"),
+ BI_FIELD(ImGuiStyle, ButtonTextAlign, "button_text_align"),
+ BI_FIELD(ImGuiStyle, ButtonTextAlign, "ButtonTextAlign"),
+ BI_FIELD(ImGuiStyle, SelectableTextAlign, "selectable_text_align"),
+ BI_FIELD(ImGuiStyle, SelectableTextAlign, "SelectableTextAlign"),
+ BI_FIELD(ImGuiStyle, InputTextCursorSize, "input_text_cursor_size"),
+ BI_FIELD(ImGuiStyle, InputTextCursorSize, "InputTextCursorSize"),
+ BI_FIELD(ImGuiStyle, SeparatorSize, "separator_size"),
+ BI_FIELD(ImGuiStyle, SeparatorSize, "SeparatorSize"),
+ BI_FIELD(ImGuiStyle, SeparatorTextBorderSize, "separator_text_border_size"),
+ BI_FIELD(ImGuiStyle, SeparatorTextBorderSize, "SeparatorTextBorderSize"),
+ BI_FIELD(ImGuiStyle, SeparatorTextAlign, "separator_text_align"),
+ BI_FIELD(ImGuiStyle, SeparatorTextAlign, "SeparatorTextAlign"),
+ BI_FIELD(ImGuiStyle, SeparatorTextPadding, "separator_text_padding"),
+ BI_FIELD(ImGuiStyle, SeparatorTextPadding, "SeparatorTextPadding"),
+ BI_FIELD(ImGuiStyle, DisplayWindowPadding, "display_window_padding"),
+ BI_FIELD(ImGuiStyle, DisplayWindowPadding, "DisplayWindowPadding"),
+ BI_FIELD(ImGuiStyle, DisplaySafeAreaPadding, "display_safe_area_padding"),
+ BI_FIELD(ImGuiStyle, DisplaySafeAreaPadding, "DisplaySafeAreaPadding"),
+ BI_FIELD(ImGuiStyle, MouseCursorScale, "mouse_cursor_scale"),
+ BI_FIELD(ImGuiStyle, MouseCursorScale, "MouseCursorScale"),
+ BI_FIELD(ImGuiStyle, SymbolArrowSizeFactor, "symbol_arrow_size_factor"),
+ BI_FIELD(ImGuiStyle, SymbolArrowSizeFactor, "SymbolArrowSizeFactor"),
+ BI_FIELD(ImGuiStyle, SymbolArrowThicknessFactor, "symbol_arrow_thickness_factor"),
+ BI_FIELD(ImGuiStyle, SymbolArrowThicknessFactor, "SymbolArrowThicknessFactor"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLines, "anti_aliased_lines"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLines, "AntiAliasedLines"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLineEnds, "anti_aliased_line_ends"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLineEnds, "AntiAliasedLineEnds"),
+ BI_FIELD(ImGuiStyle, AntiAliasedFill, "anti_aliased_fill"),
+ BI_FIELD(ImGuiStyle, AntiAliasedFill, "AntiAliasedFill"),
+ BI_FIELD(ImGuiStyle, CurveTessellationMaxError, "curve_tessellation_max_error"),
+ BI_FIELD(ImGuiStyle, CurveTessellationMaxError, "CurveTessellationMaxError"),
+ BI_FIELD(ImGuiStyle, CircleTessellationMaxError, "circle_tessellation_max_error"),
+ BI_FIELD(ImGuiStyle, CircleTessellationMaxError, "CircleTessellationMaxError"),
+ BI_FIELD(ImGuiStyle, Colors, "colors"),
+ BI_FIELD(ImGuiStyle, Colors, "Colors"),
+ BI_FIELD(ImGuiStyle, HoverStationaryDelay, "hover_stationary_delay"),
+ BI_FIELD(ImGuiStyle, HoverStationaryDelay, "HoverStationaryDelay"),
+ BI_FIELD(ImGuiStyle, HoverDelayShort, "hover_delay_short"),
+ BI_FIELD(ImGuiStyle, HoverDelayShort, "HoverDelayShort"),
+ BI_FIELD(ImGuiStyle, HoverDelayNormal, "hover_delay_normal"),
+ BI_FIELD(ImGuiStyle, HoverDelayNormal, "HoverDelayNormal"),
+ BI_FIELD(ImGuiStyle, HoverFlagsForTooltipMouse, "hover_flags_for_tooltip_mouse"),
+ BI_FIELD(ImGuiStyle, HoverFlagsForTooltipMouse, "HoverFlagsForTooltipMouse"),
+ BI_FIELD(ImGuiStyle, HoverFlagsForTooltipNav, "hover_flags_for_tooltip_nav"),
+ BI_FIELD(ImGuiStyle, HoverFlagsForTooltipNav, "HoverFlagsForTooltipNav"),
+ BI_FIELD(ImGuiStyle, _MainScale, "_main_scale"),
+ BI_FIELD(ImGuiStyle, _MainScale, "_MainScale"),
+ BI_FIELD(ImGuiStyle, _NextFrameFontSizeBase, "_next_frame_font_size_base"),
+ BI_FIELD(ImGuiStyle, _NextFrameFontSizeBase, "_NextFrameFontSizeBase"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLinesUseTex, "anti_aliased_lines_use_tex"),
+ BI_FIELD(ImGuiStyle, AntiAliasedLinesUseTex, "AntiAliasedLinesUseTex"),
+ BI_FIELD(ImGuiStyle, CurveTessellationTol, "curve_tessellation_tol"),
+ BI_FIELD(ImGuiStyle, CurveTessellationTol, "CurveTessellationTol"),
+};
+static BiField bi_fields_ImGuiKeyData[] = {
+ BI_FIELD(ImGuiKeyData, Down, "down"),
+ BI_FIELD(ImGuiKeyData, Down, "Down"),
+ BI_FIELD(ImGuiKeyData, DownDuration, "down_duration"),
+ BI_FIELD(ImGuiKeyData, DownDuration, "DownDuration"),
+ BI_FIELD(ImGuiKeyData, DownDurationPrev, "down_duration_prev"),
+ BI_FIELD(ImGuiKeyData, DownDurationPrev, "DownDurationPrev"),
+ BI_FIELD(ImGuiKeyData, AnalogValue, "analog_value"),
+ BI_FIELD(ImGuiKeyData, AnalogValue, "AnalogValue"),
+};
+static PyMethodDef bi_methods_ImGuiIO[] = {
+ { "add_key_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_key_event, METH_VARARGS | METH_KEYWORDS, "add_key_event(key, down) -> ImGuiIO::AddKeyEvent" },
+ { "add_key_analog_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_key_analog_event, METH_VARARGS | METH_KEYWORDS, "add_key_analog_event(key, down, v) -> ImGuiIO::AddKeyAnalogEvent" },
+ { "add_mouse_pos_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_mouse_pos_event, METH_VARARGS | METH_KEYWORDS, "add_mouse_pos_event(x, y) -> ImGuiIO::AddMousePosEvent" },
+ { "add_mouse_button_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_mouse_button_event, METH_VARARGS | METH_KEYWORDS, "add_mouse_button_event(button, down) -> ImGuiIO::AddMouseButtonEvent" },
+ { "add_mouse_wheel_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_mouse_wheel_event, METH_VARARGS | METH_KEYWORDS, "add_mouse_wheel_event(wheel_x, wheel_y) -> ImGuiIO::AddMouseWheelEvent" },
+ { "add_mouse_source_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_mouse_source_event, METH_VARARGS | METH_KEYWORDS, "add_mouse_source_event(source) -> ImGuiIO::AddMouseSourceEvent" },
+ { "add_focus_event", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_focus_event, METH_VARARGS | METH_KEYWORDS, "add_focus_event(focused) -> ImGuiIO::AddFocusEvent" },
+ { "add_input_character", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_input_character, METH_VARARGS | METH_KEYWORDS, "add_input_character(c) -> ImGuiIO::AddInputCharacter" },
+ { "add_input_character_utf16", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_input_character_utf16, METH_VARARGS | METH_KEYWORDS, "add_input_character_utf16(c) -> ImGuiIO::AddInputCharacterUTF16" },
+ { "add_input_characters_utf8", (PyCFunction)(void (*)(void))bid_ImGuiIO_add_input_characters_utf8, METH_VARARGS | METH_KEYWORDS, "add_input_characters_utf8(str) -> ImGuiIO::AddInputCharactersUTF8" },
+ { "set_key_event_native_data", (PyCFunction)(void (*)(void))bid_ImGuiIO_set_key_event_native_data, METH_VARARGS | METH_KEYWORDS, "set_key_event_native_data(key, native_keycode, native_scancode, native_legacy_index=- 1) -> ImGuiIO::SetKeyEventNativeData" },
+ { "set_app_accepting_events", (PyCFunction)(void (*)(void))bid_ImGuiIO_set_app_accepting_events, METH_VARARGS | METH_KEYWORDS, "set_app_accepting_events(accepting_events) -> ImGuiIO::SetAppAcceptingEvents" },
+ { "clear_events_queue", (PyCFunction)(void (*)(void))bid_ImGuiIO_clear_events_queue, METH_VARARGS | METH_KEYWORDS, "clear_events_queue() -> ImGuiIO::ClearEventsQueue" },
+ { "clear_input_keys", (PyCFunction)(void (*)(void))bid_ImGuiIO_clear_input_keys, METH_VARARGS | METH_KEYWORDS, "clear_input_keys() -> ImGuiIO::ClearInputKeys" },
+ { "clear_input_mouse", (PyCFunction)(void (*)(void))bid_ImGuiIO_clear_input_mouse, METH_VARARGS | METH_KEYWORDS, "clear_input_mouse() -> ImGuiIO::ClearInputMouse" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiIO[] = {
+ BI_FIELD(ImGuiIO, ConfigFlags, "config_flags"),
+ BI_FIELD(ImGuiIO, ConfigFlags, "ConfigFlags"),
+ BI_FIELD(ImGuiIO, BackendFlags, "backend_flags"),
+ BI_FIELD(ImGuiIO, BackendFlags, "BackendFlags"),
+ BI_FIELD(ImGuiIO, DisplaySize, "display_size"),
+ BI_FIELD(ImGuiIO, DisplaySize, "DisplaySize"),
+ BI_FIELD(ImGuiIO, DisplayFramebufferScale, "display_framebuffer_scale"),
+ BI_FIELD(ImGuiIO, DisplayFramebufferScale, "DisplayFramebufferScale"),
+ BI_FIELD(ImGuiIO, DeltaTime, "delta_time"),
+ BI_FIELD(ImGuiIO, DeltaTime, "DeltaTime"),
+ BI_FIELD(ImGuiIO, IniSavingRate, "ini_saving_rate"),
+ BI_FIELD(ImGuiIO, IniSavingRate, "IniSavingRate"),
+ BI_FIELD(ImGuiIO, IniFilename, "ini_filename"),
+ BI_FIELD(ImGuiIO, IniFilename, "IniFilename"),
+ BI_FIELD(ImGuiIO, LogFilename, "log_filename"),
+ BI_FIELD(ImGuiIO, LogFilename, "LogFilename"),
+ BI_FIELD(ImGuiIO, UserData, "user_data"),
+ BI_FIELD(ImGuiIO, UserData, "UserData"),
+ BI_FIELD(ImGuiIO, Fonts, "fonts"),
+ BI_FIELD(ImGuiIO, Fonts, "Fonts"),
+ BI_FIELD(ImGuiIO, FontDefault, "font_default"),
+ BI_FIELD(ImGuiIO, FontDefault, "FontDefault"),
+ BI_FIELD(ImGuiIO, FontAllowUserScaling, "font_allow_user_scaling"),
+ BI_FIELD(ImGuiIO, FontAllowUserScaling, "FontAllowUserScaling"),
+ BI_FIELD(ImGuiIO, ConfigNavSwapGamepadButtons, "config_nav_swap_gamepad_buttons"),
+ BI_FIELD(ImGuiIO, ConfigNavSwapGamepadButtons, "ConfigNavSwapGamepadButtons"),
+ BI_FIELD(ImGuiIO, ConfigNavMoveSetMousePos, "config_nav_move_set_mouse_pos"),
+ BI_FIELD(ImGuiIO, ConfigNavMoveSetMousePos, "ConfigNavMoveSetMousePos"),
+ BI_FIELD(ImGuiIO, ConfigNavCaptureKeyboard, "config_nav_capture_keyboard"),
+ BI_FIELD(ImGuiIO, ConfigNavCaptureKeyboard, "ConfigNavCaptureKeyboard"),
+ BI_FIELD(ImGuiIO, ConfigNavEscapeClearFocusItem, "config_nav_escape_clear_focus_item"),
+ BI_FIELD(ImGuiIO, ConfigNavEscapeClearFocusItem, "ConfigNavEscapeClearFocusItem"),
+ BI_FIELD(ImGuiIO, ConfigNavEscapeClearFocusWindow, "config_nav_escape_clear_focus_window"),
+ BI_FIELD(ImGuiIO, ConfigNavEscapeClearFocusWindow, "ConfigNavEscapeClearFocusWindow"),
+ BI_FIELD(ImGuiIO, ConfigNavCursorVisibleAuto, "config_nav_cursor_visible_auto"),
+ BI_FIELD(ImGuiIO, ConfigNavCursorVisibleAuto, "ConfigNavCursorVisibleAuto"),
+ BI_FIELD(ImGuiIO, ConfigNavCursorVisibleAlways, "config_nav_cursor_visible_always"),
+ BI_FIELD(ImGuiIO, ConfigNavCursorVisibleAlways, "ConfigNavCursorVisibleAlways"),
+ BI_FIELD(ImGuiIO, ConfigMacOSXBehaviors, "config_mac_osx_behaviors"),
+ BI_FIELD(ImGuiIO, ConfigMacOSXBehaviors, "ConfigMacOSXBehaviors"),
+ BI_FIELD(ImGuiIO, ConfigInputTrickleEventQueue, "config_input_trickle_event_queue"),
+ BI_FIELD(ImGuiIO, ConfigInputTrickleEventQueue, "ConfigInputTrickleEventQueue"),
+ BI_FIELD(ImGuiIO, ConfigInputTextCursorBlink, "config_input_text_cursor_blink"),
+ BI_FIELD(ImGuiIO, ConfigInputTextCursorBlink, "ConfigInputTextCursorBlink"),
+ BI_FIELD(ImGuiIO, ConfigInputTextEnterKeepActive, "config_input_text_enter_keep_active"),
+ BI_FIELD(ImGuiIO, ConfigInputTextEnterKeepActive, "ConfigInputTextEnterKeepActive"),
+ BI_FIELD(ImGuiIO, ConfigColorEditFlags, "config_color_edit_flags"),
+ BI_FIELD(ImGuiIO, ConfigColorEditFlags, "ConfigColorEditFlags"),
+ BI_FIELD(ImGuiIO, ConfigDragClickToInputText, "config_drag_click_to_input_text"),
+ BI_FIELD(ImGuiIO, ConfigDragClickToInputText, "ConfigDragClickToInputText"),
+ BI_FIELD(ImGuiIO, ConfigWindowsResizeFromEdges, "config_windows_resize_from_edges"),
+ BI_FIELD(ImGuiIO, ConfigWindowsResizeFromEdges, "ConfigWindowsResizeFromEdges"),
+ BI_FIELD(ImGuiIO, ConfigWindowsMoveFromTitleBarOnly, "config_windows_move_from_title_bar_only"),
+ BI_FIELD(ImGuiIO, ConfigWindowsMoveFromTitleBarOnly, "ConfigWindowsMoveFromTitleBarOnly"),
+ BI_FIELD(ImGuiIO, ConfigWindowsCopyContentsWithCtrlC, "config_windows_copy_contents_with_ctrl_c"),
+ BI_FIELD(ImGuiIO, ConfigWindowsCopyContentsWithCtrlC, "ConfigWindowsCopyContentsWithCtrlC"),
+ BI_FIELD(ImGuiIO, ConfigScrollbarScrollByPage, "config_scrollbar_scroll_by_page"),
+ BI_FIELD(ImGuiIO, ConfigScrollbarScrollByPage, "ConfigScrollbarScrollByPage"),
+ BI_FIELD(ImGuiIO, ConfigIniSettingsSaveLastUsedDate, "config_ini_settings_save_last_used_date"),
+ BI_FIELD(ImGuiIO, ConfigIniSettingsSaveLastUsedDate, "ConfigIniSettingsSaveLastUsedDate"),
+ BI_FIELD(ImGuiIO, ConfigIniSettingsAutoDiscardMonths, "config_ini_settings_auto_discard_months"),
+ BI_FIELD(ImGuiIO, ConfigIniSettingsAutoDiscardMonths, "ConfigIniSettingsAutoDiscardMonths"),
+ BI_FIELD(ImGuiIO, ConfigDebugIniSettings, "config_debug_ini_settings"),
+ BI_FIELD(ImGuiIO, ConfigDebugIniSettings, "ConfigDebugIniSettings"),
+ BI_FIELD(ImGuiIO, MouseDrawCursor, "mouse_draw_cursor"),
+ BI_FIELD(ImGuiIO, MouseDrawCursor, "MouseDrawCursor"),
+ BI_FIELD(ImGuiIO, ConfigMemoryCompactTimer, "config_memory_compact_timer"),
+ BI_FIELD(ImGuiIO, ConfigMemoryCompactTimer, "ConfigMemoryCompactTimer"),
+ BI_FIELD(ImGuiIO, MouseDoubleClickTime, "mouse_double_click_time"),
+ BI_FIELD(ImGuiIO, MouseDoubleClickTime, "MouseDoubleClickTime"),
+ BI_FIELD(ImGuiIO, MouseDoubleClickMaxDist, "mouse_double_click_max_dist"),
+ BI_FIELD(ImGuiIO, MouseDoubleClickMaxDist, "MouseDoubleClickMaxDist"),
+ BI_FIELD(ImGuiIO, MouseSingleClickDelay, "mouse_single_click_delay"),
+ BI_FIELD(ImGuiIO, MouseSingleClickDelay, "MouseSingleClickDelay"),
+ BI_FIELD(ImGuiIO, MouseDragThreshold, "mouse_drag_threshold"),
+ BI_FIELD(ImGuiIO, MouseDragThreshold, "MouseDragThreshold"),
+ BI_FIELD(ImGuiIO, KeyRepeatDelay, "key_repeat_delay"),
+ BI_FIELD(ImGuiIO, KeyRepeatDelay, "KeyRepeatDelay"),
+ BI_FIELD(ImGuiIO, KeyRepeatRate, "key_repeat_rate"),
+ BI_FIELD(ImGuiIO, KeyRepeatRate, "KeyRepeatRate"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecovery, "config_error_recovery"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecovery, "ConfigErrorRecovery"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableAssert, "config_error_recovery_enable_assert"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableAssert, "ConfigErrorRecoveryEnableAssert"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableDebugLog, "config_error_recovery_enable_debug_log"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableDebugLog, "ConfigErrorRecoveryEnableDebugLog"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableTooltip, "config_error_recovery_enable_tooltip"),
+ BI_FIELD(ImGuiIO, ConfigErrorRecoveryEnableTooltip, "ConfigErrorRecoveryEnableTooltip"),
+ BI_FIELD(ImGuiIO, ConfigDebugIsDebuggerPresent, "config_debug_is_debugger_present"),
+ BI_FIELD(ImGuiIO, ConfigDebugIsDebuggerPresent, "ConfigDebugIsDebuggerPresent"),
+ BI_FIELD(ImGuiIO, ConfigDebugHighlightIdConflicts, "config_debug_highlight_id_conflicts"),
+ BI_FIELD(ImGuiIO, ConfigDebugHighlightIdConflicts, "ConfigDebugHighlightIdConflicts"),
+ BI_FIELD(ImGuiIO, ConfigDebugHighlightIdConflictsShowItemPicker, "config_debug_highlight_id_conflicts_show_item_picker"),
+ BI_FIELD(ImGuiIO, ConfigDebugHighlightIdConflictsShowItemPicker, "ConfigDebugHighlightIdConflictsShowItemPicker"),
+ BI_FIELD(ImGuiIO, ConfigDebugBeginReturnValueOnce, "config_debug_begin_return_value_once"),
+ BI_FIELD(ImGuiIO, ConfigDebugBeginReturnValueOnce, "ConfigDebugBeginReturnValueOnce"),
+ BI_FIELD(ImGuiIO, ConfigDebugBeginReturnValueLoop, "config_debug_begin_return_value_loop"),
+ BI_FIELD(ImGuiIO, ConfigDebugBeginReturnValueLoop, "ConfigDebugBeginReturnValueLoop"),
+ BI_FIELD(ImGuiIO, ConfigDebugIgnoreFocusLoss, "config_debug_ignore_focus_loss"),
+ BI_FIELD(ImGuiIO, ConfigDebugIgnoreFocusLoss, "ConfigDebugIgnoreFocusLoss"),
+ BI_FIELD(ImGuiIO, ConfigDebugDrawListDefaultsToStrokeLegacy, "config_debug_draw_list_defaults_to_stroke_legacy"),
+ BI_FIELD(ImGuiIO, ConfigDebugDrawListDefaultsToStrokeLegacy, "ConfigDebugDrawListDefaultsToStrokeLegacy"),
+ BI_FIELD(ImGuiIO, BackendPlatformName, "backend_platform_name"),
+ BI_FIELD(ImGuiIO, BackendPlatformName, "BackendPlatformName"),
+ BI_FIELD(ImGuiIO, BackendRendererName, "backend_renderer_name"),
+ BI_FIELD(ImGuiIO, BackendRendererName, "BackendRendererName"),
+ BI_FIELD(ImGuiIO, BackendPlatformUserData, "backend_platform_user_data"),
+ BI_FIELD(ImGuiIO, BackendPlatformUserData, "BackendPlatformUserData"),
+ BI_FIELD(ImGuiIO, BackendRendererUserData, "backend_renderer_user_data"),
+ BI_FIELD(ImGuiIO, BackendRendererUserData, "BackendRendererUserData"),
+ BI_FIELD(ImGuiIO, BackendLanguageUserData, "backend_language_user_data"),
+ BI_FIELD(ImGuiIO, BackendLanguageUserData, "BackendLanguageUserData"),
+ BI_FIELD(ImGuiIO, WantCaptureMouse, "want_capture_mouse"),
+ BI_FIELD(ImGuiIO, WantCaptureMouse, "WantCaptureMouse"),
+ BI_FIELD(ImGuiIO, WantCaptureKeyboard, "want_capture_keyboard"),
+ BI_FIELD(ImGuiIO, WantCaptureKeyboard, "WantCaptureKeyboard"),
+ BI_FIELD(ImGuiIO, WantTextInput, "want_text_input"),
+ BI_FIELD(ImGuiIO, WantTextInput, "WantTextInput"),
+ BI_FIELD(ImGuiIO, WantSetMousePos, "want_set_mouse_pos"),
+ BI_FIELD(ImGuiIO, WantSetMousePos, "WantSetMousePos"),
+ BI_FIELD(ImGuiIO, WantSaveIniSettings, "want_save_ini_settings"),
+ BI_FIELD(ImGuiIO, WantSaveIniSettings, "WantSaveIniSettings"),
+ BI_FIELD(ImGuiIO, NavActive, "nav_active"),
+ BI_FIELD(ImGuiIO, NavActive, "NavActive"),
+ BI_FIELD(ImGuiIO, NavVisible, "nav_visible"),
+ BI_FIELD(ImGuiIO, NavVisible, "NavVisible"),
+ BI_FIELD(ImGuiIO, Framerate, "framerate"),
+ BI_FIELD(ImGuiIO, Framerate, "Framerate"),
+ BI_FIELD(ImGuiIO, MetricsRenderVertices, "metrics_render_vertices"),
+ BI_FIELD(ImGuiIO, MetricsRenderVertices, "MetricsRenderVertices"),
+ BI_FIELD(ImGuiIO, MetricsRenderIndices, "metrics_render_indices"),
+ BI_FIELD(ImGuiIO, MetricsRenderIndices, "MetricsRenderIndices"),
+ BI_FIELD(ImGuiIO, MetricsRenderWindows, "metrics_render_windows"),
+ BI_FIELD(ImGuiIO, MetricsRenderWindows, "MetricsRenderWindows"),
+ BI_FIELD(ImGuiIO, MetricsActiveWindows, "metrics_active_windows"),
+ BI_FIELD(ImGuiIO, MetricsActiveWindows, "MetricsActiveWindows"),
+ BI_FIELD(ImGuiIO, MouseDelta, "mouse_delta"),
+ BI_FIELD(ImGuiIO, MouseDelta, "MouseDelta"),
+ BI_FIELD(ImGuiIO, Ctx, "ctx"),
+ BI_FIELD(ImGuiIO, Ctx, "Ctx"),
+ BI_FIELD(ImGuiIO, MousePos, "mouse_pos"),
+ BI_FIELD(ImGuiIO, MousePos, "MousePos"),
+ BI_FIELD(ImGuiIO, MouseDown, "mouse_down"),
+ BI_FIELD(ImGuiIO, MouseDown, "MouseDown"),
+ BI_FIELD(ImGuiIO, MouseWheel, "mouse_wheel"),
+ BI_FIELD(ImGuiIO, MouseWheel, "MouseWheel"),
+ BI_FIELD(ImGuiIO, MouseWheelH, "mouse_wheel_h"),
+ BI_FIELD(ImGuiIO, MouseWheelH, "MouseWheelH"),
+ BI_FIELD(ImGuiIO, MouseSource, "mouse_source"),
+ BI_FIELD(ImGuiIO, MouseSource, "MouseSource"),
+ BI_FIELD(ImGuiIO, KeyCtrl, "key_ctrl"),
+ BI_FIELD(ImGuiIO, KeyCtrl, "KeyCtrl"),
+ BI_FIELD(ImGuiIO, KeyShift, "key_shift"),
+ BI_FIELD(ImGuiIO, KeyShift, "KeyShift"),
+ BI_FIELD(ImGuiIO, KeyAlt, "key_alt"),
+ BI_FIELD(ImGuiIO, KeyAlt, "KeyAlt"),
+ BI_FIELD(ImGuiIO, KeySuper, "key_super"),
+ BI_FIELD(ImGuiIO, KeySuper, "KeySuper"),
+ BI_FIELD(ImGuiIO, KeyMods, "key_mods"),
+ BI_FIELD(ImGuiIO, KeyMods, "KeyMods"),
+ BI_FIELD(ImGuiIO, KeysData, "keys_data"),
+ BI_FIELD(ImGuiIO, KeysData, "KeysData"),
+ BI_FIELD(ImGuiIO, WantCaptureMouseUnlessPopupClose, "want_capture_mouse_unless_popup_close"),
+ BI_FIELD(ImGuiIO, WantCaptureMouseUnlessPopupClose, "WantCaptureMouseUnlessPopupClose"),
+ BI_FIELD(ImGuiIO, MousePosPrev, "mouse_pos_prev"),
+ BI_FIELD(ImGuiIO, MousePosPrev, "MousePosPrev"),
+ BI_FIELD(ImGuiIO, MouseClickedPos, "mouse_clicked_pos"),
+ BI_FIELD(ImGuiIO, MouseClickedPos, "MouseClickedPos"),
+ BI_FIELD(ImGuiIO, MouseClickedTime, "mouse_clicked_time"),
+ BI_FIELD(ImGuiIO, MouseClickedTime, "MouseClickedTime"),
+ BI_FIELD(ImGuiIO, MouseClicked, "mouse_clicked"),
+ BI_FIELD(ImGuiIO, MouseClicked, "MouseClicked"),
+ BI_FIELD(ImGuiIO, MouseDoubleClicked, "mouse_double_clicked"),
+ BI_FIELD(ImGuiIO, MouseDoubleClicked, "MouseDoubleClicked"),
+ BI_FIELD(ImGuiIO, MouseClickedCount, "mouse_clicked_count"),
+ BI_FIELD(ImGuiIO, MouseClickedCount, "MouseClickedCount"),
+ BI_FIELD(ImGuiIO, MouseClickedLastCount, "mouse_clicked_last_count"),
+ BI_FIELD(ImGuiIO, MouseClickedLastCount, "MouseClickedLastCount"),
+ BI_FIELD(ImGuiIO, MouseReleased, "mouse_released"),
+ BI_FIELD(ImGuiIO, MouseReleased, "MouseReleased"),
+ BI_FIELD(ImGuiIO, MouseReleasedTime, "mouse_released_time"),
+ BI_FIELD(ImGuiIO, MouseReleasedTime, "MouseReleasedTime"),
+ BI_FIELD(ImGuiIO, MouseDownOwned, "mouse_down_owned"),
+ BI_FIELD(ImGuiIO, MouseDownOwned, "MouseDownOwned"),
+ BI_FIELD(ImGuiIO, MouseDownOwnedUnlessPopupClose, "mouse_down_owned_unless_popup_close"),
+ BI_FIELD(ImGuiIO, MouseDownOwnedUnlessPopupClose, "MouseDownOwnedUnlessPopupClose"),
+ BI_FIELD(ImGuiIO, MouseWheelRequestAxisSwap, "mouse_wheel_request_axis_swap"),
+ BI_FIELD(ImGuiIO, MouseWheelRequestAxisSwap, "MouseWheelRequestAxisSwap"),
+ BI_FIELD(ImGuiIO, MouseCtrlLeftAsRightClick, "mouse_ctrl_left_as_right_click"),
+ BI_FIELD(ImGuiIO, MouseCtrlLeftAsRightClick, "MouseCtrlLeftAsRightClick"),
+ BI_FIELD(ImGuiIO, MouseDownDuration, "mouse_down_duration"),
+ BI_FIELD(ImGuiIO, MouseDownDuration, "MouseDownDuration"),
+ BI_FIELD(ImGuiIO, MouseDownDurationPrev, "mouse_down_duration_prev"),
+ BI_FIELD(ImGuiIO, MouseDownDurationPrev, "MouseDownDurationPrev"),
+ BI_FIELD(ImGuiIO, MouseDragMaxDistanceSqr, "mouse_drag_max_distance_sqr"),
+ BI_FIELD(ImGuiIO, MouseDragMaxDistanceSqr, "MouseDragMaxDistanceSqr"),
+ BI_FIELD(ImGuiIO, PenPressure, "pen_pressure"),
+ BI_FIELD(ImGuiIO, PenPressure, "PenPressure"),
+ BI_FIELD(ImGuiIO, AppFocusLost, "app_focus_lost"),
+ BI_FIELD(ImGuiIO, AppFocusLost, "AppFocusLost"),
+ BI_FIELD(ImGuiIO, AppAcceptingEvents, "app_accepting_events"),
+ BI_FIELD(ImGuiIO, AppAcceptingEvents, "AppAcceptingEvents"),
+ BI_FIELD(ImGuiIO, InputQueueSurrogate, "input_queue_surrogate"),
+ BI_FIELD(ImGuiIO, InputQueueSurrogate, "InputQueueSurrogate"),
+ BI_FIELD(ImGuiIO, InputQueueCharacters, "input_queue_characters"),
+ BI_FIELD(ImGuiIO, InputQueueCharacters, "InputQueueCharacters"),
+ BI_FIELD(ImGuiIO, FontGlobalScale, "font_global_scale"),
+ BI_FIELD(ImGuiIO, FontGlobalScale, "FontGlobalScale"),
+};
+static PyMethodDef bi_methods_ImGuiInputTextCallbackData[] = {
+ { "delete_chars", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_delete_chars, METH_VARARGS | METH_KEYWORDS, "delete_chars(pos, bytes_count) -> ImGuiInputTextCallbackData::DeleteChars" },
+ { "insert_chars", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_insert_chars, METH_VARARGS | METH_KEYWORDS, "insert_chars(pos, text, text_end=NULL) -> ImGuiInputTextCallbackData::InsertChars" },
+ { "select_all", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_select_all, METH_VARARGS | METH_KEYWORDS, "select_all() -> ImGuiInputTextCallbackData::SelectAll" },
+ { "set_selection", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_set_selection, METH_VARARGS | METH_KEYWORDS, "set_selection(s, e) -> ImGuiInputTextCallbackData::SetSelection" },
+ { "clear_selection", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_clear_selection, METH_VARARGS | METH_KEYWORDS, "clear_selection() -> ImGuiInputTextCallbackData::ClearSelection" },
+ { "has_selection", (PyCFunction)(void (*)(void))bid_ImGuiInputTextCallbackData_has_selection, METH_VARARGS | METH_KEYWORDS, "has_selection() -> ImGuiInputTextCallbackData::HasSelection" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiInputTextCallbackData[] = {
+ BI_FIELD(ImGuiInputTextCallbackData, Ctx, "ctx"),
+ BI_FIELD(ImGuiInputTextCallbackData, Ctx, "Ctx"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventFlag, "event_flag"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventFlag, "EventFlag"),
+ BI_FIELD(ImGuiInputTextCallbackData, Flags, "flags"),
+ BI_FIELD(ImGuiInputTextCallbackData, Flags, "Flags"),
+ BI_FIELD(ImGuiInputTextCallbackData, UserData, "user_data"),
+ BI_FIELD(ImGuiInputTextCallbackData, UserData, "UserData"),
+ BI_FIELD(ImGuiInputTextCallbackData, ID, "id"),
+ BI_FIELD(ImGuiInputTextCallbackData, ID, "ID"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventKey, "event_key"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventKey, "EventKey"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventChar, "event_char"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventChar, "EventChar"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventActivated, "event_activated"),
+ BI_FIELD(ImGuiInputTextCallbackData, EventActivated, "EventActivated"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufDirty, "buf_dirty"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufDirty, "BufDirty"),
+ BI_FIELD(ImGuiInputTextCallbackData, Buf, "buf"),
+ BI_FIELD(ImGuiInputTextCallbackData, Buf, "Buf"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufTextLen, "buf_text_len"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufTextLen, "BufTextLen"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufSize, "buf_size"),
+ BI_FIELD(ImGuiInputTextCallbackData, BufSize, "BufSize"),
+ BI_FIELD(ImGuiInputTextCallbackData, CursorPos, "cursor_pos"),
+ BI_FIELD(ImGuiInputTextCallbackData, CursorPos, "CursorPos"),
+ BI_FIELD(ImGuiInputTextCallbackData, SelectionStart, "selection_start"),
+ BI_FIELD(ImGuiInputTextCallbackData, SelectionStart, "SelectionStart"),
+ BI_FIELD(ImGuiInputTextCallbackData, SelectionEnd, "selection_end"),
+ BI_FIELD(ImGuiInputTextCallbackData, SelectionEnd, "SelectionEnd"),
+};
+static BiField bi_fields_ImGuiSizeCallbackData[] = {
+ BI_FIELD(ImGuiSizeCallbackData, UserData, "user_data"),
+ BI_FIELD(ImGuiSizeCallbackData, UserData, "UserData"),
+ BI_FIELD(ImGuiSizeCallbackData, Pos, "pos"),
+ BI_FIELD(ImGuiSizeCallbackData, Pos, "Pos"),
+ BI_FIELD(ImGuiSizeCallbackData, CurrentSize, "current_size"),
+ BI_FIELD(ImGuiSizeCallbackData, CurrentSize, "CurrentSize"),
+ BI_FIELD(ImGuiSizeCallbackData, DesiredSize, "desired_size"),
+ BI_FIELD(ImGuiSizeCallbackData, DesiredSize, "DesiredSize"),
+};
+static PyMethodDef bi_methods_ImGuiPayload[] = {
+ { "clear", (PyCFunction)(void (*)(void))bid_ImGuiPayload_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImGuiPayload::Clear" },
+ { "is_data_type", (PyCFunction)(void (*)(void))bid_ImGuiPayload_is_data_type, METH_VARARGS | METH_KEYWORDS, "is_data_type(type) -> ImGuiPayload::IsDataType" },
+ { "is_preview", (PyCFunction)(void (*)(void))bid_ImGuiPayload_is_preview, METH_VARARGS | METH_KEYWORDS, "is_preview() -> ImGuiPayload::IsPreview" },
+ { "is_delivery", (PyCFunction)(void (*)(void))bid_ImGuiPayload_is_delivery, METH_VARARGS | METH_KEYWORDS, "is_delivery() -> ImGuiPayload::IsDelivery" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiPayload[] = {
+ BI_FIELD(ImGuiPayload, Data, "data"),
+ BI_FIELD(ImGuiPayload, Data, "Data"),
+ BI_FIELD(ImGuiPayload, DataSize, "data_size"),
+ BI_FIELD(ImGuiPayload, DataSize, "DataSize"),
+ BI_FIELD(ImGuiPayload, SourceId, "source_id"),
+ BI_FIELD(ImGuiPayload, SourceId, "SourceId"),
+ BI_FIELD(ImGuiPayload, SourceParentId, "source_parent_id"),
+ BI_FIELD(ImGuiPayload, SourceParentId, "SourceParentId"),
+ BI_FIELD(ImGuiPayload, DataFrameCount, "data_frame_count"),
+ BI_FIELD(ImGuiPayload, DataFrameCount, "DataFrameCount"),
+ BI_FIELD(ImGuiPayload, DataType, "data_type"),
+ BI_FIELD(ImGuiPayload, DataType, "DataType"),
+ BI_FIELD(ImGuiPayload, Preview, "preview"),
+ BI_FIELD(ImGuiPayload, Preview, "Preview"),
+ BI_FIELD(ImGuiPayload, Delivery, "delivery"),
+ BI_FIELD(ImGuiPayload, Delivery, "Delivery"),
+};
+static BiField bi_fields_ImGuiOnceUponAFrame[] = {
+ BI_FIELD(ImGuiOnceUponAFrame, RefFrame, "ref_frame"),
+ BI_FIELD(ImGuiOnceUponAFrame, RefFrame, "RefFrame"),
+};
+static PyMethodDef bi_methods_ImGuiTextFilter[] = {
+ { "pass_filter", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_pass_filter, METH_VARARGS | METH_KEYWORDS, "pass_filter(text, text_end=NULL) -> ImGuiTextFilter::PassFilter" },
+ { "build", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_build, METH_VARARGS | METH_KEYWORDS, "build() -> ImGuiTextFilter::Build" },
+ { "clear", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImGuiTextFilter::Clear" },
+ { "is_active", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_is_active, METH_VARARGS | METH_KEYWORDS, "is_active() -> ImGuiTextFilter::IsActive" },
+ { "draw", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_draw, METH_VARARGS | METH_KEYWORDS, "draw(label=\"Filter\") -> ImGuiTextFilter::Draw" },
+ { "draw_with_hint", (PyCFunction)(void (*)(void))bid_ImGuiTextFilter_draw_with_hint, METH_VARARGS | METH_KEYWORDS, "draw_with_hint(label=\"Filter\", hint=\"incl -excl\") -> ImGuiTextFilter::DrawWithHint" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiTextFilter[] = {
+ BI_FIELD(ImGuiTextFilter, InputBuf, "input_buf"),
+ BI_FIELD(ImGuiTextFilter, InputBuf, "InputBuf"),
+ BI_FIELD(ImGuiTextFilter, _CountExclude, "_count_exclude"),
+ BI_FIELD(ImGuiTextFilter, _CountExclude, "_CountExclude"),
+ BI_FIELD(ImGuiTextFilter, _Items, "_items"),
+ BI_FIELD(ImGuiTextFilter, _Items, "_Items"),
+};
+static PyMethodDef bi_methods_ImGuiTextBuffer[] = {
+ { "begin", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_begin, METH_VARARGS | METH_KEYWORDS, "begin() -> ImGuiTextBuffer::begin" },
+ { "end", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_end, METH_VARARGS | METH_KEYWORDS, "end() -> ImGuiTextBuffer::end" },
+ { "size", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_size, METH_VARARGS | METH_KEYWORDS, "size() -> ImGuiTextBuffer::size" },
+ { "empty", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_empty, METH_VARARGS | METH_KEYWORDS, "empty() -> ImGuiTextBuffer::empty" },
+ { "clear", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImGuiTextBuffer::clear" },
+ { "resize", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_resize, METH_VARARGS | METH_KEYWORDS, "resize(size) -> ImGuiTextBuffer::resize" },
+ { "reserve", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_reserve, METH_VARARGS | METH_KEYWORDS, "reserve(capacity) -> ImGuiTextBuffer::reserve" },
+ { "c_str", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_c_str, METH_VARARGS | METH_KEYWORDS, "c_str() -> ImGuiTextBuffer::c_str" },
+ { "append", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_append, METH_VARARGS | METH_KEYWORDS, "append(str, str_end=NULL) -> ImGuiTextBuffer::append" },
+ { "appendf", (PyCFunction)(void (*)(void))bid_ImGuiTextBuffer_appendf, METH_VARARGS | METH_KEYWORDS, "appendf(text) -> ImGuiTextBuffer::appendf" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiTextBuffer[] = {
+ BI_FIELD(ImGuiTextBuffer, Buf, "buf"),
+ BI_FIELD(ImGuiTextBuffer, Buf, "Buf"),
+};
+static BiField bi_fields_ImGuiStoragePair[] = {
+ BI_FIELD(ImGuiStoragePair, key, "key"),
+ BI_FIELD(ImGuiStoragePair, val_i, "val_i"),
+ BI_FIELD(ImGuiStoragePair, val_f, "val_f"),
+ BI_FIELD(ImGuiStoragePair, val_p, "val_p"),
+};
+static PyMethodDef bi_methods_ImGuiStorage[] = {
+ { "clear", (PyCFunction)(void (*)(void))bid_ImGuiStorage_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImGuiStorage::Clear" },
+ { "get_int", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_int, METH_VARARGS | METH_KEYWORDS, "get_int(key, default_val=0) -> ImGuiStorage::GetInt" },
+ { "set_int", (PyCFunction)(void (*)(void))bid_ImGuiStorage_set_int, METH_VARARGS | METH_KEYWORDS, "set_int(key, val) -> ImGuiStorage::SetInt" },
+ { "get_bool", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_bool, METH_VARARGS | METH_KEYWORDS, "get_bool(key, default_val=false) -> ImGuiStorage::GetBool" },
+ { "set_bool", (PyCFunction)(void (*)(void))bid_ImGuiStorage_set_bool, METH_VARARGS | METH_KEYWORDS, "set_bool(key, val) -> ImGuiStorage::SetBool" },
+ { "get_float", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_float, METH_VARARGS | METH_KEYWORDS, "get_float(key, default_val=0.0f) -> ImGuiStorage::GetFloat" },
+ { "set_float", (PyCFunction)(void (*)(void))bid_ImGuiStorage_set_float, METH_VARARGS | METH_KEYWORDS, "set_float(key, val) -> ImGuiStorage::SetFloat" },
+ { "get_void_ptr", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_void_ptr, METH_VARARGS | METH_KEYWORDS, "get_void_ptr(key) -> ImGuiStorage::GetVoidPtr" },
+ { "get_int_ref", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_int_ref, METH_VARARGS | METH_KEYWORDS, "get_int_ref(key, default_val=0) -> ImGuiStorage::GetIntRef" },
+ { "get_bool_ref", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_bool_ref, METH_VARARGS | METH_KEYWORDS, "get_bool_ref(key, default_val=false) -> ImGuiStorage::GetBoolRef" },
+ { "get_float_ref", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_float_ref, METH_VARARGS | METH_KEYWORDS, "get_float_ref(key, default_val=0.0f) -> ImGuiStorage::GetFloatRef" },
+ { "get_void_ptr_ref", (PyCFunction)(void (*)(void))bid_ImGuiStorage_get_void_ptr_ref, METH_VARARGS | METH_KEYWORDS, "get_void_ptr_ref(key) -> ImGuiStorage::GetVoidPtrRef" },
+ { "build_sort_by_key", (PyCFunction)(void (*)(void))bid_ImGuiStorage_build_sort_by_key, METH_VARARGS | METH_KEYWORDS, "build_sort_by_key() -> ImGuiStorage::BuildSortByKey" },
+ { "set_all_int", (PyCFunction)(void (*)(void))bid_ImGuiStorage_set_all_int, METH_VARARGS | METH_KEYWORDS, "set_all_int(val) -> ImGuiStorage::SetAllInt" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiStorage[] = {
+ BI_FIELD(ImGuiStorage, Data, "data"),
+ BI_FIELD(ImGuiStorage, Data, "Data"),
+};
+static PyMethodDef bi_methods_ImGuiListClipper[] = {
+ { "begin", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_begin, METH_VARARGS | METH_KEYWORDS, "begin(items_count, items_height=- 1.0f) -> ImGuiListClipper::Begin" },
+ { "end", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_end, METH_VARARGS | METH_KEYWORDS, "end() -> ImGuiListClipper::End" },
+ { "step", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_step, METH_VARARGS | METH_KEYWORDS, "step() -> ImGuiListClipper::Step" },
+ { "include_item_by_index", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_include_item_by_index, METH_VARARGS | METH_KEYWORDS, "include_item_by_index(item_index) -> ImGuiListClipper::IncludeItemByIndex" },
+ { "include_items_by_index", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_include_items_by_index, METH_VARARGS | METH_KEYWORDS, "include_items_by_index(item_begin, item_end) -> ImGuiListClipper::IncludeItemsByIndex" },
+ { "seek_cursor_for_item", (PyCFunction)(void (*)(void))bid_ImGuiListClipper_seek_cursor_for_item, METH_VARARGS | METH_KEYWORDS, "seek_cursor_for_item(item_index) -> ImGuiListClipper::SeekCursorForItem" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiListClipper[] = {
+ BI_FIELD(ImGuiListClipper, DisplayStart, "display_start"),
+ BI_FIELD(ImGuiListClipper, DisplayStart, "DisplayStart"),
+ BI_FIELD(ImGuiListClipper, DisplayEnd, "display_end"),
+ BI_FIELD(ImGuiListClipper, DisplayEnd, "DisplayEnd"),
+ BI_FIELD(ImGuiListClipper, UserIndex, "user_index"),
+ BI_FIELD(ImGuiListClipper, UserIndex, "UserIndex"),
+ BI_FIELD(ImGuiListClipper, ItemsCount, "items_count"),
+ BI_FIELD(ImGuiListClipper, ItemsCount, "ItemsCount"),
+ BI_FIELD(ImGuiListClipper, ItemsHeight, "items_height"),
+ BI_FIELD(ImGuiListClipper, ItemsHeight, "ItemsHeight"),
+ BI_FIELD(ImGuiListClipper, Flags, "flags"),
+ BI_FIELD(ImGuiListClipper, Flags, "Flags"),
+ BI_FIELD(ImGuiListClipper, StartPosY, "start_pos_y"),
+ BI_FIELD(ImGuiListClipper, StartPosY, "StartPosY"),
+ BI_FIELD(ImGuiListClipper, StartSeekOffsetY, "start_seek_offset_y"),
+ BI_FIELD(ImGuiListClipper, StartSeekOffsetY, "StartSeekOffsetY"),
+ BI_FIELD(ImGuiListClipper, Ctx, "ctx"),
+ BI_FIELD(ImGuiListClipper, Ctx, "Ctx"),
+ BI_FIELD(ImGuiListClipper, TempData, "temp_data"),
+ BI_FIELD(ImGuiListClipper, TempData, "TempData"),
+};
+static PyMethodDef bi_methods_ImColor[] = {
+ { "set_hsv", (PyCFunction)(void (*)(void))bid_ImColor_set_hsv, METH_VARARGS | METH_KEYWORDS, "set_hsv(h, s, v, a=1.0f) -> ImColor::SetHSV" },
+ { "hsv", (PyCFunction)(void (*)(void))bid_ImColor_hsv, METH_VARARGS | METH_KEYWORDS | METH_STATIC, "hsv(h, s, v, a=1.0f) -> ImColor::HSV" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImColor[] = {
+ BI_FIELD(ImColor, Value, "value"),
+ BI_FIELD(ImColor, Value, "Value"),
+};
+static BiField bi_fields_ImGuiMultiSelectIO[] = {
+ BI_FIELD(ImGuiMultiSelectIO, Requests, "requests"),
+ BI_FIELD(ImGuiMultiSelectIO, Requests, "Requests"),
+ BI_FIELD(ImGuiMultiSelectIO, RangeSrcItem, "range_src_item"),
+ BI_FIELD(ImGuiMultiSelectIO, RangeSrcItem, "RangeSrcItem"),
+ BI_FIELD(ImGuiMultiSelectIO, NavIdItem, "nav_id_item"),
+ BI_FIELD(ImGuiMultiSelectIO, NavIdItem, "NavIdItem"),
+ BI_FIELD(ImGuiMultiSelectIO, NavIdSelected, "nav_id_selected"),
+ BI_FIELD(ImGuiMultiSelectIO, NavIdSelected, "NavIdSelected"),
+ BI_FIELD(ImGuiMultiSelectIO, RangeSrcReset, "range_src_reset"),
+ BI_FIELD(ImGuiMultiSelectIO, RangeSrcReset, "RangeSrcReset"),
+ BI_FIELD(ImGuiMultiSelectIO, ItemsCount, "items_count"),
+ BI_FIELD(ImGuiMultiSelectIO, ItemsCount, "ItemsCount"),
+};
+static BiField bi_fields_ImGuiSelectionRequest[] = {
+ BI_FIELD(ImGuiSelectionRequest, Type, "type"),
+ BI_FIELD(ImGuiSelectionRequest, Type, "Type"),
+ BI_FIELD(ImGuiSelectionRequest, Selected, "selected"),
+ BI_FIELD(ImGuiSelectionRequest, Selected, "Selected"),
+ BI_FIELD(ImGuiSelectionRequest, RangeDirection, "range_direction"),
+ BI_FIELD(ImGuiSelectionRequest, RangeDirection, "RangeDirection"),
+ BI_FIELD(ImGuiSelectionRequest, RangeFirstItem, "range_first_item"),
+ BI_FIELD(ImGuiSelectionRequest, RangeFirstItem, "RangeFirstItem"),
+ BI_FIELD(ImGuiSelectionRequest, RangeLastItem, "range_last_item"),
+ BI_FIELD(ImGuiSelectionRequest, RangeLastItem, "RangeLastItem"),
+};
+static PyMethodDef bi_methods_ImGuiSelectionBasicStorage[] = {
+ { "apply_requests", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_apply_requests, METH_VARARGS | METH_KEYWORDS, "apply_requests(ms_io) -> ImGuiSelectionBasicStorage::ApplyRequests" },
+ { "contains", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_contains, METH_VARARGS | METH_KEYWORDS, "contains(id) -> ImGuiSelectionBasicStorage::Contains" },
+ { "clear", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImGuiSelectionBasicStorage::Clear" },
+ { "swap", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_swap, METH_VARARGS | METH_KEYWORDS, "swap(r) -> ImGuiSelectionBasicStorage::Swap" },
+ { "set_item_selected", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_set_item_selected, METH_VARARGS | METH_KEYWORDS, "set_item_selected(id, selected) -> ImGuiSelectionBasicStorage::SetItemSelected" },
+ { "get_storage_id_from_index", (PyCFunction)(void (*)(void))bid_ImGuiSelectionBasicStorage_get_storage_id_from_index, METH_VARARGS | METH_KEYWORDS, "get_storage_id_from_index(idx) -> ImGuiSelectionBasicStorage::GetStorageIdFromIndex" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiSelectionBasicStorage[] = {
+ BI_FIELD(ImGuiSelectionBasicStorage, Size, "size"),
+ BI_FIELD(ImGuiSelectionBasicStorage, Size, "Size"),
+ BI_FIELD(ImGuiSelectionBasicStorage, PreserveOrder, "preserve_order"),
+ BI_FIELD(ImGuiSelectionBasicStorage, PreserveOrder, "PreserveOrder"),
+ BI_FIELD(ImGuiSelectionBasicStorage, UserData, "user_data"),
+ BI_FIELD(ImGuiSelectionBasicStorage, UserData, "UserData"),
+ BI_FIELD(ImGuiSelectionBasicStorage, _SelectionOrder, "_selection_order"),
+ BI_FIELD(ImGuiSelectionBasicStorage, _SelectionOrder, "_SelectionOrder"),
+ BI_FIELD(ImGuiSelectionBasicStorage, _Storage, "_storage"),
+ BI_FIELD(ImGuiSelectionBasicStorage, _Storage, "_Storage"),
+};
+static PyMethodDef bi_methods_ImGuiSelectionExternalStorage[] = {
+ { "apply_requests", (PyCFunction)(void (*)(void))bid_ImGuiSelectionExternalStorage_apply_requests, METH_VARARGS | METH_KEYWORDS, "apply_requests(ms_io) -> ImGuiSelectionExternalStorage::ApplyRequests" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiSelectionExternalStorage[] = {
+ BI_FIELD(ImGuiSelectionExternalStorage, UserData, "user_data"),
+ BI_FIELD(ImGuiSelectionExternalStorage, UserData, "UserData"),
+};
+static PyMethodDef bi_methods_ImDrawCmd[] = {
+ { "get_tex_id", (PyCFunction)(void (*)(void))bid_ImDrawCmd_get_tex_id, METH_VARARGS | METH_KEYWORDS, "get_tex_id() -> ImDrawCmd::GetTexID" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImDrawCmd[] = {
+ BI_FIELD(ImDrawCmd, ClipRect, "clip_rect"),
+ BI_FIELD(ImDrawCmd, ClipRect, "ClipRect"),
+ BI_FIELD(ImDrawCmd, TexRef, "tex_ref"),
+ BI_FIELD(ImDrawCmd, TexRef, "TexRef"),
+ BI_FIELD(ImDrawCmd, VtxOffset, "vtx_offset"),
+ BI_FIELD(ImDrawCmd, VtxOffset, "VtxOffset"),
+ BI_FIELD(ImDrawCmd, IdxOffset, "idx_offset"),
+ BI_FIELD(ImDrawCmd, IdxOffset, "IdxOffset"),
+ BI_FIELD(ImDrawCmd, ElemCount, "elem_count"),
+ BI_FIELD(ImDrawCmd, ElemCount, "ElemCount"),
+ BI_FIELD(ImDrawCmd, UserCallback, "user_callback"),
+ BI_FIELD(ImDrawCmd, UserCallback, "UserCallback"),
+ BI_FIELD(ImDrawCmd, UserCallbackData, "user_callback_data"),
+ BI_FIELD(ImDrawCmd, UserCallbackData, "UserCallbackData"),
+ BI_FIELD(ImDrawCmd, UserCallbackDataSize, "user_callback_data_size"),
+ BI_FIELD(ImDrawCmd, UserCallbackDataSize, "UserCallbackDataSize"),
+ BI_FIELD(ImDrawCmd, UserCallbackDataOffset, "user_callback_data_offset"),
+ BI_FIELD(ImDrawCmd, UserCallbackDataOffset, "UserCallbackDataOffset"),
+};
+static BiField bi_fields_ImDrawVert[] = {
+ BI_FIELD(ImDrawVert, pos, "pos"),
+ BI_FIELD(ImDrawVert, uv, "uv"),
+ BI_FIELD(ImDrawVert, col, "col"),
+};
+static BiField bi_fields_ImDrawCmdHeader[] = {
+ BI_FIELD(ImDrawCmdHeader, ClipRect, "clip_rect"),
+ BI_FIELD(ImDrawCmdHeader, ClipRect, "ClipRect"),
+ BI_FIELD(ImDrawCmdHeader, TexRef, "tex_ref"),
+ BI_FIELD(ImDrawCmdHeader, TexRef, "TexRef"),
+ BI_FIELD(ImDrawCmdHeader, VtxOffset, "vtx_offset"),
+ BI_FIELD(ImDrawCmdHeader, VtxOffset, "VtxOffset"),
+};
+static BiField bi_fields_ImDrawChannel[] = {
+ BI_FIELD(ImDrawChannel, _CmdBuffer, "_cmd_buffer"),
+ BI_FIELD(ImDrawChannel, _CmdBuffer, "_CmdBuffer"),
+ BI_FIELD(ImDrawChannel, _IdxBuffer, "_idx_buffer"),
+ BI_FIELD(ImDrawChannel, _IdxBuffer, "_IdxBuffer"),
+};
+static PyMethodDef bi_methods_ImDrawListSplitter[] = {
+ { "clear", (PyCFunction)(void (*)(void))bid_ImDrawListSplitter_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImDrawListSplitter::Clear" },
+ { "clear_free_memory", (PyCFunction)(void (*)(void))bid_ImDrawListSplitter_clear_free_memory, METH_VARARGS | METH_KEYWORDS, "clear_free_memory() -> ImDrawListSplitter::ClearFreeMemory" },
+ { "split", (PyCFunction)(void (*)(void))bid_ImDrawListSplitter_split, METH_VARARGS | METH_KEYWORDS, "split(draw_list, count) -> ImDrawListSplitter::Split" },
+ { "merge", (PyCFunction)(void (*)(void))bid_ImDrawListSplitter_merge, METH_VARARGS | METH_KEYWORDS, "merge(draw_list) -> ImDrawListSplitter::Merge" },
+ { "set_current_channel", (PyCFunction)(void (*)(void))bid_ImDrawListSplitter_set_current_channel, METH_VARARGS | METH_KEYWORDS, "set_current_channel(draw_list, channel_idx) -> ImDrawListSplitter::SetCurrentChannel" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImDrawListSplitter[] = {
+ BI_FIELD(ImDrawListSplitter, _Current, "_current"),
+ BI_FIELD(ImDrawListSplitter, _Current, "_Current"),
+ BI_FIELD(ImDrawListSplitter, _Count, "_count"),
+ BI_FIELD(ImDrawListSplitter, _Count, "_Count"),
+ BI_FIELD(ImDrawListSplitter, _Channels, "_channels"),
+ BI_FIELD(ImDrawListSplitter, _Channels, "_Channels"),
+};
+static PyMethodDef bi_methods_ImDrawList[] = {
+ { "push_clip_rect", (PyCFunction)(void (*)(void))bid_ImDrawList_push_clip_rect, METH_VARARGS | METH_KEYWORDS, "push_clip_rect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect=false) -> ImDrawList::PushClipRect" },
+ { "push_clip_rect_full_screen", (PyCFunction)(void (*)(void))bid_ImDrawList_push_clip_rect_full_screen, METH_VARARGS | METH_KEYWORDS, "push_clip_rect_full_screen() -> ImDrawList::PushClipRectFullScreen" },
+ { "pop_clip_rect", (PyCFunction)(void (*)(void))bid_ImDrawList_pop_clip_rect, METH_VARARGS | METH_KEYWORDS, "pop_clip_rect() -> ImDrawList::PopClipRect" },
+ { "push_texture", (PyCFunction)(void (*)(void))bid_ImDrawList_push_texture, METH_VARARGS | METH_KEYWORDS, "push_texture(tex_ref) -> ImDrawList::PushTexture" },
+ { "pop_texture", (PyCFunction)(void (*)(void))bid_ImDrawList_pop_texture, METH_VARARGS | METH_KEYWORDS, "pop_texture() -> ImDrawList::PopTexture" },
+ { "push_draw_flag", (PyCFunction)(void (*)(void))bid_ImDrawList_push_draw_flag, METH_VARARGS | METH_KEYWORDS, "push_draw_flag(flags, enabled) -> ImDrawList::PushDrawFlag" },
+ { "pop_draw_flag", (PyCFunction)(void (*)(void))bid_ImDrawList_pop_draw_flag, METH_VARARGS | METH_KEYWORDS, "pop_draw_flag() -> ImDrawList::PopDrawFlag" },
+ { "get_clip_rect_min", (PyCFunction)(void (*)(void))bid_ImDrawList_get_clip_rect_min, METH_VARARGS | METH_KEYWORDS, "get_clip_rect_min() -> ImDrawList::GetClipRectMin" },
+ { "get_clip_rect_max", (PyCFunction)(void (*)(void))bid_ImDrawList_get_clip_rect_max, METH_VARARGS | METH_KEYWORDS, "get_clip_rect_max() -> ImDrawList::GetClipRectMax" },
+ { "add_line", (PyCFunction)(void (*)(void))bid_ImDrawList_add_line, METH_VARARGS | METH_KEYWORDS, "add_line(p1, p2, col, thickness=1.0f, flags=0) -> ImDrawList::AddLine" },
+ { "add_line_h", (PyCFunction)(void (*)(void))bid_ImDrawList_add_line_h, METH_VARARGS | METH_KEYWORDS, "add_line_h(min_x, max_x, y, col, thickness=1.0f, flags=0) -> ImDrawList::AddLineH" },
+ { "add_line_v", (PyCFunction)(void (*)(void))bid_ImDrawList_add_line_v, METH_VARARGS | METH_KEYWORDS, "add_line_v(x, min_y, max_y, col, thickness=1.0f, flags=0) -> ImDrawList::AddLineV" },
+ { "add_rect", (PyCFunction)(void (*)(void))bid_ImDrawList_add_rect, METH_VARARGS | METH_KEYWORDS, "add_rect(p_min, p_max, col, rounding=0.0f, thickness=1.0f, flags=0) -> ImDrawList::AddRect" },
+ { "add_rect_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_rect_filled, METH_VARARGS | METH_KEYWORDS, "add_rect_filled(p_min, p_max, col, rounding=0.0f, flags=0) -> ImDrawList::AddRectFilled" },
+ { "add_rect_filled_multi_color", (PyCFunction)(void (*)(void))bid_ImDrawList_add_rect_filled_multi_color, METH_VARARGS | METH_KEYWORDS, "add_rect_filled_multi_color(p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left) -> ImDrawList::AddRectFilledMultiColor" },
+ { "add_quad", (PyCFunction)(void (*)(void))bid_ImDrawList_add_quad, METH_VARARGS | METH_KEYWORDS, "add_quad(p1, p2, p3, p4, col, thickness=1.0f, flags=0) -> ImDrawList::AddQuad" },
+ { "add_quad_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_quad_filled, METH_VARARGS | METH_KEYWORDS, "add_quad_filled(p1, p2, p3, p4, col) -> ImDrawList::AddQuadFilled" },
+ { "add_triangle", (PyCFunction)(void (*)(void))bid_ImDrawList_add_triangle, METH_VARARGS | METH_KEYWORDS, "add_triangle(p1, p2, p3, col, thickness=1.0f, flags=0) -> ImDrawList::AddTriangle" },
+ { "add_triangle_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_triangle_filled, METH_VARARGS | METH_KEYWORDS, "add_triangle_filled(p1, p2, p3, col) -> ImDrawList::AddTriangleFilled" },
+ { "add_circle", (PyCFunction)(void (*)(void))bid_ImDrawList_add_circle, METH_VARARGS | METH_KEYWORDS, "add_circle(center, radius, col, num_segments=0, thickness=1.0f, flags=0) -> ImDrawList::AddCircle" },
+ { "add_circle_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_circle_filled, METH_VARARGS | METH_KEYWORDS, "add_circle_filled(center, radius, col, num_segments=0) -> ImDrawList::AddCircleFilled" },
+ { "add_ngon", (PyCFunction)(void (*)(void))bid_ImDrawList_add_ngon, METH_VARARGS | METH_KEYWORDS, "add_ngon(center, radius, col, num_segments, thickness=1.0f, flags=0) -> ImDrawList::AddNgon" },
+ { "add_ngon_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_ngon_filled, METH_VARARGS | METH_KEYWORDS, "add_ngon_filled(center, radius, col, num_segments) -> ImDrawList::AddNgonFilled" },
+ { "add_ellipse", (PyCFunction)(void (*)(void))bid_ImDrawList_add_ellipse, METH_VARARGS | METH_KEYWORDS, "add_ellipse(center, radius, col, rot=0.0f, num_segments=0, thickness=1.0f, flags=0) -> ImDrawList::AddEllipse" },
+ { "add_ellipse_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_ellipse_filled, METH_VARARGS | METH_KEYWORDS, "add_ellipse_filled(center, radius, col, rot=0.0f, num_segments=0) -> ImDrawList::AddEllipseFilled" },
+ { "add_text", (PyCFunction)(void (*)(void))bid_ImDrawList_add_text, METH_VARARGS | METH_KEYWORDS, "add_text(pos, col, text_begin, text_end=NULL) -> ImDrawList::AddText\nadd_text(font, font_size, pos, col, text_begin, text_end=NULL, wrap_width=0.0f) -> ImDrawList::AddText" },
+ { "add_text_font_ptr", (PyCFunction)(void (*)(void))bid1_ImDrawList_AddTextFontPtrEx, METH_VARARGS | METH_KEYWORDS, "add_text(pos, col, text_begin, text_end=NULL) -> ImDrawList::AddText\nadd_text(font, font_size, pos, col, text_begin, text_end=NULL, wrap_width=0.0f) -> ImDrawList::AddText" },
+ { "add_bezier_cubic", (PyCFunction)(void (*)(void))bid_ImDrawList_add_bezier_cubic, METH_VARARGS | METH_KEYWORDS, "add_bezier_cubic(p1, p2, p3, p4, col, thickness, num_segments=0, flags=0) -> ImDrawList::AddBezierCubic" },
+ { "add_bezier_quadratic", (PyCFunction)(void (*)(void))bid_ImDrawList_add_bezier_quadratic, METH_VARARGS | METH_KEYWORDS, "add_bezier_quadratic(p1, p2, p3, col, thickness, num_segments=0, flags=0) -> ImDrawList::AddBezierQuadratic" },
+ { "add_polyline", (PyCFunction)(void (*)(void))bid_ImDrawList_add_polyline, METH_VARARGS | METH_KEYWORDS, "add_polyline(points, col, thickness, flags=0) -> ImDrawList::AddPolyline" },
+ { "add_convex_poly_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_convex_poly_filled, METH_VARARGS | METH_KEYWORDS, "add_convex_poly_filled(points, col, flags=0) -> ImDrawList::AddConvexPolyFilled" },
+ { "add_concave_poly_filled", (PyCFunction)(void (*)(void))bid_ImDrawList_add_concave_poly_filled, METH_VARARGS | METH_KEYWORDS, "add_concave_poly_filled(points, col) -> ImDrawList::AddConcavePolyFilled" },
+ { "add_image", (PyCFunction)(void (*)(void))bid_ImDrawList_add_image, METH_VARARGS | METH_KEYWORDS, "add_image(tex_ref, p_min, p_max, uv_min=ImVec2(0, 0), uv_max=ImVec2(1, 1), col=IM_COL32_WHITE) -> ImDrawList::AddImage" },
+ { "add_image_quad", (PyCFunction)(void (*)(void))bid_ImDrawList_add_image_quad, METH_VARARGS | METH_KEYWORDS, "add_image_quad(tex_ref, p1, p2, p3, p4, uv1=ImVec2(0, 0), uv2=ImVec2(1, 0), uv3=ImVec2(1, 1), uv4=ImVec2(0, 1), col=IM_COL32_WHITE) -> ImDrawList::AddImageQuad" },
+ { "add_image_rounded", (PyCFunction)(void (*)(void))bid_ImDrawList_add_image_rounded, METH_VARARGS | METH_KEYWORDS, "add_image_rounded(tex_ref, p_min, p_max, uv_min, uv_max, col, rounding, flags=0) -> ImDrawList::AddImageRounded" },
+ { "path_clear", (PyCFunction)(void (*)(void))bid_ImDrawList_path_clear, METH_VARARGS | METH_KEYWORDS, "path_clear() -> ImDrawList::PathClear" },
+ { "path_line_to", (PyCFunction)(void (*)(void))bid_ImDrawList_path_line_to, METH_VARARGS | METH_KEYWORDS, "path_line_to(pos) -> ImDrawList::PathLineTo" },
+ { "path_line_to_merge_duplicate", (PyCFunction)(void (*)(void))bid_ImDrawList_path_line_to_merge_duplicate, METH_VARARGS | METH_KEYWORDS, "path_line_to_merge_duplicate(pos) -> ImDrawList::PathLineToMergeDuplicate" },
+ { "path_fill_convex", (PyCFunction)(void (*)(void))bid_ImDrawList_path_fill_convex, METH_VARARGS | METH_KEYWORDS, "path_fill_convex(col, flags=0) -> ImDrawList::PathFillConvex" },
+ { "path_fill_concave", (PyCFunction)(void (*)(void))bid_ImDrawList_path_fill_concave, METH_VARARGS | METH_KEYWORDS, "path_fill_concave(col) -> ImDrawList::PathFillConcave" },
+ { "path_stroke", (PyCFunction)(void (*)(void))bid_ImDrawList_path_stroke, METH_VARARGS | METH_KEYWORDS, "path_stroke(col, thickness=1.0f, flags=0) -> ImDrawList::PathStroke" },
+ { "path_arc_to", (PyCFunction)(void (*)(void))bid_ImDrawList_path_arc_to, METH_VARARGS | METH_KEYWORDS, "path_arc_to(center, radius, a_min, a_max, num_segments=0) -> ImDrawList::PathArcTo" },
+ { "path_arc_to_fast", (PyCFunction)(void (*)(void))bid_ImDrawList_path_arc_to_fast, METH_VARARGS | METH_KEYWORDS, "path_arc_to_fast(center, radius, a_min_of_12, a_max_of_12) -> ImDrawList::PathArcToFast" },
+ { "path_elliptical_arc_to", (PyCFunction)(void (*)(void))bid_ImDrawList_path_elliptical_arc_to, METH_VARARGS | METH_KEYWORDS, "path_elliptical_arc_to(center, radius, rot, a_min, a_max, num_segments=0) -> ImDrawList::PathEllipticalArcTo" },
+ { "path_bezier_cubic_curve_to", (PyCFunction)(void (*)(void))bid_ImDrawList_path_bezier_cubic_curve_to, METH_VARARGS | METH_KEYWORDS, "path_bezier_cubic_curve_to(p2, p3, p4, num_segments=0) -> ImDrawList::PathBezierCubicCurveTo" },
+ { "path_bezier_quadratic_curve_to", (PyCFunction)(void (*)(void))bid_ImDrawList_path_bezier_quadratic_curve_to, METH_VARARGS | METH_KEYWORDS, "path_bezier_quadratic_curve_to(p2, p3, num_segments=0) -> ImDrawList::PathBezierQuadraticCurveTo" },
+ { "path_rect", (PyCFunction)(void (*)(void))bid_ImDrawList_path_rect, METH_VARARGS | METH_KEYWORDS, "path_rect(rect_min, rect_max, rounding=0.0f, flags=0) -> ImDrawList::PathRect" },
+ { "add_draw_cmd", (PyCFunction)(void (*)(void))bid_ImDrawList_add_draw_cmd, METH_VARARGS | METH_KEYWORDS, "add_draw_cmd() -> ImDrawList::AddDrawCmd" },
+ { "clone_output", (PyCFunction)(void (*)(void))bid_ImDrawList_clone_output, METH_VARARGS | METH_KEYWORDS, "clone_output() -> ImDrawList::CloneOutput" },
+ { "channels_split", (PyCFunction)(void (*)(void))bid_ImDrawList_channels_split, METH_VARARGS | METH_KEYWORDS, "channels_split(count) -> ImDrawList::ChannelsSplit" },
+ { "channels_merge", (PyCFunction)(void (*)(void))bid_ImDrawList_channels_merge, METH_VARARGS | METH_KEYWORDS, "channels_merge() -> ImDrawList::ChannelsMerge" },
+ { "channels_set_current", (PyCFunction)(void (*)(void))bid_ImDrawList_channels_set_current, METH_VARARGS | METH_KEYWORDS, "channels_set_current(n) -> ImDrawList::ChannelsSetCurrent" },
+ { "prim_reserve", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_reserve, METH_VARARGS | METH_KEYWORDS, "prim_reserve(idx_count, vtx_count) -> ImDrawList::PrimReserve" },
+ { "prim_unreserve", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_unreserve, METH_VARARGS | METH_KEYWORDS, "prim_unreserve(idx_count, vtx_count) -> ImDrawList::PrimUnreserve" },
+ { "prim_rect", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_rect, METH_VARARGS | METH_KEYWORDS, "prim_rect(a, b, col) -> ImDrawList::PrimRect" },
+ { "prim_rect_uv", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_rect_uv, METH_VARARGS | METH_KEYWORDS, "prim_rect_uv(a, b, uv_a, uv_b, col) -> ImDrawList::PrimRectUV" },
+ { "prim_quad_uv", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_quad_uv, METH_VARARGS | METH_KEYWORDS, "prim_quad_uv(a, b, c, d, uv_a, uv_b, uv_c, uv_d, col) -> ImDrawList::PrimQuadUV" },
+ { "prim_write_vtx", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_write_vtx, METH_VARARGS | METH_KEYWORDS, "prim_write_vtx(pos, uv, col) -> ImDrawList::PrimWriteVtx" },
+ { "prim_write_idx", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_write_idx, METH_VARARGS | METH_KEYWORDS, "prim_write_idx(idx) -> ImDrawList::PrimWriteIdx" },
+ { "prim_vtx", (PyCFunction)(void (*)(void))bid_ImDrawList_prim_vtx, METH_VARARGS | METH_KEYWORDS, "prim_vtx(pos, uv, col) -> ImDrawList::PrimVtx" },
+ { "_set_draw_list_shared_data", (PyCFunction)(void (*)(void))bid_ImDrawList__set_draw_list_shared_data, METH_VARARGS | METH_KEYWORDS, "_set_draw_list_shared_data(data) -> ImDrawList::_SetDrawListSharedData" },
+ { "_reset_for_new_frame", (PyCFunction)(void (*)(void))bid_ImDrawList__reset_for_new_frame, METH_VARARGS | METH_KEYWORDS, "_reset_for_new_frame() -> ImDrawList::_ResetForNewFrame" },
+ { "_set_pixel_density", (PyCFunction)(void (*)(void))bid_ImDrawList__set_pixel_density, METH_VARARGS | METH_KEYWORDS, "_set_pixel_density(pixel_density) -> ImDrawList::_SetPixelDensity" },
+ { "_clear_free_memory", (PyCFunction)(void (*)(void))bid_ImDrawList__clear_free_memory, METH_VARARGS | METH_KEYWORDS, "_clear_free_memory() -> ImDrawList::_ClearFreeMemory" },
+ { "_pop_unused_draw_cmd", (PyCFunction)(void (*)(void))bid_ImDrawList__pop_unused_draw_cmd, METH_VARARGS | METH_KEYWORDS, "_pop_unused_draw_cmd() -> ImDrawList::_PopUnusedDrawCmd" },
+ { "_try_merge_draw_cmds", (PyCFunction)(void (*)(void))bid_ImDrawList__try_merge_draw_cmds, METH_VARARGS | METH_KEYWORDS, "_try_merge_draw_cmds() -> ImDrawList::_TryMergeDrawCmds" },
+ { "_on_changed_clip_rect", (PyCFunction)(void (*)(void))bid_ImDrawList__on_changed_clip_rect, METH_VARARGS | METH_KEYWORDS, "_on_changed_clip_rect() -> ImDrawList::_OnChangedClipRect" },
+ { "_on_changed_texture", (PyCFunction)(void (*)(void))bid_ImDrawList__on_changed_texture, METH_VARARGS | METH_KEYWORDS, "_on_changed_texture() -> ImDrawList::_OnChangedTexture" },
+ { "_on_changed_vtx_offset", (PyCFunction)(void (*)(void))bid_ImDrawList__on_changed_vtx_offset, METH_VARARGS | METH_KEYWORDS, "_on_changed_vtx_offset() -> ImDrawList::_OnChangedVtxOffset" },
+ { "_set_texture", (PyCFunction)(void (*)(void))bid_ImDrawList__set_texture, METH_VARARGS | METH_KEYWORDS, "_set_texture(tex_ref) -> ImDrawList::_SetTexture" },
+ { "_calc_circle_auto_segment_count", (PyCFunction)(void (*)(void))bid_ImDrawList__calc_circle_auto_segment_count, METH_VARARGS | METH_KEYWORDS, "_calc_circle_auto_segment_count(radius) -> ImDrawList::_CalcCircleAutoSegmentCount" },
+ { "_path_arc_to_fast_ex", (PyCFunction)(void (*)(void))bid_ImDrawList__path_arc_to_fast_ex, METH_VARARGS | METH_KEYWORDS, "_path_arc_to_fast_ex(center, radius, a_min_sample, a_max_sample, a_step) -> ImDrawList::_PathArcToFastEx" },
+ { "_path_arc_to_n", (PyCFunction)(void (*)(void))bid_ImDrawList__path_arc_to_n, METH_VARARGS | METH_KEYWORDS, "_path_arc_to_n(center, radius, a_min, a_max, num_segments) -> ImDrawList::_PathArcToN" },
+ { "_add_rect_filled_baked", (PyCFunction)(void (*)(void))bid_ImDrawList__add_rect_filled_baked, METH_VARARGS | METH_KEYWORDS, "_add_rect_filled_baked(p_min, p_max, col, r, tex_uvs, flags) -> ImDrawList::_AddRectFilledBaked" },
+ { "_add_rect_baked", (PyCFunction)(void (*)(void))bid_ImDrawList__add_rect_baked, METH_VARARGS | METH_KEYWORDS, "_add_rect_baked(p_min, p_max, col, r, t, tex_uvs, flags) -> ImDrawList::_AddRectBaked" },
+ { "_add_line", (PyCFunction)(void (*)(void))bid_ImDrawList__add_line, METH_VARARGS | METH_KEYWORDS, "_add_line(p1, p2, col, thickness, flags) -> ImDrawList::_AddLine" },
+ { "_add_rect_tiny_rounding", (PyCFunction)(void (*)(void))bid_ImDrawList__add_rect_tiny_rounding, METH_VARARGS | METH_KEYWORDS, "_add_rect_tiny_rounding(p_min, p_max, col, rounding, thickness, flags) -> ImDrawList::_AddRectTinyRounding" },
+ { "_select_line_texture", (PyCFunction)(void (*)(void))bid_ImDrawList__select_line_texture, METH_VARARGS | METH_KEYWORDS, "_select_line_texture(screen_thickness, out_uv0, out_uv1, out_fringe, flags) -> ImDrawList::_SelectLineTexture" },
+ { "_calculate_center_biased_offset", (PyCFunction)(void (*)(void))bid_ImDrawList__calculate_center_biased_offset, METH_VARARGS | METH_KEYWORDS, "_calculate_center_biased_offset(thickness) -> ImDrawList::_CalculateCenterBiasedOffset" },
+ { "_add_polyline", (PyCFunction)(void (*)(void))bid_ImDrawList__add_polyline, METH_VARARGS | METH_KEYWORDS, "_add_polyline(points, col, thickness, flags, max_inner_offset) -> ImDrawList::_AddPolyline" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImDrawList[] = {
+ BI_FIELD(ImDrawList, CmdBuffer, "cmd_buffer"),
+ BI_FIELD(ImDrawList, CmdBuffer, "CmdBuffer"),
+ BI_FIELD(ImDrawList, IdxBuffer, "idx_buffer"),
+ BI_FIELD(ImDrawList, IdxBuffer, "IdxBuffer"),
+ BI_FIELD(ImDrawList, VtxBuffer, "vtx_buffer"),
+ BI_FIELD(ImDrawList, VtxBuffer, "VtxBuffer"),
+ BI_FIELD(ImDrawList, Flags, "flags"),
+ BI_FIELD(ImDrawList, Flags, "Flags"),
+ BI_FIELD(ImDrawList, _VtxCurrentIdx, "_vtx_current_idx"),
+ BI_FIELD(ImDrawList, _VtxCurrentIdx, "_VtxCurrentIdx"),
+ BI_FIELD(ImDrawList, _Data, "_data"),
+ BI_FIELD(ImDrawList, _Data, "_Data"),
+ BI_FIELD(ImDrawList, _VtxWritePtr, "_vtx_write_ptr"),
+ BI_FIELD(ImDrawList, _VtxWritePtr, "_VtxWritePtr"),
+ BI_FIELD(ImDrawList, _IdxWritePtr, "_idx_write_ptr"),
+ BI_FIELD(ImDrawList, _IdxWritePtr, "_IdxWritePtr"),
+ BI_FIELD(ImDrawList, _Path, "_path"),
+ BI_FIELD(ImDrawList, _Path, "_Path"),
+ BI_FIELD(ImDrawList, _CmdHeader, "_cmd_header"),
+ BI_FIELD(ImDrawList, _CmdHeader, "_CmdHeader"),
+ BI_FIELD(ImDrawList, _Splitter, "_splitter"),
+ BI_FIELD(ImDrawList, _Splitter, "_Splitter"),
+ BI_FIELD(ImDrawList, _ClipRectStack, "_clip_rect_stack"),
+ BI_FIELD(ImDrawList, _ClipRectStack, "_ClipRectStack"),
+ BI_FIELD(ImDrawList, _TextureStack, "_texture_stack"),
+ BI_FIELD(ImDrawList, _TextureStack, "_TextureStack"),
+ BI_FIELD(ImDrawList, _CallbacksDataBuf, "_callbacks_data_buf"),
+ BI_FIELD(ImDrawList, _CallbacksDataBuf, "_CallbacksDataBuf"),
+ BI_FIELD(ImDrawList, _DrawFlagsStack, "_draw_flags_stack"),
+ BI_FIELD(ImDrawList, _DrawFlagsStack, "_DrawFlagsStack"),
+ BI_FIELD(ImDrawList, _FringeScale, "_fringe_scale"),
+ BI_FIELD(ImDrawList, _FringeScale, "_FringeScale"),
+ BI_FIELD(ImDrawList, _InvFringeScale, "_inv_fringe_scale"),
+ BI_FIELD(ImDrawList, _InvFringeScale, "_InvFringeScale"),
+ BI_FIELD(ImDrawList, _FringeScaleIsInteger, "_fringe_scale_is_integer"),
+ BI_FIELD(ImDrawList, _FringeScaleIsInteger, "_FringeScaleIsInteger"),
+ BI_FIELD(ImDrawList, _OwnerName, "_owner_name"),
+ BI_FIELD(ImDrawList, _OwnerName, "_OwnerName"),
+};
+static PyMethodDef bi_methods_ImDrawData[] = {
+ { "clear", (PyCFunction)(void (*)(void))bid_ImDrawData_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImDrawData::Clear" },
+ { "add_draw_list", (PyCFunction)(void (*)(void))bid_ImDrawData_add_draw_list, METH_VARARGS | METH_KEYWORDS, "add_draw_list(draw_list) -> ImDrawData::AddDrawList" },
+ { "de_index_all_buffers", (PyCFunction)(void (*)(void))bid_ImDrawData_de_index_all_buffers, METH_VARARGS | METH_KEYWORDS, "de_index_all_buffers() -> ImDrawData::DeIndexAllBuffers" },
+ { "scale_clip_rects", (PyCFunction)(void (*)(void))bid_ImDrawData_scale_clip_rects, METH_VARARGS | METH_KEYWORDS, "scale_clip_rects(fb_scale) -> ImDrawData::ScaleClipRects" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImDrawData[] = {
+ BI_FIELD(ImDrawData, Valid, "valid"),
+ BI_FIELD(ImDrawData, Valid, "Valid"),
+ BI_FIELD(ImDrawData, FrameCount, "frame_count"),
+ BI_FIELD(ImDrawData, FrameCount, "FrameCount"),
+ BI_FIELD(ImDrawData, TotalIdxCount, "total_idx_count"),
+ BI_FIELD(ImDrawData, TotalIdxCount, "TotalIdxCount"),
+ BI_FIELD(ImDrawData, TotalVtxCount, "total_vtx_count"),
+ BI_FIELD(ImDrawData, TotalVtxCount, "TotalVtxCount"),
+ BI_FIELD(ImDrawData, CmdLists, "cmd_lists"),
+ BI_FIELD(ImDrawData, CmdLists, "CmdLists"),
+ BI_FIELD(ImDrawData, DisplayPos, "display_pos"),
+ BI_FIELD(ImDrawData, DisplayPos, "DisplayPos"),
+ BI_FIELD(ImDrawData, DisplaySize, "display_size"),
+ BI_FIELD(ImDrawData, DisplaySize, "DisplaySize"),
+ BI_FIELD(ImDrawData, FramebufferScale, "framebuffer_scale"),
+ BI_FIELD(ImDrawData, FramebufferScale, "FramebufferScale"),
+ BI_FIELD(ImDrawData, OwnerViewport, "owner_viewport"),
+ BI_FIELD(ImDrawData, OwnerViewport, "OwnerViewport"),
+ BI_FIELD(ImDrawData, Textures, "textures"),
+ BI_FIELD(ImDrawData, Textures, "Textures"),
+ BI_FIELD(ImDrawData, CmdListsCount, "cmd_lists_count"),
+ BI_FIELD(ImDrawData, CmdListsCount, "CmdListsCount"),
+};
+static BiField bi_fields_ImTextureRect[] = {
+ BI_FIELD(ImTextureRect, x, "x"),
+ BI_FIELD(ImTextureRect, y, "y"),
+ BI_FIELD(ImTextureRect, w, "w"),
+ BI_FIELD(ImTextureRect, h, "h"),
+};
+static PyMethodDef bi_methods_ImTextureData[] = {
+ { "create", (PyCFunction)(void (*)(void))bid_ImTextureData_create, METH_VARARGS | METH_KEYWORDS, "create(format, w, h) -> ImTextureData::Create" },
+ { "destroy_pixels", (PyCFunction)(void (*)(void))bid_ImTextureData_destroy_pixels, METH_VARARGS | METH_KEYWORDS, "destroy_pixels() -> ImTextureData::DestroyPixels" },
+ { "get_pixels", (PyCFunction)(void (*)(void))bid_ImTextureData_get_pixels, METH_VARARGS | METH_KEYWORDS, "get_pixels() -> ImTextureData::GetPixels" },
+ { "get_pixels_at", (PyCFunction)(void (*)(void))bid_ImTextureData_get_pixels_at, METH_VARARGS | METH_KEYWORDS, "get_pixels_at(x, y) -> ImTextureData::GetPixelsAt" },
+ { "get_size_in_bytes", (PyCFunction)(void (*)(void))bid_ImTextureData_get_size_in_bytes, METH_VARARGS | METH_KEYWORDS, "get_size_in_bytes() -> ImTextureData::GetSizeInBytes" },
+ { "get_pitch", (PyCFunction)(void (*)(void))bid_ImTextureData_get_pitch, METH_VARARGS | METH_KEYWORDS, "get_pitch() -> ImTextureData::GetPitch" },
+ { "get_tex_ref", (PyCFunction)(void (*)(void))bid_ImTextureData_get_tex_ref, METH_VARARGS | METH_KEYWORDS, "get_tex_ref() -> ImTextureData::GetTexRef" },
+ { "get_tex_id", (PyCFunction)(void (*)(void))bid_ImTextureData_get_tex_id, METH_VARARGS | METH_KEYWORDS, "get_tex_id() -> ImTextureData::GetTexID" },
+ { "set_tex_id", (PyCFunction)(void (*)(void))bid_ImTextureData_set_tex_id, METH_VARARGS | METH_KEYWORDS, "set_tex_id(tex_id) -> ImTextureData::SetTexID" },
+ { "set_status", (PyCFunction)(void (*)(void))bid_ImTextureData_set_status, METH_VARARGS | METH_KEYWORDS, "set_status(status) -> ImTextureData::SetStatus" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImTextureData[] = {
+ BI_FIELD(ImTextureData, UniqueID, "unique_id"),
+ BI_FIELD(ImTextureData, UniqueID, "UniqueID"),
+ BI_FIELD(ImTextureData, Status, "status"),
+ BI_FIELD(ImTextureData, Status, "Status"),
+ BI_FIELD(ImTextureData, BackendUserData, "backend_user_data"),
+ BI_FIELD(ImTextureData, BackendUserData, "BackendUserData"),
+ BI_FIELD(ImTextureData, QueueUserData, "queue_user_data"),
+ BI_FIELD(ImTextureData, QueueUserData, "QueueUserData"),
+ BI_FIELD(ImTextureData, TexID, "tex_id"),
+ BI_FIELD(ImTextureData, TexID, "TexID"),
+ BI_FIELD(ImTextureData, Format, "format"),
+ BI_FIELD(ImTextureData, Format, "Format"),
+ BI_FIELD(ImTextureData, Width, "width"),
+ BI_FIELD(ImTextureData, Width, "Width"),
+ BI_FIELD(ImTextureData, Height, "height"),
+ BI_FIELD(ImTextureData, Height, "Height"),
+ BI_FIELD(ImTextureData, BytesPerPixel, "bytes_per_pixel"),
+ BI_FIELD(ImTextureData, BytesPerPixel, "BytesPerPixel"),
+ BI_FIELD(ImTextureData, Pixels, "pixels"),
+ BI_FIELD(ImTextureData, Pixels, "Pixels"),
+ BI_FIELD(ImTextureData, UsedRect, "used_rect"),
+ BI_FIELD(ImTextureData, UsedRect, "UsedRect"),
+ BI_FIELD(ImTextureData, UpdateRect, "update_rect"),
+ BI_FIELD(ImTextureData, UpdateRect, "UpdateRect"),
+ BI_FIELD(ImTextureData, Updates, "updates"),
+ BI_FIELD(ImTextureData, Updates, "Updates"),
+ BI_FIELD(ImTextureData, UnusedFrames, "unused_frames"),
+ BI_FIELD(ImTextureData, UnusedFrames, "UnusedFrames"),
+ BI_FIELD(ImTextureData, RefCount, "ref_count"),
+ BI_FIELD(ImTextureData, RefCount, "RefCount"),
+ BI_FIELD(ImTextureData, UseColors, "use_colors"),
+ BI_FIELD(ImTextureData, UseColors, "UseColors"),
+ BI_FIELD(ImTextureData, WantDestroyNextFrame, "want_destroy_next_frame"),
+ BI_FIELD(ImTextureData, WantDestroyNextFrame, "WantDestroyNextFrame"),
+};
+static BiField bi_fields_ImFontConfig[] = {
+ BI_FIELD(ImFontConfig, Name, "name"),
+ BI_FIELD(ImFontConfig, Name, "Name"),
+ BI_FIELD(ImFontConfig, FontData, "font_data"),
+ BI_FIELD(ImFontConfig, FontData, "FontData"),
+ BI_FIELD(ImFontConfig, FontDataSize, "font_data_size"),
+ BI_FIELD(ImFontConfig, FontDataSize, "FontDataSize"),
+ BI_FIELD(ImFontConfig, FontDataOwnedByAtlas, "font_data_owned_by_atlas"),
+ BI_FIELD(ImFontConfig, FontDataOwnedByAtlas, "FontDataOwnedByAtlas"),
+ BI_FIELD(ImFontConfig, MergeMode, "merge_mode"),
+ BI_FIELD(ImFontConfig, MergeMode, "MergeMode"),
+ BI_FIELD(ImFontConfig, PixelSnapH, "pixel_snap_h"),
+ BI_FIELD(ImFontConfig, PixelSnapH, "PixelSnapH"),
+ BI_FIELD(ImFontConfig, OversampleH, "oversample_h"),
+ BI_FIELD(ImFontConfig, OversampleH, "OversampleH"),
+ BI_FIELD(ImFontConfig, OversampleV, "oversample_v"),
+ BI_FIELD(ImFontConfig, OversampleV, "OversampleV"),
+ BI_FIELD(ImFontConfig, EllipsisChar, "ellipsis_char"),
+ BI_FIELD(ImFontConfig, EllipsisChar, "EllipsisChar"),
+ BI_FIELD(ImFontConfig, SizePixels, "size_pixels"),
+ BI_FIELD(ImFontConfig, SizePixels, "SizePixels"),
+ BI_FIELD(ImFontConfig, GlyphRanges, "glyph_ranges"),
+ BI_FIELD(ImFontConfig, GlyphRanges, "GlyphRanges"),
+ BI_FIELD(ImFontConfig, GlyphExcludeRanges, "glyph_exclude_ranges"),
+ BI_FIELD(ImFontConfig, GlyphExcludeRanges, "GlyphExcludeRanges"),
+ BI_FIELD(ImFontConfig, GlyphOffset, "glyph_offset"),
+ BI_FIELD(ImFontConfig, GlyphOffset, "GlyphOffset"),
+ BI_FIELD(ImFontConfig, GlyphMinAdvanceX, "glyph_min_advance_x"),
+ BI_FIELD(ImFontConfig, GlyphMinAdvanceX, "GlyphMinAdvanceX"),
+ BI_FIELD(ImFontConfig, GlyphMaxAdvanceX, "glyph_max_advance_x"),
+ BI_FIELD(ImFontConfig, GlyphMaxAdvanceX, "GlyphMaxAdvanceX"),
+ BI_FIELD(ImFontConfig, GlyphExtraAdvanceX, "glyph_extra_advance_x"),
+ BI_FIELD(ImFontConfig, GlyphExtraAdvanceX, "GlyphExtraAdvanceX"),
+ BI_FIELD(ImFontConfig, FontNo, "font_no"),
+ BI_FIELD(ImFontConfig, FontNo, "FontNo"),
+ BI_FIELD(ImFontConfig, FontLoaderFlags, "font_loader_flags"),
+ BI_FIELD(ImFontConfig, FontLoaderFlags, "FontLoaderFlags"),
+ BI_FIELD(ImFontConfig, RasterizerMultiply, "rasterizer_multiply"),
+ BI_FIELD(ImFontConfig, RasterizerMultiply, "RasterizerMultiply"),
+ BI_FIELD(ImFontConfig, RasterizerDensity, "rasterizer_density"),
+ BI_FIELD(ImFontConfig, RasterizerDensity, "RasterizerDensity"),
+ BI_FIELD(ImFontConfig, ExtraSizeScale, "extra_size_scale"),
+ BI_FIELD(ImFontConfig, ExtraSizeScale, "ExtraSizeScale"),
+ BI_FIELD(ImFontConfig, Flags, "flags"),
+ BI_FIELD(ImFontConfig, Flags, "Flags"),
+ BI_FIELD(ImFontConfig, DstFont, "dst_font"),
+ BI_FIELD(ImFontConfig, DstFont, "DstFont"),
+ BI_FIELD(ImFontConfig, FontLoader, "font_loader"),
+ BI_FIELD(ImFontConfig, FontLoader, "FontLoader"),
+ BI_FIELD(ImFontConfig, FontLoaderData, "font_loader_data"),
+ BI_FIELD(ImFontConfig, FontLoaderData, "FontLoaderData"),
+ BI_FIELD(ImFontConfig, PixelSnapV, "pixel_snap_v"),
+ BI_FIELD(ImFontConfig, PixelSnapV, "PixelSnapV"),
+};
+static BiField bi_fields_ImFontGlyph[] = {
+ BI_FIELD(ImFontGlyph, AdvanceX, "advance_x"),
+ BI_FIELD(ImFontGlyph, AdvanceX, "AdvanceX"),
+ BI_FIELD(ImFontGlyph, X0, "x0"),
+ BI_FIELD(ImFontGlyph, X0, "X0"),
+ BI_FIELD(ImFontGlyph, Y0, "y0"),
+ BI_FIELD(ImFontGlyph, Y0, "Y0"),
+ BI_FIELD(ImFontGlyph, X1, "x1"),
+ BI_FIELD(ImFontGlyph, X1, "X1"),
+ BI_FIELD(ImFontGlyph, Y1, "y1"),
+ BI_FIELD(ImFontGlyph, Y1, "Y1"),
+ BI_FIELD(ImFontGlyph, U0, "u0"),
+ BI_FIELD(ImFontGlyph, U0, "U0"),
+ BI_FIELD(ImFontGlyph, V0, "v0"),
+ BI_FIELD(ImFontGlyph, V0, "V0"),
+ BI_FIELD(ImFontGlyph, U1, "u1"),
+ BI_FIELD(ImFontGlyph, U1, "U1"),
+ BI_FIELD(ImFontGlyph, V1, "v1"),
+ BI_FIELD(ImFontGlyph, V1, "V1"),
+ BI_FIELD(ImFontGlyph, PackId, "pack_id"),
+ BI_FIELD(ImFontGlyph, PackId, "PackId"),
+};
+static PyMethodDef bi_methods_ImFontGlyphRangesBuilder[] = {
+ { "clear", (PyCFunction)(void (*)(void))bid_ImFontGlyphRangesBuilder_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImFontGlyphRangesBuilder::Clear" },
+ { "get_bit", (PyCFunction)(void (*)(void))bid_ImFontGlyphRangesBuilder_get_bit, METH_VARARGS | METH_KEYWORDS, "get_bit(n) -> ImFontGlyphRangesBuilder::GetBit" },
+ { "set_bit", (PyCFunction)(void (*)(void))bid_ImFontGlyphRangesBuilder_set_bit, METH_VARARGS | METH_KEYWORDS, "set_bit(n) -> ImFontGlyphRangesBuilder::SetBit" },
+ { "add_char", (PyCFunction)(void (*)(void))bid_ImFontGlyphRangesBuilder_add_char, METH_VARARGS | METH_KEYWORDS, "add_char(c) -> ImFontGlyphRangesBuilder::AddChar" },
+ { "add_text", (PyCFunction)(void (*)(void))bid_ImFontGlyphRangesBuilder_add_text, METH_VARARGS | METH_KEYWORDS, "add_text(text, text_end=NULL) -> ImFontGlyphRangesBuilder::AddText" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImFontGlyphRangesBuilder[] = {
+ BI_FIELD(ImFontGlyphRangesBuilder, UsedChars, "used_chars"),
+ BI_FIELD(ImFontGlyphRangesBuilder, UsedChars, "UsedChars"),
+};
+static BiField bi_fields_ImFontAtlasRect[] = {
+ BI_FIELD(ImFontAtlasRect, x, "x"),
+ BI_FIELD(ImFontAtlasRect, y, "y"),
+ BI_FIELD(ImFontAtlasRect, w, "w"),
+ BI_FIELD(ImFontAtlasRect, h, "h"),
+ BI_FIELD(ImFontAtlasRect, uv0, "uv0"),
+ BI_FIELD(ImFontAtlasRect, uv1, "uv1"),
+};
+static PyMethodDef bi_methods_ImFontAtlas[] = {
+ { "add_font", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font, METH_VARARGS | METH_KEYWORDS, "add_font(font_cfg) -> ImFontAtlas::AddFont" },
+ { "add_font_default", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font_default, METH_VARARGS | METH_KEYWORDS, "add_font_default(font_cfg=NULL) -> ImFontAtlas::AddFontDefault" },
+ { "add_font_default_vector", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font_default_vector, METH_VARARGS | METH_KEYWORDS, "add_font_default_vector(font_cfg=NULL) -> ImFontAtlas::AddFontDefaultVector" },
+ { "add_font_default_bitmap", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font_default_bitmap, METH_VARARGS | METH_KEYWORDS, "add_font_default_bitmap(font_cfg=NULL) -> ImFontAtlas::AddFontDefaultBitmap" },
+ { "add_font_from_file_ttf", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font_from_file_ttf, METH_VARARGS | METH_KEYWORDS, "add_font_from_file_ttf(filename, size_pixels=0.0f, font_cfg=NULL) -> ImFontAtlas::AddFontFromFileTTF" },
+ { "add_font_from_memory_compressed_base85_ttf", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_font_from_memory_compressed_base85_ttf, METH_VARARGS | METH_KEYWORDS, "add_font_from_memory_compressed_base85_ttf(compressed_font_data_base85, size_pixels=0.0f, font_cfg=NULL) -> ImFontAtlas::AddFontFromMemoryCompressedBase85TTF" },
+ { "remove_font", (PyCFunction)(void (*)(void))bid_ImFontAtlas_remove_font, METH_VARARGS | METH_KEYWORDS, "remove_font(font) -> ImFontAtlas::RemoveFont" },
+ { "compact_cache", (PyCFunction)(void (*)(void))bid_ImFontAtlas_compact_cache, METH_VARARGS | METH_KEYWORDS, "compact_cache() -> ImFontAtlas::CompactCache" },
+ { "set_font_loader", (PyCFunction)(void (*)(void))bid_ImFontAtlas_set_font_loader, METH_VARARGS | METH_KEYWORDS, "set_font_loader(font_loader) -> ImFontAtlas::SetFontLoader" },
+ { "clear", (PyCFunction)(void (*)(void))bid_ImFontAtlas_clear, METH_VARARGS | METH_KEYWORDS, "clear() -> ImFontAtlas::Clear" },
+ { "clear_fonts", (PyCFunction)(void (*)(void))bid_ImFontAtlas_clear_fonts, METH_VARARGS | METH_KEYWORDS, "clear_fonts() -> ImFontAtlas::ClearFonts" },
+ { "clear_input_data", (PyCFunction)(void (*)(void))bid_ImFontAtlas_clear_input_data, METH_VARARGS | METH_KEYWORDS, "clear_input_data() -> ImFontAtlas::ClearInputData" },
+ { "clear_tex_data", (PyCFunction)(void (*)(void))bid_ImFontAtlas_clear_tex_data, METH_VARARGS | METH_KEYWORDS, "clear_tex_data() -> ImFontAtlas::ClearTexData" },
+ { "get_glyph_ranges_default", (PyCFunction)(void (*)(void))bid_ImFontAtlas_get_glyph_ranges_default, METH_VARARGS | METH_KEYWORDS, "get_glyph_ranges_default() -> ImFontAtlas::GetGlyphRangesDefault" },
+ { "add_custom_rect", (PyCFunction)(void (*)(void))bid_ImFontAtlas_add_custom_rect, METH_VARARGS | METH_KEYWORDS, "add_custom_rect(width, height, out_r=NULL) -> ImFontAtlas::AddCustomRect" },
+ { "remove_custom_rect", (PyCFunction)(void (*)(void))bid_ImFontAtlas_remove_custom_rect, METH_VARARGS | METH_KEYWORDS, "remove_custom_rect(id) -> ImFontAtlas::RemoveCustomRect" },
+ { "get_custom_rect", (PyCFunction)(void (*)(void))bid_ImFontAtlas_get_custom_rect, METH_VARARGS | METH_KEYWORDS, "get_custom_rect(id, out_r) -> ImFontAtlas::GetCustomRect" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImFontAtlas[] = {
+ BI_FIELD(ImFontAtlas, Flags, "flags"),
+ BI_FIELD(ImFontAtlas, Flags, "Flags"),
+ BI_FIELD(ImFontAtlas, TexDesiredFormat, "tex_desired_format"),
+ BI_FIELD(ImFontAtlas, TexDesiredFormat, "TexDesiredFormat"),
+ BI_FIELD(ImFontAtlas, TexGlyphPadding, "tex_glyph_padding"),
+ BI_FIELD(ImFontAtlas, TexGlyphPadding, "TexGlyphPadding"),
+ BI_FIELD(ImFontAtlas, TexMinWidth, "tex_min_width"),
+ BI_FIELD(ImFontAtlas, TexMinWidth, "TexMinWidth"),
+ BI_FIELD(ImFontAtlas, TexMinHeight, "tex_min_height"),
+ BI_FIELD(ImFontAtlas, TexMinHeight, "TexMinHeight"),
+ BI_FIELD(ImFontAtlas, TexMaxWidth, "tex_max_width"),
+ BI_FIELD(ImFontAtlas, TexMaxWidth, "TexMaxWidth"),
+ BI_FIELD(ImFontAtlas, TexMaxHeight, "tex_max_height"),
+ BI_FIELD(ImFontAtlas, TexMaxHeight, "TexMaxHeight"),
+ BI_FIELD(ImFontAtlas, UserData, "user_data"),
+ BI_FIELD(ImFontAtlas, UserData, "UserData"),
+ BI_FIELD(ImFontAtlas, TexRef, "tex_ref"),
+ BI_FIELD(ImFontAtlas, TexRef, "TexRef"),
+ BI_FIELD(ImFontAtlas, TexID, "tex_id"),
+ BI_FIELD(ImFontAtlas, TexID, "TexID"),
+ BI_FIELD(ImFontAtlas, TexData, "tex_data"),
+ BI_FIELD(ImFontAtlas, TexData, "TexData"),
+ BI_FIELD(ImFontAtlas, TexList, "tex_list"),
+ BI_FIELD(ImFontAtlas, TexList, "TexList"),
+ BI_FIELD(ImFontAtlas, Locked, "locked"),
+ BI_FIELD(ImFontAtlas, Locked, "Locked"),
+ BI_FIELD(ImFontAtlas, RendererHasTextures, "renderer_has_textures"),
+ BI_FIELD(ImFontAtlas, RendererHasTextures, "RendererHasTextures"),
+ BI_FIELD(ImFontAtlas, TexIsBuilt, "tex_is_built"),
+ BI_FIELD(ImFontAtlas, TexIsBuilt, "TexIsBuilt"),
+ BI_FIELD(ImFontAtlas, TexPixelsUseColors, "tex_pixels_use_colors"),
+ BI_FIELD(ImFontAtlas, TexPixelsUseColors, "TexPixelsUseColors"),
+ BI_FIELD(ImFontAtlas, TexUvScale, "tex_uv_scale"),
+ BI_FIELD(ImFontAtlas, TexUvScale, "TexUvScale"),
+ BI_FIELD(ImFontAtlas, TexUvWhitePixel, "tex_uv_white_pixel"),
+ BI_FIELD(ImFontAtlas, TexUvWhitePixel, "TexUvWhitePixel"),
+ BI_FIELD(ImFontAtlas, Fonts, "fonts"),
+ BI_FIELD(ImFontAtlas, Fonts, "Fonts"),
+ BI_FIELD(ImFontAtlas, Sources, "sources"),
+ BI_FIELD(ImFontAtlas, Sources, "Sources"),
+ BI_FIELD(ImFontAtlas, TexNextUniqueID, "tex_next_unique_id"),
+ BI_FIELD(ImFontAtlas, TexNextUniqueID, "TexNextUniqueID"),
+ BI_FIELD(ImFontAtlas, FontNextUniqueID, "font_next_unique_id"),
+ BI_FIELD(ImFontAtlas, FontNextUniqueID, "FontNextUniqueID"),
+ BI_FIELD(ImFontAtlas, DrawListSharedDatas, "draw_list_shared_datas"),
+ BI_FIELD(ImFontAtlas, DrawListSharedDatas, "DrawListSharedDatas"),
+ BI_FIELD(ImFontAtlas, Builder, "builder"),
+ BI_FIELD(ImFontAtlas, Builder, "Builder"),
+ BI_FIELD(ImFontAtlas, FontLoader, "font_loader"),
+ BI_FIELD(ImFontAtlas, FontLoader, "FontLoader"),
+ BI_FIELD(ImFontAtlas, FontLoaderName, "font_loader_name"),
+ BI_FIELD(ImFontAtlas, FontLoaderName, "FontLoaderName"),
+ BI_FIELD(ImFontAtlas, FontLoaderData, "font_loader_data"),
+ BI_FIELD(ImFontAtlas, FontLoaderData, "FontLoaderData"),
+ BI_FIELD(ImFontAtlas, FontLoaderFlags, "font_loader_flags"),
+ BI_FIELD(ImFontAtlas, FontLoaderFlags, "FontLoaderFlags"),
+ BI_FIELD(ImFontAtlas, RefCount, "ref_count"),
+ BI_FIELD(ImFontAtlas, RefCount, "RefCount"),
+ BI_FIELD(ImFontAtlas, OwnerContext, "owner_context"),
+ BI_FIELD(ImFontAtlas, OwnerContext, "OwnerContext"),
+ BI_FIELD(ImFontAtlas, TempRect, "temp_rect"),
+ BI_FIELD(ImFontAtlas, TempRect, "TempRect"),
+};
+static PyMethodDef bi_methods_ImFontBaked[] = {
+ { "clear_output_data", (PyCFunction)(void (*)(void))bid_ImFontBaked_clear_output_data, METH_VARARGS | METH_KEYWORDS, "clear_output_data() -> ImFontBaked::ClearOutputData" },
+ { "find_glyph", (PyCFunction)(void (*)(void))bid_ImFontBaked_find_glyph, METH_VARARGS | METH_KEYWORDS, "find_glyph(c) -> ImFontBaked::FindGlyph" },
+ { "find_glyph_no_fallback", (PyCFunction)(void (*)(void))bid_ImFontBaked_find_glyph_no_fallback, METH_VARARGS | METH_KEYWORDS, "find_glyph_no_fallback(c) -> ImFontBaked::FindGlyphNoFallback" },
+ { "get_char_advance", (PyCFunction)(void (*)(void))bid_ImFontBaked_get_char_advance, METH_VARARGS | METH_KEYWORDS, "get_char_advance(c) -> ImFontBaked::GetCharAdvance" },
+ { "is_glyph_loaded", (PyCFunction)(void (*)(void))bid_ImFontBaked_is_glyph_loaded, METH_VARARGS | METH_KEYWORDS, "is_glyph_loaded(c) -> ImFontBaked::IsGlyphLoaded" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImFontBaked[] = {
+ BI_FIELD(ImFontBaked, IndexAdvanceX, "index_advance_x"),
+ BI_FIELD(ImFontBaked, IndexAdvanceX, "IndexAdvanceX"),
+ BI_FIELD(ImFontBaked, FallbackAdvanceX, "fallback_advance_x"),
+ BI_FIELD(ImFontBaked, FallbackAdvanceX, "FallbackAdvanceX"),
+ BI_FIELD(ImFontBaked, Size, "size"),
+ BI_FIELD(ImFontBaked, Size, "Size"),
+ BI_FIELD(ImFontBaked, RasterizerDensity, "rasterizer_density"),
+ BI_FIELD(ImFontBaked, RasterizerDensity, "RasterizerDensity"),
+ BI_FIELD(ImFontBaked, IndexLookup, "index_lookup"),
+ BI_FIELD(ImFontBaked, IndexLookup, "IndexLookup"),
+ BI_FIELD(ImFontBaked, Glyphs, "glyphs"),
+ BI_FIELD(ImFontBaked, Glyphs, "Glyphs"),
+ BI_FIELD(ImFontBaked, FallbackGlyphIndex, "fallback_glyph_index"),
+ BI_FIELD(ImFontBaked, FallbackGlyphIndex, "FallbackGlyphIndex"),
+ BI_FIELD(ImFontBaked, Ascent, "ascent"),
+ BI_FIELD(ImFontBaked, Ascent, "Ascent"),
+ BI_FIELD(ImFontBaked, Descent, "descent"),
+ BI_FIELD(ImFontBaked, Descent, "Descent"),
+ BI_FIELD(ImFontBaked, LastUsedFrame, "last_used_frame"),
+ BI_FIELD(ImFontBaked, LastUsedFrame, "LastUsedFrame"),
+ BI_FIELD(ImFontBaked, BakedId, "baked_id"),
+ BI_FIELD(ImFontBaked, BakedId, "BakedId"),
+ BI_FIELD(ImFontBaked, OwnerFont, "owner_font"),
+ BI_FIELD(ImFontBaked, OwnerFont, "OwnerFont"),
+ BI_FIELD(ImFontBaked, FontLoaderDatas, "font_loader_datas"),
+ BI_FIELD(ImFontBaked, FontLoaderDatas, "FontLoaderDatas"),
+};
+static PyMethodDef bi_methods_ImFont[] = {
+ { "is_glyph_in_font", (PyCFunction)(void (*)(void))bid_ImFont_is_glyph_in_font, METH_VARARGS | METH_KEYWORDS, "is_glyph_in_font(c) -> ImFont::IsGlyphInFont" },
+ { "is_loaded", (PyCFunction)(void (*)(void))bid_ImFont_is_loaded, METH_VARARGS | METH_KEYWORDS, "is_loaded() -> ImFont::IsLoaded" },
+ { "get_debug_name", (PyCFunction)(void (*)(void))bid_ImFont_get_debug_name, METH_VARARGS | METH_KEYWORDS, "get_debug_name() -> ImFont::GetDebugName" },
+ { "get_font_baked", (PyCFunction)(void (*)(void))bid_ImFont_get_font_baked, METH_VARARGS | METH_KEYWORDS, "get_font_baked(font_size, density=- 1.0f) -> ImFont::GetFontBaked" },
+ { "calc_text_size_a", (PyCFunction)(void (*)(void))bid_ImFont_calc_text_size_a, METH_VARARGS | METH_KEYWORDS, "calc_text_size_a(size, max_width, wrap_width, text_begin, text_end=NULL) -> ImFont::CalcTextSizeA" },
+ { "calc_word_wrap_position", (PyCFunction)(void (*)(void))bid_ImFont_calc_word_wrap_position, METH_VARARGS | METH_KEYWORDS, "calc_word_wrap_position(size, text, text_end, wrap_width) -> ImFont::CalcWordWrapPosition" },
+ { "render_char", (PyCFunction)(void (*)(void))bid_ImFont_render_char, METH_VARARGS | METH_KEYWORDS, "render_char(draw_list, size, pos, col, c) -> ImFont::RenderChar" },
+ { "render_text", (PyCFunction)(void (*)(void))bid_ImFont_render_text, METH_VARARGS | METH_KEYWORDS, "render_text(draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width=0.0f, flags=0) -> ImFont::RenderText" },
+ { "clear_output_data", (PyCFunction)(void (*)(void))bid_ImFont_clear_output_data, METH_VARARGS | METH_KEYWORDS, "clear_output_data() -> ImFont::ClearOutputData" },
+ { "add_remap_codepoint", (PyCFunction)(void (*)(void))bid_ImFont_add_remap_codepoint, METH_VARARGS | METH_KEYWORDS, "add_remap_codepoint(from_codepoint, to_codepoint) -> ImFont::AddRemapCodepoint" },
+ { "add_remap_codepoint_to_glyph_index", (PyCFunction)(void (*)(void))bid_ImFont_add_remap_codepoint_to_glyph_index, METH_VARARGS | METH_KEYWORDS, "add_remap_codepoint_to_glyph_index(from_codepoint, font_src_idx, glyph_idx) -> ImFont::AddRemapCodepointToGlyphIndex" },
+ { "is_glyph_range_unused", (PyCFunction)(void (*)(void))bid_ImFont_is_glyph_range_unused, METH_VARARGS | METH_KEYWORDS, "is_glyph_range_unused(c_begin, c_last) -> ImFont::IsGlyphRangeUnused" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImFont[] = {
+ BI_FIELD(ImFont, LastBaked, "last_baked"),
+ BI_FIELD(ImFont, LastBaked, "LastBaked"),
+ BI_FIELD(ImFont, OwnerAtlas, "owner_atlas"),
+ BI_FIELD(ImFont, OwnerAtlas, "OwnerAtlas"),
+ BI_FIELD(ImFont, Flags, "flags"),
+ BI_FIELD(ImFont, Flags, "Flags"),
+ BI_FIELD(ImFont, CurrentRasterizerDensity, "current_rasterizer_density"),
+ BI_FIELD(ImFont, CurrentRasterizerDensity, "CurrentRasterizerDensity"),
+ BI_FIELD(ImFont, FontId, "font_id"),
+ BI_FIELD(ImFont, FontId, "FontId"),
+ BI_FIELD(ImFont, LegacySize, "legacy_size"),
+ BI_FIELD(ImFont, LegacySize, "LegacySize"),
+ BI_FIELD(ImFont, Sources, "sources"),
+ BI_FIELD(ImFont, Sources, "Sources"),
+ BI_FIELD(ImFont, EllipsisChar, "ellipsis_char"),
+ BI_FIELD(ImFont, EllipsisChar, "EllipsisChar"),
+ BI_FIELD(ImFont, FallbackChar, "fallback_char"),
+ BI_FIELD(ImFont, FallbackChar, "FallbackChar"),
+ BI_FIELD(ImFont, Used8kPagesMap, "used8k_pages_map"),
+ BI_FIELD(ImFont, Used8kPagesMap, "Used8kPagesMap"),
+ BI_FIELD(ImFont, EllipsisAutoBake, "ellipsis_auto_bake"),
+ BI_FIELD(ImFont, EllipsisAutoBake, "EllipsisAutoBake"),
+ BI_FIELD(ImFont, RemapPairs, "remap_pairs"),
+ BI_FIELD(ImFont, RemapPairs, "RemapPairs"),
+ BI_FIELD(ImFont, Scale, "scale"),
+ BI_FIELD(ImFont, Scale, "Scale"),
+};
+static PyMethodDef bi_methods_ImGuiViewport[] = {
+ { "get_center", (PyCFunction)(void (*)(void))bid_ImGuiViewport_get_center, METH_VARARGS | METH_KEYWORDS, "get_center() -> ImGuiViewport::GetCenter" },
+ { "get_work_center", (PyCFunction)(void (*)(void))bid_ImGuiViewport_get_work_center, METH_VARARGS | METH_KEYWORDS, "get_work_center() -> ImGuiViewport::GetWorkCenter" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiViewport[] = {
+ BI_FIELD(ImGuiViewport, ID, "id"),
+ BI_FIELD(ImGuiViewport, ID, "ID"),
+ BI_FIELD(ImGuiViewport, Flags, "flags"),
+ BI_FIELD(ImGuiViewport, Flags, "Flags"),
+ BI_FIELD(ImGuiViewport, Pos, "pos"),
+ BI_FIELD(ImGuiViewport, Pos, "Pos"),
+ BI_FIELD(ImGuiViewport, Size, "size"),
+ BI_FIELD(ImGuiViewport, Size, "Size"),
+ BI_FIELD(ImGuiViewport, FramebufferScale, "framebuffer_scale"),
+ BI_FIELD(ImGuiViewport, FramebufferScale, "FramebufferScale"),
+ BI_FIELD(ImGuiViewport, WorkPos, "work_pos"),
+ BI_FIELD(ImGuiViewport, WorkPos, "WorkPos"),
+ BI_FIELD(ImGuiViewport, WorkSize, "work_size"),
+ BI_FIELD(ImGuiViewport, WorkSize, "WorkSize"),
+ BI_FIELD(ImGuiViewport, PlatformHandle, "platform_handle"),
+ BI_FIELD(ImGuiViewport, PlatformHandle, "PlatformHandle"),
+ BI_FIELD(ImGuiViewport, PlatformHandleRaw, "platform_handle_raw"),
+ BI_FIELD(ImGuiViewport, PlatformHandleRaw, "PlatformHandleRaw"),
+};
+static PyMethodDef bi_methods_ImGuiPlatformIO[] = {
+ { "clear_platform_handlers", (PyCFunction)(void (*)(void))bid_ImGuiPlatformIO_clear_platform_handlers, METH_VARARGS | METH_KEYWORDS, "clear_platform_handlers() -> ImGuiPlatformIO::ClearPlatformHandlers" },
+ { "clear_renderer_handlers", (PyCFunction)(void (*)(void))bid_ImGuiPlatformIO_clear_renderer_handlers, METH_VARARGS | METH_KEYWORDS, "clear_renderer_handlers() -> ImGuiPlatformIO::ClearRendererHandlers" },
+ { nullptr, nullptr, 0, nullptr },
+};
+static BiField bi_fields_ImGuiPlatformIO[] = {
+ BI_FIELD(ImGuiPlatformIO, Platform_ClipboardUserData, "platform_clipboard_user_data"),
+ BI_FIELD(ImGuiPlatformIO, Platform_ClipboardUserData, "Platform_ClipboardUserData"),
+ BI_FIELD(ImGuiPlatformIO, Platform_OpenInShellUserData, "platform_open_in_shell_user_data"),
+ BI_FIELD(ImGuiPlatformIO, Platform_OpenInShellUserData, "Platform_OpenInShellUserData"),
+ BI_FIELD(ImGuiPlatformIO, Platform_ImeUserData, "platform_ime_user_data"),
+ BI_FIELD(ImGuiPlatformIO, Platform_ImeUserData, "Platform_ImeUserData"),
+ BI_FIELD(ImGuiPlatformIO, Platform_LocaleDecimalPoint, "platform_locale_decimal_point"),
+ BI_FIELD(ImGuiPlatformIO, Platform_LocaleDecimalPoint, "Platform_LocaleDecimalPoint"),
+ BI_FIELD(ImGuiPlatformIO, Platform_SessionDate, "platform_session_date"),
+ BI_FIELD(ImGuiPlatformIO, Platform_SessionDate, "Platform_SessionDate"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_TextureMaxWidth, "renderer_texture_max_width"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_TextureMaxWidth, "Renderer_TextureMaxWidth"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_TextureMaxHeight, "renderer_texture_max_height"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_TextureMaxHeight, "Renderer_TextureMaxHeight"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_RenderState, "renderer_render_state"),
+ BI_FIELD(ImGuiPlatformIO, Renderer_RenderState, "Renderer_RenderState"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_ResetRenderState, "draw_callback_reset_render_state"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_ResetRenderState, "DrawCallback_ResetRenderState"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerLinear, "draw_callback_set_sampler_linear"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerLinear, "DrawCallback_SetSamplerLinear"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerNearest, "draw_callback_set_sampler_nearest"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerNearest, "DrawCallback_SetSamplerNearest"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerFromTex, "draw_callback_set_sampler_from_tex"),
+ BI_FIELD(ImGuiPlatformIO, DrawCallback_SetSamplerFromTex, "DrawCallback_SetSamplerFromTex"),
+ BI_FIELD(ImGuiPlatformIO, Textures, "textures"),
+ BI_FIELD(ImGuiPlatformIO, Textures, "Textures"),
+};
+static BiField bi_fields_ImGuiPlatformImeData[] = {
+ BI_FIELD(ImGuiPlatformImeData, WantVisible, "want_visible"),
+ BI_FIELD(ImGuiPlatformImeData, WantVisible, "WantVisible"),
+ BI_FIELD(ImGuiPlatformImeData, WantTextInput, "want_text_input"),
+ BI_FIELD(ImGuiPlatformImeData, WantTextInput, "WantTextInput"),
+ BI_FIELD(ImGuiPlatformImeData, InputPos, "input_pos"),
+ BI_FIELD(ImGuiPlatformImeData, InputPos, "InputPos"),
+ BI_FIELD(ImGuiPlatformImeData, InputLineHeight, "input_line_height"),
+ BI_FIELD(ImGuiPlatformImeData, InputLineHeight, "InputLineHeight"),
+ BI_FIELD(ImGuiPlatformImeData, ViewportId, "viewport_id"),
+ BI_FIELD(ImGuiPlatformImeData, ViewportId, "ViewportId"),
+};
+
+static BiStructInfo bi_structs[] = {
+ { "ImDrawListSharedData", &BiType<ImDrawListSharedData>::type, nullptr, nullptr, 0, nullptr },
+ { "ImFontAtlasBuilder", &BiType<ImFontAtlasBuilder>::type, nullptr, nullptr, 0, nullptr },
+ { "ImFontLoader", &BiType<ImFontLoader>::type, nullptr, nullptr, 0, nullptr },
+ { "ImGuiContext", &BiType<ImGuiContext>::type, nullptr, nullptr, 0, nullptr },
+ { "ImGuiTextFilterItem", &BiType<ImGuiTextFilterItem>::type, nullptr, nullptr, 0, nullptr },
+ { "ImTextureRef", &BiType<ImTextureRef>::type, bi_methods_ImTextureRef, bi_fields_ImTextureRef, (int)(sizeof(bi_fields_ImTextureRef) / sizeof(BiField)), (newfunc)bid_ImTextureRef_new },
+ { "ImGuiTableSortSpecs", &BiType<ImGuiTableSortSpecs>::type, nullptr, bi_fields_ImGuiTableSortSpecs, (int)(sizeof(bi_fields_ImGuiTableSortSpecs) / sizeof(BiField)), (newfunc)bid_ImGuiTableSortSpecs_new },
+ { "ImGuiTableColumnSortSpecs", &BiType<ImGuiTableColumnSortSpecs>::type, nullptr, bi_fields_ImGuiTableColumnSortSpecs, (int)(sizeof(bi_fields_ImGuiTableColumnSortSpecs) / sizeof(BiField)), (newfunc)bid_ImGuiTableColumnSortSpecs_new },
+ { "ImGuiStyle", &BiType<ImGuiStyle>::type, bi_methods_ImGuiStyle, bi_fields_ImGuiStyle, (int)(sizeof(bi_fields_ImGuiStyle) / sizeof(BiField)), (newfunc)bid_ImGuiStyle_new },
+ { "ImGuiKeyData", &BiType<ImGuiKeyData>::type, nullptr, bi_fields_ImGuiKeyData, (int)(sizeof(bi_fields_ImGuiKeyData) / sizeof(BiField)), (newfunc)bid_ImGuiKeyData_new },
+ { "ImGuiIO", &BiType<ImGuiIO>::type, bi_methods_ImGuiIO, bi_fields_ImGuiIO, (int)(sizeof(bi_fields_ImGuiIO) / sizeof(BiField)), (newfunc)bid_ImGuiIO_new },
+ { "ImGuiInputTextCallbackData", &BiType<ImGuiInputTextCallbackData>::type, bi_methods_ImGuiInputTextCallbackData, bi_fields_ImGuiInputTextCallbackData, (int)(sizeof(bi_fields_ImGuiInputTextCallbackData) / sizeof(BiField)), (newfunc)bid_ImGuiInputTextCallbackData_new },
+ { "ImGuiSizeCallbackData", &BiType<ImGuiSizeCallbackData>::type, nullptr, bi_fields_ImGuiSizeCallbackData, (int)(sizeof(bi_fields_ImGuiSizeCallbackData) / sizeof(BiField)), (newfunc)bid_ImGuiSizeCallbackData_new },
+ { "ImGuiPayload", &BiType<ImGuiPayload>::type, bi_methods_ImGuiPayload, bi_fields_ImGuiPayload, (int)(sizeof(bi_fields_ImGuiPayload) / sizeof(BiField)), (newfunc)bid_ImGuiPayload_new },
+ { "ImGuiOnceUponAFrame", &BiType<ImGuiOnceUponAFrame>::type, nullptr, bi_fields_ImGuiOnceUponAFrame, (int)(sizeof(bi_fields_ImGuiOnceUponAFrame) / sizeof(BiField)), (newfunc)bid_ImGuiOnceUponAFrame_new },
+ { "ImGuiTextFilter", &BiType<ImGuiTextFilter>::type, bi_methods_ImGuiTextFilter, bi_fields_ImGuiTextFilter, (int)(sizeof(bi_fields_ImGuiTextFilter) / sizeof(BiField)), (newfunc)bid_ImGuiTextFilter_new },
+ { "ImGuiTextBuffer", &BiType<ImGuiTextBuffer>::type, bi_methods_ImGuiTextBuffer, bi_fields_ImGuiTextBuffer, (int)(sizeof(bi_fields_ImGuiTextBuffer) / sizeof(BiField)), (newfunc)bid_ImGuiTextBuffer_new },
+ { "ImGuiStoragePair", &BiType<ImGuiStoragePair>::type, nullptr, bi_fields_ImGuiStoragePair, (int)(sizeof(bi_fields_ImGuiStoragePair) / sizeof(BiField)), (newfunc)bid_ImGuiStoragePair_new },
+ { "ImGuiStorage", &BiType<ImGuiStorage>::type, bi_methods_ImGuiStorage, bi_fields_ImGuiStorage, (int)(sizeof(bi_fields_ImGuiStorage) / sizeof(BiField)), (newfunc)bid_ImGuiStorage_new },
+ { "ImGuiListClipper", &BiType<ImGuiListClipper>::type, bi_methods_ImGuiListClipper, bi_fields_ImGuiListClipper, (int)(sizeof(bi_fields_ImGuiListClipper) / sizeof(BiField)), (newfunc)bid_ImGuiListClipper_new },
+ { "ImColor", &BiType<ImColor>::type, bi_methods_ImColor, bi_fields_ImColor, (int)(sizeof(bi_fields_ImColor) / sizeof(BiField)), (newfunc)bid_ImColor_new },
+ { "ImGuiMultiSelectIO", &BiType<ImGuiMultiSelectIO>::type, nullptr, bi_fields_ImGuiMultiSelectIO, (int)(sizeof(bi_fields_ImGuiMultiSelectIO) / sizeof(BiField)), (newfunc)bid_ImGuiMultiSelectIO_new },
+ { "ImGuiSelectionRequest", &BiType<ImGuiSelectionRequest>::type, nullptr, bi_fields_ImGuiSelectionRequest, (int)(sizeof(bi_fields_ImGuiSelectionRequest) / sizeof(BiField)), (newfunc)bid_ImGuiSelectionRequest_new },
+ { "ImGuiSelectionBasicStorage", &BiType<ImGuiSelectionBasicStorage>::type, bi_methods_ImGuiSelectionBasicStorage, bi_fields_ImGuiSelectionBasicStorage, (int)(sizeof(bi_fields_ImGuiSelectionBasicStorage) / sizeof(BiField)), (newfunc)bid_ImGuiSelectionBasicStorage_new },
+ { "ImGuiSelectionExternalStorage", &BiType<ImGuiSelectionExternalStorage>::type, bi_methods_ImGuiSelectionExternalStorage, bi_fields_ImGuiSelectionExternalStorage, (int)(sizeof(bi_fields_ImGuiSelectionExternalStorage) / sizeof(BiField)), (newfunc)bid_ImGuiSelectionExternalStorage_new },
+ { "ImDrawCmd", &BiType<ImDrawCmd>::type, bi_methods_ImDrawCmd, bi_fields_ImDrawCmd, (int)(sizeof(bi_fields_ImDrawCmd) / sizeof(BiField)), (newfunc)bid_ImDrawCmd_new },
+ { "ImDrawVert", &BiType<ImDrawVert>::type, nullptr, bi_fields_ImDrawVert, (int)(sizeof(bi_fields_ImDrawVert) / sizeof(BiField)), (newfunc)bid_ImDrawVert_new },
+ { "ImDrawCmdHeader", &BiType<ImDrawCmdHeader>::type, nullptr, bi_fields_ImDrawCmdHeader, (int)(sizeof(bi_fields_ImDrawCmdHeader) / sizeof(BiField)), (newfunc)bid_ImDrawCmdHeader_new },
+ { "ImDrawChannel", &BiType<ImDrawChannel>::type, nullptr, bi_fields_ImDrawChannel, (int)(sizeof(bi_fields_ImDrawChannel) / sizeof(BiField)), (newfunc)bid_ImDrawChannel_new },
+ { "ImDrawListSplitter", &BiType<ImDrawListSplitter>::type, bi_methods_ImDrawListSplitter, bi_fields_ImDrawListSplitter, (int)(sizeof(bi_fields_ImDrawListSplitter) / sizeof(BiField)), (newfunc)bid_ImDrawListSplitter_new },
+ { "ImDrawList", &BiType<ImDrawList>::type, bi_methods_ImDrawList, bi_fields_ImDrawList, (int)(sizeof(bi_fields_ImDrawList) / sizeof(BiField)), (newfunc)bid_ImDrawList_new },
+ { "ImDrawData", &BiType<ImDrawData>::type, bi_methods_ImDrawData, bi_fields_ImDrawData, (int)(sizeof(bi_fields_ImDrawData) / sizeof(BiField)), (newfunc)bid_ImDrawData_new },
+ { "ImTextureRect", &BiType<ImTextureRect>::type, nullptr, bi_fields_ImTextureRect, (int)(sizeof(bi_fields_ImTextureRect) / sizeof(BiField)), (newfunc)bid_ImTextureRect_new },
+ { "ImTextureData", &BiType<ImTextureData>::type, bi_methods_ImTextureData, bi_fields_ImTextureData, (int)(sizeof(bi_fields_ImTextureData) / sizeof(BiField)), (newfunc)bid_ImTextureData_new },
+ { "ImFontConfig", &BiType<ImFontConfig>::type, nullptr, bi_fields_ImFontConfig, (int)(sizeof(bi_fields_ImFontConfig) / sizeof(BiField)), (newfunc)bid_ImFontConfig_new },
+ { "ImFontGlyph", &BiType<ImFontGlyph>::type, nullptr, bi_fields_ImFontGlyph, (int)(sizeof(bi_fields_ImFontGlyph) / sizeof(BiField)), (newfunc)bid_ImFontGlyph_new },
+ { "ImFontGlyphRangesBuilder", &BiType<ImFontGlyphRangesBuilder>::type, bi_methods_ImFontGlyphRangesBuilder, bi_fields_ImFontGlyphRangesBuilder, (int)(sizeof(bi_fields_ImFontGlyphRangesBuilder) / sizeof(BiField)), (newfunc)bid_ImFontGlyphRangesBuilder_new },
+ { "ImFontAtlasRect", &BiType<ImFontAtlasRect>::type, nullptr, bi_fields_ImFontAtlasRect, (int)(sizeof(bi_fields_ImFontAtlasRect) / sizeof(BiField)), (newfunc)bid_ImFontAtlasRect_new },
+ { "ImFontAtlas", &BiType<ImFontAtlas>::type, bi_methods_ImFontAtlas, bi_fields_ImFontAtlas, (int)(sizeof(bi_fields_ImFontAtlas) / sizeof(BiField)), (newfunc)bid_ImFontAtlas_new },
+ { "ImFontBaked", &BiType<ImFontBaked>::type, bi_methods_ImFontBaked, bi_fields_ImFontBaked, (int)(sizeof(bi_fields_ImFontBaked) / sizeof(BiField)), (newfunc)bid_ImFontBaked_new },
+ { "ImFont", &BiType<ImFont>::type, bi_methods_ImFont, bi_fields_ImFont, (int)(sizeof(bi_fields_ImFont) / sizeof(BiField)), (newfunc)bid_ImFont_new },
+ { "ImGuiViewport", &BiType<ImGuiViewport>::type, bi_methods_ImGuiViewport, bi_fields_ImGuiViewport, (int)(sizeof(bi_fields_ImGuiViewport) / sizeof(BiField)), (newfunc)bid_ImGuiViewport_new },
+ { "ImGuiPlatformIO", &BiType<ImGuiPlatformIO>::type, bi_methods_ImGuiPlatformIO, bi_fields_ImGuiPlatformIO, (int)(sizeof(bi_fields_ImGuiPlatformIO) / sizeof(BiField)), (newfunc)bid_ImGuiPlatformIO_new },
+ { "ImGuiPlatformImeData", &BiType<ImGuiPlatformImeData>::type, nullptr, bi_fields_ImGuiPlatformImeData, (int)(sizeof(bi_fields_ImGuiPlatformImeData) / sizeof(BiField)), (newfunc)bid_ImGuiPlatformImeData_new },
+};
+
+static const BiConst bi_consts[] = {
+ { "ImGuiWindowFlags_None", 0LL },
+ { "WINDOW_NONE", 0LL },
+ { "ImGuiWindowFlags_NoTitleBar", 1LL },
+ { "WINDOW_NO_TITLE_BAR", 1LL },
+ { "ImGuiWindowFlags_NoResize", 2LL },
+ { "WINDOW_NO_RESIZE", 2LL },
+ { "ImGuiWindowFlags_NoMove", 4LL },
+ { "WINDOW_NO_MOVE", 4LL },
+ { "ImGuiWindowFlags_NoScrollbar", 8LL },
+ { "WINDOW_NO_SCROLLBAR", 8LL },
+ { "ImGuiWindowFlags_NoScrollWithMouse", 16LL },
+ { "WINDOW_NO_SCROLL_WITH_MOUSE", 16LL },
+ { "ImGuiWindowFlags_NoCollapse", 32LL },
+ { "WINDOW_NO_COLLAPSE", 32LL },
+ { "ImGuiWindowFlags_AlwaysAutoResize", 64LL },
+ { "WINDOW_ALWAYS_AUTO_RESIZE", 64LL },
+ { "ImGuiWindowFlags_NoBackground", 128LL },
+ { "WINDOW_NO_BACKGROUND", 128LL },
+ { "ImGuiWindowFlags_NoSavedSettings", 256LL },
+ { "WINDOW_NO_SAVED_SETTINGS", 256LL },
+ { "ImGuiWindowFlags_NoMouseInputs", 512LL },
+ { "WINDOW_NO_MOUSE_INPUTS", 512LL },
+ { "ImGuiWindowFlags_MenuBar", 1024LL },
+ { "WINDOW_MENU_BAR", 1024LL },
+ { "ImGuiWindowFlags_HorizontalScrollbar", 2048LL },
+ { "WINDOW_HORIZONTAL_SCROLLBAR", 2048LL },
+ { "ImGuiWindowFlags_NoFocusOnAppearing", 4096LL },
+ { "WINDOW_NO_FOCUS_ON_APPEARING", 4096LL },
+ { "ImGuiWindowFlags_NoBringToFrontOnFocus", 8192LL },
+ { "WINDOW_NO_BRING_TO_FRONT_ON_FOCUS", 8192LL },
+ { "ImGuiWindowFlags_AlwaysVerticalScrollbar", 16384LL },
+ { "WINDOW_ALWAYS_VERTICAL_SCROLLBAR", 16384LL },
+ { "ImGuiWindowFlags_AlwaysHorizontalScrollbar", 32768LL },
+ { "WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR", 32768LL },
+ { "ImGuiWindowFlags_NoNavInputs", 65536LL },
+ { "WINDOW_NO_NAV_INPUTS", 65536LL },
+ { "ImGuiWindowFlags_NoNavFocus", 131072LL },
+ { "WINDOW_NO_NAV_FOCUS", 131072LL },
+ { "ImGuiWindowFlags_UnsavedDocument", 262144LL },
+ { "WINDOW_UNSAVED_DOCUMENT", 262144LL },
+ { "ImGuiWindowFlags_NoNav", 196608LL },
+ { "WINDOW_NO_NAV", 196608LL },
+ { "ImGuiWindowFlags_NoDecoration", 43LL },
+ { "WINDOW_NO_DECORATION", 43LL },
+ { "ImGuiWindowFlags_NoInputs", 197120LL },
+ { "WINDOW_NO_INPUTS", 197120LL },
+ { "ImGuiWindowFlags_ChildWindow", 16777216LL },
+ { "WINDOW_CHILD_WINDOW", 16777216LL },
+ { "ImGuiWindowFlags_Tooltip", 33554432LL },
+ { "WINDOW_TOOLTIP", 33554432LL },
+ { "ImGuiWindowFlags_Popup", 67108864LL },
+ { "WINDOW_POPUP", 67108864LL },
+ { "ImGuiWindowFlags_Modal", 134217728LL },
+ { "WINDOW_MODAL", 134217728LL },
+ { "ImGuiWindowFlags_ChildMenu", 268435456LL },
+ { "WINDOW_CHILD_MENU", 268435456LL },
+ { "ImGuiChildFlags_None", 0LL },
+ { "CHILD_NONE", 0LL },
+ { "ImGuiChildFlags_Borders", 1LL },
+ { "CHILD_BORDERS", 1LL },
+ { "ImGuiChildFlags_AlwaysUseWindowPadding", 2LL },
+ { "CHILD_ALWAYS_USE_WINDOW_PADDING", 2LL },
+ { "ImGuiChildFlags_ResizeX", 4LL },
+ { "CHILD_RESIZE_X", 4LL },
+ { "ImGuiChildFlags_ResizeY", 8LL },
+ { "CHILD_RESIZE_Y", 8LL },
+ { "ImGuiChildFlags_AutoResizeX", 16LL },
+ { "CHILD_AUTO_RESIZE_X", 16LL },
+ { "ImGuiChildFlags_AutoResizeY", 32LL },
+ { "CHILD_AUTO_RESIZE_Y", 32LL },
+ { "ImGuiChildFlags_AlwaysAutoResize", 64LL },
+ { "CHILD_ALWAYS_AUTO_RESIZE", 64LL },
+ { "ImGuiChildFlags_FrameStyle", 128LL },
+ { "CHILD_FRAME_STYLE", 128LL },
+ { "ImGuiChildFlags_NavFlattened", 256LL },
+ { "CHILD_NAV_FLATTENED", 256LL },
+ { "ImGuiItemFlags_None", 0LL },
+ { "ITEM_NONE", 0LL },
+ { "ImGuiItemFlags_NoTabStop", 1LL },
+ { "ITEM_NO_TAB_STOP", 1LL },
+ { "ImGuiItemFlags_NoNav", 2LL },
+ { "ITEM_NO_NAV", 2LL },
+ { "ImGuiItemFlags_NoNavDefaultFocus", 4LL },
+ { "ITEM_NO_NAV_DEFAULT_FOCUS", 4LL },
+ { "ImGuiItemFlags_ButtonRepeat", 8LL },
+ { "ITEM_BUTTON_REPEAT", 8LL },
+ { "ImGuiItemFlags_AutoClosePopups", 16LL },
+ { "ITEM_AUTO_CLOSE_POPUPS", 16LL },
+ { "ImGuiItemFlags_AllowDuplicateId", 32LL },
+ { "ITEM_ALLOW_DUPLICATE_ID", 32LL },
+ { "ImGuiItemFlags_Disabled", 64LL },
+ { "ITEM_DISABLED", 64LL },
+ { "ImGuiItemFlags_LiveEditOnInputText", 128LL },
+ { "ITEM_LIVE_EDIT_ON_INPUT_TEXT", 128LL },
+ { "ImGuiItemFlags_LiveEditOnInputScalar", 256LL },
+ { "ITEM_LIVE_EDIT_ON_INPUT_SCALAR", 256LL },
+ { "ImGuiItemFlags_LiveEditOnInput", 384LL },
+ { "ITEM_LIVE_EDIT_ON_INPUT", 384LL },
+ { "ImGuiItemFlags_MixedValue", 512LL },
+ { "ITEM_MIXED_VALUE", 512LL },
+ { "ImGuiInputTextFlags_None", 0LL },
+ { "INPUT_TEXT_NONE", 0LL },
+ { "ImGuiInputTextFlags_CharsDecimal", 1LL },
+ { "INPUT_TEXT_CHARS_DECIMAL", 1LL },
+ { "ImGuiInputTextFlags_CharsHexadecimal", 2LL },
+ { "INPUT_TEXT_CHARS_HEXADECIMAL", 2LL },
+ { "ImGuiInputTextFlags_CharsScientific", 4LL },
+ { "INPUT_TEXT_CHARS_SCIENTIFIC", 4LL },
+ { "ImGuiInputTextFlags_CharsUppercase", 8LL },
+ { "INPUT_TEXT_CHARS_UPPERCASE", 8LL },
+ { "ImGuiInputTextFlags_CharsNoBlank", 16LL },
+ { "INPUT_TEXT_CHARS_NO_BLANK", 16LL },
+ { "ImGuiInputTextFlags_AllowTabInput", 32LL },
+ { "INPUT_TEXT_ALLOW_TAB_INPUT", 32LL },
+ { "ImGuiInputTextFlags_EnterReturnsTrue", 64LL },
+ { "INPUT_TEXT_ENTER_RETURNS_TRUE", 64LL },
+ { "ImGuiInputTextFlags_EscapeClearsAll", 128LL },
+ { "INPUT_TEXT_ESCAPE_CLEARS_ALL", 128LL },
+ { "ImGuiInputTextFlags_CtrlEnterForNewLine", 256LL },
+ { "INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE", 256LL },
+ { "ImGuiInputTextFlags_ReadOnly", 512LL },
+ { "INPUT_TEXT_READ_ONLY", 512LL },
+ { "ImGuiInputTextFlags_Password", 1024LL },
+ { "INPUT_TEXT_PASSWORD", 1024LL },
+ { "ImGuiInputTextFlags_AlwaysOverwrite", 2048LL },
+ { "INPUT_TEXT_ALWAYS_OVERWRITE", 2048LL },
+ { "ImGuiInputTextFlags_AutoSelectAll", 4096LL },
+ { "INPUT_TEXT_AUTO_SELECT_ALL", 4096LL },
+ { "ImGuiInputTextFlags_ParseEmptyRefVal", 8192LL },
+ { "INPUT_TEXT_PARSE_EMPTY_REF_VAL", 8192LL },
+ { "ImGuiInputTextFlags_DisplayEmptyRefVal", 16384LL },
+ { "INPUT_TEXT_DISPLAY_EMPTY_REF_VAL", 16384LL },
+ { "ImGuiInputTextFlags_NoHorizontalScroll", 32768LL },
+ { "INPUT_TEXT_NO_HORIZONTAL_SCROLL", 32768LL },
+ { "ImGuiInputTextFlags_NoUndoRedo", 65536LL },
+ { "INPUT_TEXT_NO_UNDO_REDO", 65536LL },
+ { "ImGuiInputTextFlags_ElideLeft", 131072LL },
+ { "INPUT_TEXT_ELIDE_LEFT", 131072LL },
+ { "ImGuiInputTextFlags_CallbackCompletion", 262144LL },
+ { "INPUT_TEXT_CALLBACK_COMPLETION", 262144LL },
+ { "ImGuiInputTextFlags_CallbackHistory", 524288LL },
+ { "INPUT_TEXT_CALLBACK_HISTORY", 524288LL },
+ { "ImGuiInputTextFlags_CallbackAlways", 1048576LL },
+ { "INPUT_TEXT_CALLBACK_ALWAYS", 1048576LL },
+ { "ImGuiInputTextFlags_CallbackCharFilter", 2097152LL },
+ { "INPUT_TEXT_CALLBACK_CHAR_FILTER", 2097152LL },
+ { "ImGuiInputTextFlags_CallbackResize", 4194304LL },
+ { "INPUT_TEXT_CALLBACK_RESIZE", 4194304LL },
+ { "ImGuiInputTextFlags_CallbackEdit", 8388608LL },
+ { "INPUT_TEXT_CALLBACK_EDIT", 8388608LL },
+ { "ImGuiInputTextFlags_WordWrap", 16777216LL },
+ { "INPUT_TEXT_WORD_WRAP", 16777216LL },
+ { "ImGuiTreeNodeFlags_None", 0LL },
+ { "TREE_NODE_NONE", 0LL },
+ { "ImGuiTreeNodeFlags_Selected", 1LL },
+ { "TREE_NODE_SELECTED", 1LL },
+ { "ImGuiTreeNodeFlags_Framed", 2LL },
+ { "TREE_NODE_FRAMED", 2LL },
+ { "ImGuiTreeNodeFlags_AllowOverlap", 4LL },
+ { "TREE_NODE_ALLOW_OVERLAP", 4LL },
+ { "ImGuiTreeNodeFlags_NoTreePushOnOpen", 8LL },
+ { "TREE_NODE_NO_TREE_PUSH_ON_OPEN", 8LL },
+ { "ImGuiTreeNodeFlags_NoAutoOpenOnLog", 16LL },
+ { "TREE_NODE_NO_AUTO_OPEN_ON_LOG", 16LL },
+ { "ImGuiTreeNodeFlags_DefaultOpen", 32LL },
+ { "TREE_NODE_DEFAULT_OPEN", 32LL },
+ { "ImGuiTreeNodeFlags_OpenOnDoubleClick", 64LL },
+ { "TREE_NODE_OPEN_ON_DOUBLE_CLICK", 64LL },
+ { "ImGuiTreeNodeFlags_OpenOnArrow", 128LL },
+ { "TREE_NODE_OPEN_ON_ARROW", 128LL },
+ { "ImGuiTreeNodeFlags_Leaf", 256LL },
+ { "TREE_NODE_LEAF", 256LL },
+ { "ImGuiTreeNodeFlags_Bullet", 512LL },
+ { "TREE_NODE_BULLET", 512LL },
+ { "ImGuiTreeNodeFlags_FramePadding", 1024LL },
+ { "TREE_NODE_FRAME_PADDING", 1024LL },
+ { "ImGuiTreeNodeFlags_SpanAvailWidth", 2048LL },
+ { "TREE_NODE_SPAN_AVAIL_WIDTH", 2048LL },
+ { "ImGuiTreeNodeFlags_SpanFullWidth", 4096LL },
+ { "TREE_NODE_SPAN_FULL_WIDTH", 4096LL },
+ { "ImGuiTreeNodeFlags_SpanLabelWidth", 8192LL },
+ { "TREE_NODE_SPAN_LABEL_WIDTH", 8192LL },
+ { "ImGuiTreeNodeFlags_SpanAllColumns", 16384LL },
+ { "TREE_NODE_SPAN_ALL_COLUMNS", 16384LL },
+ { "ImGuiTreeNodeFlags_LabelSpanAllColumns", 32768LL },
+ { "TREE_NODE_LABEL_SPAN_ALL_COLUMNS", 32768LL },
+ { "ImGuiTreeNodeFlags_NavLeftJumpsToParent", 131072LL },
+ { "TREE_NODE_NAV_LEFT_JUMPS_TO_PARENT", 131072LL },
+ { "ImGuiTreeNodeFlags_CollapsingHeader", 26LL },
+ { "TREE_NODE_COLLAPSING_HEADER", 26LL },
+ { "ImGuiTreeNodeFlags_DrawLinesNone", 262144LL },
+ { "TREE_NODE_DRAW_LINES_NONE", 262144LL },
+ { "ImGuiTreeNodeFlags_DrawLinesFull", 524288LL },
+ { "TREE_NODE_DRAW_LINES_FULL", 524288LL },
+ { "ImGuiTreeNodeFlags_DrawLinesToNodes", 1048576LL },
+ { "TREE_NODE_DRAW_LINES_TO_NODES", 1048576LL },
+ { "ImGuiPopupFlags_None", 0LL },
+ { "POPUP_NONE", 0LL },
+ { "ImGuiPopupFlags_MouseButtonLeft", 4LL },
+ { "POPUP_MOUSE_BUTTON_LEFT", 4LL },
+ { "ImGuiPopupFlags_MouseButtonRight", 8LL },
+ { "POPUP_MOUSE_BUTTON_RIGHT", 8LL },
+ { "ImGuiPopupFlags_MouseButtonMiddle", 12LL },
+ { "POPUP_MOUSE_BUTTON_MIDDLE", 12LL },
+ { "ImGuiPopupFlags_NoReopen", 32LL },
+ { "POPUP_NO_REOPEN", 32LL },
+ { "ImGuiPopupFlags_NoOpenOverExistingPopup", 128LL },
+ { "POPUP_NO_OPEN_OVER_EXISTING_POPUP", 128LL },
+ { "ImGuiPopupFlags_NoOpenOverItems", 256LL },
+ { "POPUP_NO_OPEN_OVER_ITEMS", 256LL },
+ { "ImGuiPopupFlags_AnyPopupId", 1024LL },
+ { "POPUP_ANY_POPUP_ID", 1024LL },
+ { "ImGuiPopupFlags_AnyPopupLevel", 2048LL },
+ { "POPUP_ANY_POPUP_LEVEL", 2048LL },
+ { "ImGuiPopupFlags_AnyPopup", 3072LL },
+ { "POPUP_ANY_POPUP", 3072LL },
+ { "ImGuiPopupFlags_MouseButtonShift_", 2LL },
+ { "POPUP_MOUSE_BUTTON_SHIFT_", 2LL },
+ { "ImGuiPopupFlags_MouseButtonMask_", 12LL },
+ { "POPUP_MOUSE_BUTTON_MASK_", 12LL },
+ { "ImGuiPopupFlags_InvalidMask_", 3LL },
+ { "POPUP_INVALID_MASK_", 3LL },
+ { "ImGuiSelectableFlags_None", 0LL },
+ { "SELECTABLE_NONE", 0LL },
+ { "ImGuiSelectableFlags_NoAutoClosePopups", 1LL },
+ { "SELECTABLE_NO_AUTO_CLOSE_POPUPS", 1LL },
+ { "ImGuiSelectableFlags_SpanAllColumns", 2LL },
+ { "SELECTABLE_SPAN_ALL_COLUMNS", 2LL },
+ { "ImGuiSelectableFlags_AllowDoubleClick", 4LL },
+ { "SELECTABLE_ALLOW_DOUBLE_CLICK", 4LL },
+ { "ImGuiSelectableFlags_Disabled", 8LL },
+ { "SELECTABLE_DISABLED", 8LL },
+ { "ImGuiSelectableFlags_AllowOverlap", 16LL },
+ { "SELECTABLE_ALLOW_OVERLAP", 16LL },
+ { "ImGuiSelectableFlags_Highlight", 32LL },
+ { "SELECTABLE_HIGHLIGHT", 32LL },
+ { "ImGuiSelectableFlags_SelectOnNav", 64LL },
+ { "SELECTABLE_SELECT_ON_NAV", 64LL },
+ { "ImGuiComboFlags_None", 0LL },
+ { "COMBO_NONE", 0LL },
+ { "ImGuiComboFlags_PopupAlignLeft", 1LL },
+ { "COMBO_POPUP_ALIGN_LEFT", 1LL },
+ { "ImGuiComboFlags_HeightSmall", 2LL },
+ { "COMBO_HEIGHT_SMALL", 2LL },
+ { "ImGuiComboFlags_HeightRegular", 4LL },
+ { "COMBO_HEIGHT_REGULAR", 4LL },
+ { "ImGuiComboFlags_HeightLarge", 8LL },
+ { "COMBO_HEIGHT_LARGE", 8LL },
+ { "ImGuiComboFlags_HeightLargest", 16LL },
+ { "COMBO_HEIGHT_LARGEST", 16LL },
+ { "ImGuiComboFlags_NoArrowButton", 32LL },
+ { "COMBO_NO_ARROW_BUTTON", 32LL },
+ { "ImGuiComboFlags_NoPreview", 64LL },
+ { "COMBO_NO_PREVIEW", 64LL },
+ { "ImGuiComboFlags_WidthFitPreview", 128LL },
+ { "COMBO_WIDTH_FIT_PREVIEW", 128LL },
+ { "ImGuiComboFlags_HeightMask_", 30LL },
+ { "COMBO_HEIGHT_MASK_", 30LL },
+ { "ImGuiTabBarFlags_None", 0LL },
+ { "TAB_BAR_NONE", 0LL },
+ { "ImGuiTabBarFlags_Reorderable", 1LL },
+ { "TAB_BAR_REORDERABLE", 1LL },
+ { "ImGuiTabBarFlags_AutoSelectNewTabs", 2LL },
+ { "TAB_BAR_AUTO_SELECT_NEW_TABS", 2LL },
+ { "ImGuiTabBarFlags_TabListPopupButton", 4LL },
+ { "TAB_BAR_TAB_LIST_POPUP_BUTTON", 4LL },
+ { "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", 8LL },
+ { "TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON", 8LL },
+ { "ImGuiTabBarFlags_NoTabListScrollingButtons", 16LL },
+ { "TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS", 16LL },
+ { "ImGuiTabBarFlags_NoTooltip", 32LL },
+ { "TAB_BAR_NO_TOOLTIP", 32LL },
+ { "ImGuiTabBarFlags_DrawSelectedOverline", 64LL },
+ { "TAB_BAR_DRAW_SELECTED_OVERLINE", 64LL },
+ { "ImGuiTabBarFlags_FittingPolicyMixed", 128LL },
+ { "TAB_BAR_FITTING_POLICY_MIXED", 128LL },
+ { "ImGuiTabBarFlags_FittingPolicyShrink", 256LL },
+ { "TAB_BAR_FITTING_POLICY_SHRINK", 256LL },
+ { "ImGuiTabBarFlags_FittingPolicyScroll", 512LL },
+ { "TAB_BAR_FITTING_POLICY_SCROLL", 512LL },
+ { "ImGuiTabBarFlags_FittingPolicyMask_", 896LL },
+ { "TAB_BAR_FITTING_POLICY_MASK_", 896LL },
+ { "ImGuiTabBarFlags_FittingPolicyDefault_", 128LL },
+ { "TAB_BAR_FITTING_POLICY_DEFAULT_", 128LL },
+ { "ImGuiTabItemFlags_None", 0LL },
+ { "TAB_ITEM_NONE", 0LL },
+ { "ImGuiTabItemFlags_UnsavedDocument", 1LL },
+ { "TAB_ITEM_UNSAVED_DOCUMENT", 1LL },
+ { "ImGuiTabItemFlags_SetSelected", 2LL },
+ { "TAB_ITEM_SET_SELECTED", 2LL },
+ { "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton", 4LL },
+ { "TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON", 4LL },
+ { "ImGuiTabItemFlags_NoPushId", 8LL },
+ { "TAB_ITEM_NO_PUSH_ID", 8LL },
+ { "ImGuiTabItemFlags_NoTooltip", 16LL },
+ { "TAB_ITEM_NO_TOOLTIP", 16LL },
+ { "ImGuiTabItemFlags_NoReorder", 32LL },
+ { "TAB_ITEM_NO_REORDER", 32LL },
+ { "ImGuiTabItemFlags_Leading", 64LL },
+ { "TAB_ITEM_LEADING", 64LL },
+ { "ImGuiTabItemFlags_Trailing", 128LL },
+ { "TAB_ITEM_TRAILING", 128LL },
+ { "ImGuiTabItemFlags_NoAssumedClosure", 256LL },
+ { "TAB_ITEM_NO_ASSUMED_CLOSURE", 256LL },
+ { "ImGuiFocusedFlags_None", 0LL },
+ { "FOCUSED_NONE", 0LL },
+ { "ImGuiFocusedFlags_ChildWindows", 1LL },
+ { "FOCUSED_CHILD_WINDOWS", 1LL },
+ { "ImGuiFocusedFlags_RootWindow", 2LL },
+ { "FOCUSED_ROOT_WINDOW", 2LL },
+ { "ImGuiFocusedFlags_AnyWindow", 4LL },
+ { "FOCUSED_ANY_WINDOW", 4LL },
+ { "ImGuiFocusedFlags_NoPopupHierarchy", 8LL },
+ { "FOCUSED_NO_POPUP_HIERARCHY", 8LL },
+ { "ImGuiFocusedFlags_RootAndChildWindows", 3LL },
+ { "FOCUSED_ROOT_AND_CHILD_WINDOWS", 3LL },
+ { "ImGuiHoveredFlags_None", 0LL },
+ { "HOVERED_NONE", 0LL },
+ { "ImGuiHoveredFlags_ChildWindows", 1LL },
+ { "HOVERED_CHILD_WINDOWS", 1LL },
+ { "ImGuiHoveredFlags_RootWindow", 2LL },
+ { "HOVERED_ROOT_WINDOW", 2LL },
+ { "ImGuiHoveredFlags_AnyWindow", 4LL },
+ { "HOVERED_ANY_WINDOW", 4LL },
+ { "ImGuiHoveredFlags_NoPopupHierarchy", 8LL },
+ { "HOVERED_NO_POPUP_HIERARCHY", 8LL },
+ { "ImGuiHoveredFlags_AllowWhenBlockedByPopup", 32LL },
+ { "HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP", 32LL },
+ { "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem", 128LL },
+ { "HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM", 128LL },
+ { "ImGuiHoveredFlags_AllowWhenOverlappedByItem", 256LL },
+ { "HOVERED_ALLOW_WHEN_OVERLAPPED_BY_ITEM", 256LL },
+ { "ImGuiHoveredFlags_AllowWhenOverlappedByWindow", 512LL },
+ { "HOVERED_ALLOW_WHEN_OVERLAPPED_BY_WINDOW", 512LL },
+ { "ImGuiHoveredFlags_AllowWhenDisabled", 1024LL },
+ { "HOVERED_ALLOW_WHEN_DISABLED", 1024LL },
+ { "ImGuiHoveredFlags_NoNavOverride", 2048LL },
+ { "HOVERED_NO_NAV_OVERRIDE", 2048LL },
+ { "ImGuiHoveredFlags_AllowWhenOverlapped", 768LL },
+ { "HOVERED_ALLOW_WHEN_OVERLAPPED", 768LL },
+ { "ImGuiHoveredFlags_RectOnly", 928LL },
+ { "HOVERED_RECT_ONLY", 928LL },
+ { "ImGuiHoveredFlags_RootAndChildWindows", 3LL },
+ { "HOVERED_ROOT_AND_CHILD_WINDOWS", 3LL },
+ { "ImGuiHoveredFlags_ForTooltip", 4096LL },
+ { "HOVERED_FOR_TOOLTIP", 4096LL },
+ { "ImGuiHoveredFlags_Stationary", 8192LL },
+ { "HOVERED_STATIONARY", 8192LL },
+ { "ImGuiHoveredFlags_DelayNone", 16384LL },
+ { "HOVERED_DELAY_NONE", 16384LL },
+ { "ImGuiHoveredFlags_DelayShort", 32768LL },
+ { "HOVERED_DELAY_SHORT", 32768LL },
+ { "ImGuiHoveredFlags_DelayNormal", 65536LL },
+ { "HOVERED_DELAY_NORMAL", 65536LL },
+ { "ImGuiHoveredFlags_NoSharedDelay", 131072LL },
+ { "HOVERED_NO_SHARED_DELAY", 131072LL },
+ { "ImGuiDragDropFlags_None", 0LL },
+ { "DRAG_DROP_NONE", 0LL },
+ { "ImGuiDragDropFlags_SourceNoPreviewTooltip", 1LL },
+ { "DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP", 1LL },
+ { "ImGuiDragDropFlags_SourceNoDisableHover", 2LL },
+ { "DRAG_DROP_SOURCE_NO_DISABLE_HOVER", 2LL },
+ { "ImGuiDragDropFlags_SourceNoHoldToOpenOthers", 4LL },
+ { "DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS", 4LL },
+ { "ImGuiDragDropFlags_SourceAllowNullID", 8LL },
+ { "DRAG_DROP_SOURCE_ALLOW_NULL_ID", 8LL },
+ { "ImGuiDragDropFlags_SourceExtern", 16LL },
+ { "DRAG_DROP_SOURCE_EXTERN", 16LL },
+ { "ImGuiDragDropFlags_PayloadAutoExpire", 32LL },
+ { "DRAG_DROP_PAYLOAD_AUTO_EXPIRE", 32LL },
+ { "ImGuiDragDropFlags_PayloadNoCrossContext", 64LL },
+ { "DRAG_DROP_PAYLOAD_NO_CROSS_CONTEXT", 64LL },
+ { "ImGuiDragDropFlags_PayloadNoCrossProcess", 128LL },
+ { "DRAG_DROP_PAYLOAD_NO_CROSS_PROCESS", 128LL },
+ { "ImGuiDragDropFlags_AcceptBeforeDelivery", 1024LL },
+ { "DRAG_DROP_ACCEPT_BEFORE_DELIVERY", 1024LL },
+ { "ImGuiDragDropFlags_AcceptNoDrawDefaultRect", 2048LL },
+ { "DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT", 2048LL },
+ { "ImGuiDragDropFlags_AcceptNoPreviewTooltip", 4096LL },
+ { "DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP", 4096LL },
+ { "ImGuiDragDropFlags_AcceptDrawAsHovered", 8192LL },
+ { "DRAG_DROP_ACCEPT_DRAW_AS_HOVERED", 8192LL },
+ { "ImGuiDragDropFlags_AcceptPeekOnly", 3072LL },
+ { "DRAG_DROP_ACCEPT_PEEK_ONLY", 3072LL },
+ { "ImGuiDataType_S8", 0LL },
+ { "DATA_TYPE_S8", 0LL },
+ { "ImGuiDataType_U8", 1LL },
+ { "DATA_TYPE_U8", 1LL },
+ { "ImGuiDataType_S16", 2LL },
+ { "DATA_TYPE_S16", 2LL },
+ { "ImGuiDataType_U16", 3LL },
+ { "DATA_TYPE_U16", 3LL },
+ { "ImGuiDataType_S32", 4LL },
+ { "DATA_TYPE_S32", 4LL },
+ { "ImGuiDataType_U32", 5LL },
+ { "DATA_TYPE_U32", 5LL },
+ { "ImGuiDataType_S64", 6LL },
+ { "DATA_TYPE_S64", 6LL },
+ { "ImGuiDataType_U64", 7LL },
+ { "DATA_TYPE_U64", 7LL },
+ { "ImGuiDataType_Float", 8LL },
+ { "DATA_TYPE_FLOAT", 8LL },
+ { "ImGuiDataType_Double", 9LL },
+ { "DATA_TYPE_DOUBLE", 9LL },
+ { "ImGuiDataType_Bool", 10LL },
+ { "DATA_TYPE_BOOL", 10LL },
+ { "ImGuiDataType_String", 11LL },
+ { "DATA_TYPE_STRING", 11LL },
+ { "ImGuiDataType_COUNT", 12LL },
+ { "DATA_TYPE_COUNT", 12LL },
+ { "ImGuiDir_None", -1LL },
+ { "DIR_NONE", -1LL },
+ { "ImGuiDir_Left", 0LL },
+ { "DIR_LEFT", 0LL },
+ { "ImGuiDir_Right", 1LL },
+ { "DIR_RIGHT", 1LL },
+ { "ImGuiDir_Up", 2LL },
+ { "DIR_UP", 2LL },
+ { "ImGuiDir_Down", 3LL },
+ { "DIR_DOWN", 3LL },
+ { "ImGuiDir_COUNT", 4LL },
+ { "DIR_COUNT", 4LL },
+ { "ImGuiSortDirection_None", 0LL },
+ { "SORT_DIRECTION_NONE", 0LL },
+ { "ImGuiSortDirection_Ascending", 1LL },
+ { "SORT_DIRECTION_ASCENDING", 1LL },
+ { "ImGuiSortDirection_Descending", 2LL },
+ { "SORT_DIRECTION_DESCENDING", 2LL },
+ { "ImGuiKey_None", 0LL },
+ { "KEY_NONE", 0LL },
+ { "ImGuiKey_NamedKey_BEGIN", 512LL },
+ { "KEY_NAMED_KEY_BEGIN", 512LL },
+ { "ImGuiKey_Tab", 512LL },
+ { "KEY_TAB", 512LL },
+ { "ImGuiKey_LeftArrow", 513LL },
+ { "KEY_LEFT_ARROW", 513LL },
+ { "ImGuiKey_RightArrow", 514LL },
+ { "KEY_RIGHT_ARROW", 514LL },
+ { "ImGuiKey_UpArrow", 515LL },
+ { "KEY_UP_ARROW", 515LL },
+ { "ImGuiKey_DownArrow", 516LL },
+ { "KEY_DOWN_ARROW", 516LL },
+ { "ImGuiKey_PageUp", 517LL },
+ { "KEY_PAGE_UP", 517LL },
+ { "ImGuiKey_PageDown", 518LL },
+ { "KEY_PAGE_DOWN", 518LL },
+ { "ImGuiKey_Home", 519LL },
+ { "KEY_HOME", 519LL },
+ { "ImGuiKey_End", 520LL },
+ { "KEY_END", 520LL },
+ { "ImGuiKey_Insert", 521LL },
+ { "KEY_INSERT", 521LL },
+ { "ImGuiKey_Delete", 522LL },
+ { "KEY_DELETE", 522LL },
+ { "ImGuiKey_Backspace", 523LL },
+ { "KEY_BACKSPACE", 523LL },
+ { "ImGuiKey_Space", 524LL },
+ { "KEY_SPACE", 524LL },
+ { "ImGuiKey_Enter", 525LL },
+ { "KEY_ENTER", 525LL },
+ { "ImGuiKey_Escape", 526LL },
+ { "KEY_ESCAPE", 526LL },
+ { "ImGuiKey_LeftCtrl", 527LL },
+ { "KEY_LEFT_CTRL", 527LL },
+ { "ImGuiKey_LeftShift", 528LL },
+ { "KEY_LEFT_SHIFT", 528LL },
+ { "ImGuiKey_LeftAlt", 529LL },
+ { "KEY_LEFT_ALT", 529LL },
+ { "ImGuiKey_LeftSuper", 530LL },
+ { "KEY_LEFT_SUPER", 530LL },
+ { "ImGuiKey_RightCtrl", 531LL },
+ { "KEY_RIGHT_CTRL", 531LL },
+ { "ImGuiKey_RightShift", 532LL },
+ { "KEY_RIGHT_SHIFT", 532LL },
+ { "ImGuiKey_RightAlt", 533LL },
+ { "KEY_RIGHT_ALT", 533LL },
+ { "ImGuiKey_RightSuper", 534LL },
+ { "KEY_RIGHT_SUPER", 534LL },
+ { "ImGuiKey_Menu", 535LL },
+ { "KEY_MENU", 535LL },
+ { "ImGuiKey_0", 536LL },
+ { "KEY_0", 536LL },
+ { "ImGuiKey_1", 537LL },
+ { "KEY_1", 537LL },
+ { "ImGuiKey_2", 538LL },
+ { "KEY_2", 538LL },
+ { "ImGuiKey_3", 539LL },
+ { "KEY_3", 539LL },
+ { "ImGuiKey_4", 540LL },
+ { "KEY_4", 540LL },
+ { "ImGuiKey_5", 541LL },
+ { "KEY_5", 541LL },
+ { "ImGuiKey_6", 542LL },
+ { "KEY_6", 542LL },
+ { "ImGuiKey_7", 543LL },
+ { "KEY_7", 543LL },
+ { "ImGuiKey_8", 544LL },
+ { "KEY_8", 544LL },
+ { "ImGuiKey_9", 545LL },
+ { "KEY_9", 545LL },
+ { "ImGuiKey_A", 546LL },
+ { "KEY_A", 546LL },
+ { "ImGuiKey_B", 547LL },
+ { "KEY_B", 547LL },
+ { "ImGuiKey_C", 548LL },
+ { "KEY_C", 548LL },
+ { "ImGuiKey_D", 549LL },
+ { "KEY_D", 549LL },
+ { "ImGuiKey_E", 550LL },
+ { "KEY_E", 550LL },
+ { "ImGuiKey_F", 551LL },
+ { "KEY_F", 551LL },
+ { "ImGuiKey_G", 552LL },
+ { "KEY_G", 552LL },
+ { "ImGuiKey_H", 553LL },
+ { "KEY_H", 553LL },
+ { "ImGuiKey_I", 554LL },
+ { "KEY_I", 554LL },
+ { "ImGuiKey_J", 555LL },
+ { "KEY_J", 555LL },
+ { "ImGuiKey_K", 556LL },
+ { "KEY_K", 556LL },
+ { "ImGuiKey_L", 557LL },
+ { "KEY_L", 557LL },
+ { "ImGuiKey_M", 558LL },
+ { "KEY_M", 558LL },
+ { "ImGuiKey_N", 559LL },
+ { "KEY_N", 559LL },
+ { "ImGuiKey_O", 560LL },
+ { "KEY_O", 560LL },
+ { "ImGuiKey_P", 561LL },
+ { "KEY_P", 561LL },
+ { "ImGuiKey_Q", 562LL },
+ { "KEY_Q", 562LL },
+ { "ImGuiKey_R", 563LL },
+ { "KEY_R", 563LL },
+ { "ImGuiKey_S", 564LL },
+ { "KEY_S", 564LL },
+ { "ImGuiKey_T", 565LL },
+ { "KEY_T", 565LL },
+ { "ImGuiKey_U", 566LL },
+ { "KEY_U", 566LL },
+ { "ImGuiKey_V", 567LL },
+ { "KEY_V", 567LL },
+ { "ImGuiKey_W", 568LL },
+ { "KEY_W", 568LL },
+ { "ImGuiKey_X", 569LL },
+ { "KEY_X", 569LL },
+ { "ImGuiKey_Y", 570LL },
+ { "KEY_Y", 570LL },
+ { "ImGuiKey_Z", 571LL },
+ { "KEY_Z", 571LL },
+ { "ImGuiKey_F1", 572LL },
+ { "KEY_F1", 572LL },
+ { "ImGuiKey_F2", 573LL },
+ { "KEY_F2", 573LL },
+ { "ImGuiKey_F3", 574LL },
+ { "KEY_F3", 574LL },
+ { "ImGuiKey_F4", 575LL },
+ { "KEY_F4", 575LL },
+ { "ImGuiKey_F5", 576LL },
+ { "KEY_F5", 576LL },
+ { "ImGuiKey_F6", 577LL },
+ { "KEY_F6", 577LL },
+ { "ImGuiKey_F7", 578LL },
+ { "KEY_F7", 578LL },
+ { "ImGuiKey_F8", 579LL },
+ { "KEY_F8", 579LL },
+ { "ImGuiKey_F9", 580LL },
+ { "KEY_F9", 580LL },
+ { "ImGuiKey_F10", 581LL },
+ { "KEY_F10", 581LL },
+ { "ImGuiKey_F11", 582LL },
+ { "KEY_F11", 582LL },
+ { "ImGuiKey_F12", 583LL },
+ { "KEY_F12", 583LL },
+ { "ImGuiKey_F13", 584LL },
+ { "KEY_F13", 584LL },
+ { "ImGuiKey_F14", 585LL },
+ { "KEY_F14", 585LL },
+ { "ImGuiKey_F15", 586LL },
+ { "KEY_F15", 586LL },
+ { "ImGuiKey_F16", 587LL },
+ { "KEY_F16", 587LL },
+ { "ImGuiKey_F17", 588LL },
+ { "KEY_F17", 588LL },
+ { "ImGuiKey_F18", 589LL },
+ { "KEY_F18", 589LL },
+ { "ImGuiKey_F19", 590LL },
+ { "KEY_F19", 590LL },
+ { "ImGuiKey_F20", 591LL },
+ { "KEY_F20", 591LL },
+ { "ImGuiKey_F21", 592LL },
+ { "KEY_F21", 592LL },
+ { "ImGuiKey_F22", 593LL },
+ { "KEY_F22", 593LL },
+ { "ImGuiKey_F23", 594LL },
+ { "KEY_F23", 594LL },
+ { "ImGuiKey_F24", 595LL },
+ { "KEY_F24", 595LL },
+ { "ImGuiKey_Apostrophe", 596LL },
+ { "KEY_APOSTROPHE", 596LL },
+ { "ImGuiKey_Comma", 597LL },
+ { "KEY_COMMA", 597LL },
+ { "ImGuiKey_Minus", 598LL },
+ { "KEY_MINUS", 598LL },
+ { "ImGuiKey_Period", 599LL },
+ { "KEY_PERIOD", 599LL },
+ { "ImGuiKey_Slash", 600LL },
+ { "KEY_SLASH", 600LL },
+ { "ImGuiKey_Semicolon", 601LL },
+ { "KEY_SEMICOLON", 601LL },
+ { "ImGuiKey_Equal", 602LL },
+ { "KEY_EQUAL", 602LL },
+ { "ImGuiKey_LeftBracket", 603LL },
+ { "KEY_LEFT_BRACKET", 603LL },
+ { "ImGuiKey_Backslash", 604LL },
+ { "KEY_BACKSLASH", 604LL },
+ { "ImGuiKey_RightBracket", 605LL },
+ { "KEY_RIGHT_BRACKET", 605LL },
+ { "ImGuiKey_GraveAccent", 606LL },
+ { "KEY_GRAVE_ACCENT", 606LL },
+ { "ImGuiKey_CapsLock", 607LL },
+ { "KEY_CAPS_LOCK", 607LL },
+ { "ImGuiKey_ScrollLock", 608LL },
+ { "KEY_SCROLL_LOCK", 608LL },
+ { "ImGuiKey_NumLock", 609LL },
+ { "KEY_NUM_LOCK", 609LL },
+ { "ImGuiKey_PrintScreen", 610LL },
+ { "KEY_PRINT_SCREEN", 610LL },
+ { "ImGuiKey_Pause", 611LL },
+ { "KEY_PAUSE", 611LL },
+ { "ImGuiKey_Keypad0", 612LL },
+ { "KEY_KEYPAD0", 612LL },
+ { "ImGuiKey_Keypad1", 613LL },
+ { "KEY_KEYPAD1", 613LL },
+ { "ImGuiKey_Keypad2", 614LL },
+ { "KEY_KEYPAD2", 614LL },
+ { "ImGuiKey_Keypad3", 615LL },
+ { "KEY_KEYPAD3", 615LL },
+ { "ImGuiKey_Keypad4", 616LL },
+ { "KEY_KEYPAD4", 616LL },
+ { "ImGuiKey_Keypad5", 617LL },
+ { "KEY_KEYPAD5", 617LL },
+ { "ImGuiKey_Keypad6", 618LL },
+ { "KEY_KEYPAD6", 618LL },
+ { "ImGuiKey_Keypad7", 619LL },
+ { "KEY_KEYPAD7", 619LL },
+ { "ImGuiKey_Keypad8", 620LL },
+ { "KEY_KEYPAD8", 620LL },
+ { "ImGuiKey_Keypad9", 621LL },
+ { "KEY_KEYPAD9", 621LL },
+ { "ImGuiKey_KeypadDecimal", 622LL },
+ { "KEY_KEYPAD_DECIMAL", 622LL },
+ { "ImGuiKey_KeypadDivide", 623LL },
+ { "KEY_KEYPAD_DIVIDE", 623LL },
+ { "ImGuiKey_KeypadMultiply", 624LL },
+ { "KEY_KEYPAD_MULTIPLY", 624LL },
+ { "ImGuiKey_KeypadSubtract", 625LL },
+ { "KEY_KEYPAD_SUBTRACT", 625LL },
+ { "ImGuiKey_KeypadAdd", 626LL },
+ { "KEY_KEYPAD_ADD", 626LL },
+ { "ImGuiKey_KeypadEnter", 627LL },
+ { "KEY_KEYPAD_ENTER", 627LL },
+ { "ImGuiKey_KeypadEqual", 628LL },
+ { "KEY_KEYPAD_EQUAL", 628LL },
+ { "ImGuiKey_AppBack", 629LL },
+ { "KEY_APP_BACK", 629LL },
+ { "ImGuiKey_AppForward", 630LL },
+ { "KEY_APP_FORWARD", 630LL },
+ { "ImGuiKey_Oem102", 631LL },
+ { "KEY_OEM102", 631LL },
+ { "ImGuiKey_GamepadStart", 632LL },
+ { "KEY_GAMEPAD_START", 632LL },
+ { "ImGuiKey_GamepadBack", 633LL },
+ { "KEY_GAMEPAD_BACK", 633LL },
+ { "ImGuiKey_GamepadFaceLeft", 634LL },
+ { "KEY_GAMEPAD_FACE_LEFT", 634LL },
+ { "ImGuiKey_GamepadFaceRight", 635LL },
+ { "KEY_GAMEPAD_FACE_RIGHT", 635LL },
+ { "ImGuiKey_GamepadFaceUp", 636LL },
+ { "KEY_GAMEPAD_FACE_UP", 636LL },
+ { "ImGuiKey_GamepadFaceDown", 637LL },
+ { "KEY_GAMEPAD_FACE_DOWN", 637LL },
+ { "ImGuiKey_GamepadDpadLeft", 638LL },
+ { "KEY_GAMEPAD_DPAD_LEFT", 638LL },
+ { "ImGuiKey_GamepadDpadRight", 639LL },
+ { "KEY_GAMEPAD_DPAD_RIGHT", 639LL },
+ { "ImGuiKey_GamepadDpadUp", 640LL },
+ { "KEY_GAMEPAD_DPAD_UP", 640LL },
+ { "ImGuiKey_GamepadDpadDown", 641LL },
+ { "KEY_GAMEPAD_DPAD_DOWN", 641LL },
+ { "ImGuiKey_GamepadL1", 642LL },
+ { "KEY_GAMEPAD_L1", 642LL },
+ { "ImGuiKey_GamepadR1", 643LL },
+ { "KEY_GAMEPAD_R1", 643LL },
+ { "ImGuiKey_GamepadL2", 644LL },
+ { "KEY_GAMEPAD_L2", 644LL },
+ { "ImGuiKey_GamepadR2", 645LL },
+ { "KEY_GAMEPAD_R2", 645LL },
+ { "ImGuiKey_GamepadL3", 646LL },
+ { "KEY_GAMEPAD_L3", 646LL },
+ { "ImGuiKey_GamepadR3", 647LL },
+ { "KEY_GAMEPAD_R3", 647LL },
+ { "ImGuiKey_GamepadLStickLeft", 648LL },
+ { "KEY_GAMEPAD_L_STICK_LEFT", 648LL },
+ { "ImGuiKey_GamepadLStickRight", 649LL },
+ { "KEY_GAMEPAD_L_STICK_RIGHT", 649LL },
+ { "ImGuiKey_GamepadLStickUp", 650LL },
+ { "KEY_GAMEPAD_L_STICK_UP", 650LL },
+ { "ImGuiKey_GamepadLStickDown", 651LL },
+ { "KEY_GAMEPAD_L_STICK_DOWN", 651LL },
+ { "ImGuiKey_GamepadRStickLeft", 652LL },
+ { "KEY_GAMEPAD_R_STICK_LEFT", 652LL },
+ { "ImGuiKey_GamepadRStickRight", 653LL },
+ { "KEY_GAMEPAD_R_STICK_RIGHT", 653LL },
+ { "ImGuiKey_GamepadRStickUp", 654LL },
+ { "KEY_GAMEPAD_R_STICK_UP", 654LL },
+ { "ImGuiKey_GamepadRStickDown", 655LL },
+ { "KEY_GAMEPAD_R_STICK_DOWN", 655LL },
+ { "ImGuiKey_MouseLeft", 656LL },
+ { "KEY_MOUSE_LEFT", 656LL },
+ { "ImGuiKey_MouseRight", 657LL },
+ { "KEY_MOUSE_RIGHT", 657LL },
+ { "ImGuiKey_MouseMiddle", 658LL },
+ { "KEY_MOUSE_MIDDLE", 658LL },
+ { "ImGuiKey_MouseX1", 659LL },
+ { "KEY_MOUSE_X1", 659LL },
+ { "ImGuiKey_MouseX2", 660LL },
+ { "KEY_MOUSE_X2", 660LL },
+ { "ImGuiKey_MouseWheelX", 661LL },
+ { "KEY_MOUSE_WHEEL_X", 661LL },
+ { "ImGuiKey_MouseWheelY", 662LL },
+ { "KEY_MOUSE_WHEEL_Y", 662LL },
+ { "ImGuiKey_ReservedForModCtrl", 663LL },
+ { "KEY_RESERVED_FOR_MOD_CTRL", 663LL },
+ { "ImGuiKey_ReservedForModShift", 664LL },
+ { "KEY_RESERVED_FOR_MOD_SHIFT", 664LL },
+ { "ImGuiKey_ReservedForModAlt", 665LL },
+ { "KEY_RESERVED_FOR_MOD_ALT", 665LL },
+ { "ImGuiKey_ReservedForModSuper", 666LL },
+ { "KEY_RESERVED_FOR_MOD_SUPER", 666LL },
+ { "ImGuiKey_NamedKey_END", 667LL },
+ { "KEY_NAMED_KEY_END", 667LL },
+ { "ImGuiKey_NamedKey_COUNT", 155LL },
+ { "KEY_NAMED_KEY_COUNT", 155LL },
+ { "ImGuiMod_None", 0LL },
+ { "MOD_NONE", 0LL },
+ { "ImGuiMod_Ctrl", 4096LL },
+ { "MOD_CTRL", 4096LL },
+ { "ImGuiMod_Shift", 8192LL },
+ { "MOD_SHIFT", 8192LL },
+ { "ImGuiMod_Alt", 16384LL },
+ { "MOD_ALT", 16384LL },
+ { "ImGuiMod_Super", 32768LL },
+ { "MOD_SUPER", 32768LL },
+ { "ImGuiMod_Mask_", 61440LL },
+ { "MOD_MASK_", 61440LL },
+ { "ImGuiInputFlags_None", 0LL },
+ { "INPUT_NONE", 0LL },
+ { "ImGuiInputFlags_Repeat", 1LL },
+ { "INPUT_REPEAT", 1LL },
+ { "ImGuiInputFlags_RouteActive", 1024LL },
+ { "INPUT_ROUTE_ACTIVE", 1024LL },
+ { "ImGuiInputFlags_RouteFocused", 2048LL },
+ { "INPUT_ROUTE_FOCUSED", 2048LL },
+ { "ImGuiInputFlags_RouteGlobal", 4096LL },
+ { "INPUT_ROUTE_GLOBAL", 4096LL },
+ { "ImGuiInputFlags_RouteAlways", 8192LL },
+ { "INPUT_ROUTE_ALWAYS", 8192LL },
+ { "ImGuiInputFlags_RouteOverFocused", 16384LL },
+ { "INPUT_ROUTE_OVER_FOCUSED", 16384LL },
+ { "ImGuiInputFlags_RouteOverActive", 32768LL },
+ { "INPUT_ROUTE_OVER_ACTIVE", 32768LL },
+ { "ImGuiInputFlags_RouteUnlessBgFocused", 65536LL },
+ { "INPUT_ROUTE_UNLESS_BG_FOCUSED", 65536LL },
+ { "ImGuiInputFlags_RouteFromRootWindow", 131072LL },
+ { "INPUT_ROUTE_FROM_ROOT_WINDOW", 131072LL },
+ { "ImGuiInputFlags_Tooltip", 262144LL },
+ { "INPUT_TOOLTIP", 262144LL },
+ { "ImGuiConfigFlags_None", 0LL },
+ { "CONFIG_NONE", 0LL },
+ { "ImGuiConfigFlags_NavEnableKeyboard", 1LL },
+ { "CONFIG_NAV_ENABLE_KEYBOARD", 1LL },
+ { "ImGuiConfigFlags_NavEnableGamepad", 2LL },
+ { "CONFIG_NAV_ENABLE_GAMEPAD", 2LL },
+ { "ImGuiConfigFlags_NoMouse", 16LL },
+ { "CONFIG_NO_MOUSE", 16LL },
+ { "ImGuiConfigFlags_NoMouseCursorChange", 32LL },
+ { "CONFIG_NO_MOUSE_CURSOR_CHANGE", 32LL },
+ { "ImGuiConfigFlags_NoKeyboard", 64LL },
+ { "CONFIG_NO_KEYBOARD", 64LL },
+ { "ImGuiConfigFlags_IsSRGB", 1048576LL },
+ { "CONFIG_IS_SRGB", 1048576LL },
+ { "ImGuiConfigFlags_IsTouchScreen", 2097152LL },
+ { "CONFIG_IS_TOUCH_SCREEN", 2097152LL },
+ { "ImGuiBackendFlags_None", 0LL },
+ { "BACKEND_NONE", 0LL },
+ { "ImGuiBackendFlags_HasGamepad", 1LL },
+ { "BACKEND_HAS_GAMEPAD", 1LL },
+ { "ImGuiBackendFlags_HasMouseCursors", 2LL },
+ { "BACKEND_HAS_MOUSE_CURSORS", 2LL },
+ { "ImGuiBackendFlags_HasSetMousePos", 4LL },
+ { "BACKEND_HAS_SET_MOUSE_POS", 4LL },
+ { "ImGuiBackendFlags_RendererHasVtxOffset", 8LL },
+ { "BACKEND_RENDERER_HAS_VTX_OFFSET", 8LL },
+ { "ImGuiBackendFlags_RendererHasTextures", 16LL },
+ { "BACKEND_RENDERER_HAS_TEXTURES", 16LL },
+ { "ImGuiCol_Text", 0LL },
+ { "COL_TEXT", 0LL },
+ { "ImGuiCol_TextDisabled", 1LL },
+ { "COL_TEXT_DISABLED", 1LL },
+ { "ImGuiCol_WindowBg", 2LL },
+ { "COL_WINDOW_BG", 2LL },
+ { "ImGuiCol_ChildBg", 3LL },
+ { "COL_CHILD_BG", 3LL },
+ { "ImGuiCol_PopupBg", 4LL },
+ { "COL_POPUP_BG", 4LL },
+ { "ImGuiCol_Border", 5LL },
+ { "COL_BORDER", 5LL },
+ { "ImGuiCol_BorderShadow", 6LL },
+ { "COL_BORDER_SHADOW", 6LL },
+ { "ImGuiCol_FrameBg", 7LL },
+ { "COL_FRAME_BG", 7LL },
+ { "ImGuiCol_FrameBgHovered", 8LL },
+ { "COL_FRAME_BG_HOVERED", 8LL },
+ { "ImGuiCol_FrameBgActive", 9LL },
+ { "COL_FRAME_BG_ACTIVE", 9LL },
+ { "ImGuiCol_TitleBg", 10LL },
+ { "COL_TITLE_BG", 10LL },
+ { "ImGuiCol_TitleBgActive", 11LL },
+ { "COL_TITLE_BG_ACTIVE", 11LL },
+ { "ImGuiCol_TitleBgCollapsed", 12LL },
+ { "COL_TITLE_BG_COLLAPSED", 12LL },
+ { "ImGuiCol_MenuBarBg", 13LL },
+ { "COL_MENU_BAR_BG", 13LL },
+ { "ImGuiCol_ScrollbarBg", 14LL },
+ { "COL_SCROLLBAR_BG", 14LL },
+ { "ImGuiCol_ScrollbarGrab", 15LL },
+ { "COL_SCROLLBAR_GRAB", 15LL },
+ { "ImGuiCol_ScrollbarGrabHovered", 16LL },
+ { "COL_SCROLLBAR_GRAB_HOVERED", 16LL },
+ { "ImGuiCol_ScrollbarGrabActive", 17LL },
+ { "COL_SCROLLBAR_GRAB_ACTIVE", 17LL },
+ { "ImGuiCol_CheckMark", 18LL },
+ { "COL_CHECK_MARK", 18LL },
+ { "ImGuiCol_CheckboxSelectedBg", 19LL },
+ { "COL_CHECKBOX_SELECTED_BG", 19LL },
+ { "ImGuiCol_SliderGrab", 20LL },
+ { "COL_SLIDER_GRAB", 20LL },
+ { "ImGuiCol_SliderGrabActive", 21LL },
+ { "COL_SLIDER_GRAB_ACTIVE", 21LL },
+ { "ImGuiCol_Button", 22LL },
+ { "COL_BUTTON", 22LL },
+ { "ImGuiCol_ButtonHovered", 23LL },
+ { "COL_BUTTON_HOVERED", 23LL },
+ { "ImGuiCol_ButtonActive", 24LL },
+ { "COL_BUTTON_ACTIVE", 24LL },
+ { "ImGuiCol_Header", 25LL },
+ { "COL_HEADER", 25LL },
+ { "ImGuiCol_HeaderHovered", 26LL },
+ { "COL_HEADER_HOVERED", 26LL },
+ { "ImGuiCol_HeaderActive", 27LL },
+ { "COL_HEADER_ACTIVE", 27LL },
+ { "ImGuiCol_Separator", 28LL },
+ { "COL_SEPARATOR", 28LL },
+ { "ImGuiCol_SeparatorHovered", 29LL },
+ { "COL_SEPARATOR_HOVERED", 29LL },
+ { "ImGuiCol_SeparatorActive", 30LL },
+ { "COL_SEPARATOR_ACTIVE", 30LL },
+ { "ImGuiCol_ResizeGrip", 31LL },
+ { "COL_RESIZE_GRIP", 31LL },
+ { "ImGuiCol_ResizeGripHovered", 32LL },
+ { "COL_RESIZE_GRIP_HOVERED", 32LL },
+ { "ImGuiCol_ResizeGripActive", 33LL },
+ { "COL_RESIZE_GRIP_ACTIVE", 33LL },
+ { "ImGuiCol_InputTextCursor", 34LL },
+ { "COL_INPUT_TEXT_CURSOR", 34LL },
+ { "ImGuiCol_TabHovered", 35LL },
+ { "COL_TAB_HOVERED", 35LL },
+ { "ImGuiCol_Tab", 36LL },
+ { "COL_TAB", 36LL },
+ { "ImGuiCol_TabSelected", 37LL },
+ { "COL_TAB_SELECTED", 37LL },
+ { "ImGuiCol_TabSelectedOverline", 38LL },
+ { "COL_TAB_SELECTED_OVERLINE", 38LL },
+ { "ImGuiCol_TabDimmed", 39LL },
+ { "COL_TAB_DIMMED", 39LL },
+ { "ImGuiCol_TabDimmedSelected", 40LL },
+ { "COL_TAB_DIMMED_SELECTED", 40LL },
+ { "ImGuiCol_TabDimmedSelectedOverline", 41LL },
+ { "COL_TAB_DIMMED_SELECTED_OVERLINE", 41LL },
+ { "ImGuiCol_PlotLines", 42LL },
+ { "COL_PLOT_LINES", 42LL },
+ { "ImGuiCol_PlotLinesHovered", 43LL },
+ { "COL_PLOT_LINES_HOVERED", 43LL },
+ { "ImGuiCol_PlotHistogram", 44LL },
+ { "COL_PLOT_HISTOGRAM", 44LL },
+ { "ImGuiCol_PlotHistogramHovered", 45LL },
+ { "COL_PLOT_HISTOGRAM_HOVERED", 45LL },
+ { "ImGuiCol_TableHeaderBg", 46LL },
+ { "COL_TABLE_HEADER_BG", 46LL },
+ { "ImGuiCol_TableBorderStrong", 47LL },
+ { "COL_TABLE_BORDER_STRONG", 47LL },
+ { "ImGuiCol_TableBorderLight", 48LL },
+ { "COL_TABLE_BORDER_LIGHT", 48LL },
+ { "ImGuiCol_TableRowBg", 49LL },
+ { "COL_TABLE_ROW_BG", 49LL },
+ { "ImGuiCol_TableRowBgAlt", 50LL },
+ { "COL_TABLE_ROW_BG_ALT", 50LL },
+ { "ImGuiCol_TextLink", 51LL },
+ { "COL_TEXT_LINK", 51LL },
+ { "ImGuiCol_TextSelectedBg", 52LL },
+ { "COL_TEXT_SELECTED_BG", 52LL },
+ { "ImGuiCol_TreeLines", 53LL },
+ { "COL_TREE_LINES", 53LL },
+ { "ImGuiCol_DragDropTarget", 54LL },
+ { "COL_DRAG_DROP_TARGET", 54LL },
+ { "ImGuiCol_DragDropTargetBg", 55LL },
+ { "COL_DRAG_DROP_TARGET_BG", 55LL },
+ { "ImGuiCol_UnsavedMarker", 56LL },
+ { "COL_UNSAVED_MARKER", 56LL },
+ { "ImGuiCol_NavCursor", 57LL },
+ { "COL_NAV_CURSOR", 57LL },
+ { "ImGuiCol_NavWindowingHighlight", 58LL },
+ { "COL_NAV_WINDOWING_HIGHLIGHT", 58LL },
+ { "ImGuiCol_NavWindowingDimBg", 59LL },
+ { "COL_NAV_WINDOWING_DIM_BG", 59LL },
+ { "ImGuiCol_ModalWindowDimBg", 60LL },
+ { "COL_MODAL_WINDOW_DIM_BG", 60LL },
+ { "ImGuiCol_COUNT", 61LL },
+ { "COL_COUNT", 61LL },
+ { "ImGuiStyleVar_Alpha", 0LL },
+ { "STYLE_VAR_ALPHA", 0LL },
+ { "ImGuiStyleVar_DisabledAlpha", 1LL },
+ { "STYLE_VAR_DISABLED_ALPHA", 1LL },
+ { "ImGuiStyleVar_WindowPadding", 2LL },
+ { "STYLE_VAR_WINDOW_PADDING", 2LL },
+ { "ImGuiStyleVar_WindowRounding", 3LL },
+ { "STYLE_VAR_WINDOW_ROUNDING", 3LL },
+ { "ImGuiStyleVar_WindowBorderSize", 4LL },
+ { "STYLE_VAR_WINDOW_BORDER_SIZE", 4LL },
+ { "ImGuiStyleVar_WindowMinSize", 5LL },
+ { "STYLE_VAR_WINDOW_MIN_SIZE", 5LL },
+ { "ImGuiStyleVar_WindowTitleAlign", 6LL },
+ { "STYLE_VAR_WINDOW_TITLE_ALIGN", 6LL },
+ { "ImGuiStyleVar_ChildRounding", 7LL },
+ { "STYLE_VAR_CHILD_ROUNDING", 7LL },
+ { "ImGuiStyleVar_ChildBorderSize", 8LL },
+ { "STYLE_VAR_CHILD_BORDER_SIZE", 8LL },
+ { "ImGuiStyleVar_PopupRounding", 9LL },
+ { "STYLE_VAR_POPUP_ROUNDING", 9LL },
+ { "ImGuiStyleVar_PopupBorderSize", 10LL },
+ { "STYLE_VAR_POPUP_BORDER_SIZE", 10LL },
+ { "ImGuiStyleVar_FramePadding", 11LL },
+ { "STYLE_VAR_FRAME_PADDING", 11LL },
+ { "ImGuiStyleVar_FrameRounding", 12LL },
+ { "STYLE_VAR_FRAME_ROUNDING", 12LL },
+ { "ImGuiStyleVar_FrameBorderSize", 13LL },
+ { "STYLE_VAR_FRAME_BORDER_SIZE", 13LL },
+ { "ImGuiStyleVar_ItemSpacing", 14LL },
+ { "STYLE_VAR_ITEM_SPACING", 14LL },
+ { "ImGuiStyleVar_ItemInnerSpacing", 15LL },
+ { "STYLE_VAR_ITEM_INNER_SPACING", 15LL },
+ { "ImGuiStyleVar_IndentSpacing", 16LL },
+ { "STYLE_VAR_INDENT_SPACING", 16LL },
+ { "ImGuiStyleVar_CellPadding", 17LL },
+ { "STYLE_VAR_CELL_PADDING", 17LL },
+ { "ImGuiStyleVar_ScrollbarSize", 18LL },
+ { "STYLE_VAR_SCROLLBAR_SIZE", 18LL },
+ { "ImGuiStyleVar_ScrollbarRounding", 19LL },
+ { "STYLE_VAR_SCROLLBAR_ROUNDING", 19LL },
+ { "ImGuiStyleVar_ScrollbarPadding", 20LL },
+ { "STYLE_VAR_SCROLLBAR_PADDING", 20LL },
+ { "ImGuiStyleVar_GrabMinSize", 21LL },
+ { "STYLE_VAR_GRAB_MIN_SIZE", 21LL },
+ { "ImGuiStyleVar_GrabRounding", 22LL },
+ { "STYLE_VAR_GRAB_ROUNDING", 22LL },
+ { "ImGuiStyleVar_ImageRounding", 23LL },
+ { "STYLE_VAR_IMAGE_ROUNDING", 23LL },
+ { "ImGuiStyleVar_ImageBorderSize", 24LL },
+ { "STYLE_VAR_IMAGE_BORDER_SIZE", 24LL },
+ { "ImGuiStyleVar_TabRounding", 25LL },
+ { "STYLE_VAR_TAB_ROUNDING", 25LL },
+ { "ImGuiStyleVar_TabBorderSize", 26LL },
+ { "STYLE_VAR_TAB_BORDER_SIZE", 26LL },
+ { "ImGuiStyleVar_TabMinWidthBase", 27LL },
+ { "STYLE_VAR_TAB_MIN_WIDTH_BASE", 27LL },
+ { "ImGuiStyleVar_TabMinWidthShrink", 28LL },
+ { "STYLE_VAR_TAB_MIN_WIDTH_SHRINK", 28LL },
+ { "ImGuiStyleVar_TabBarBorderSize", 29LL },
+ { "STYLE_VAR_TAB_BAR_BORDER_SIZE", 29LL },
+ { "ImGuiStyleVar_TabBarOverlineSize", 30LL },
+ { "STYLE_VAR_TAB_BAR_OVERLINE_SIZE", 30LL },
+ { "ImGuiStyleVar_TableAngledHeadersAngle", 31LL },
+ { "STYLE_VAR_TABLE_ANGLED_HEADERS_ANGLE", 31LL },
+ { "ImGuiStyleVar_TableAngledHeadersTextAlign", 32LL },
+ { "STYLE_VAR_TABLE_ANGLED_HEADERS_TEXT_ALIGN", 32LL },
+ { "ImGuiStyleVar_TreeLinesSize", 33LL },
+ { "STYLE_VAR_TREE_LINES_SIZE", 33LL },
+ { "ImGuiStyleVar_TreeLinesRounding", 34LL },
+ { "STYLE_VAR_TREE_LINES_ROUNDING", 34LL },
+ { "ImGuiStyleVar_MenuItemRounding", 35LL },
+ { "STYLE_VAR_MENU_ITEM_ROUNDING", 35LL },
+ { "ImGuiStyleVar_SelectableRounding", 36LL },
+ { "STYLE_VAR_SELECTABLE_ROUNDING", 36LL },
+ { "ImGuiStyleVar_DragDropTargetRounding", 37LL },
+ { "STYLE_VAR_DRAG_DROP_TARGET_ROUNDING", 37LL },
+ { "ImGuiStyleVar_ButtonTextAlign", 38LL },
+ { "STYLE_VAR_BUTTON_TEXT_ALIGN", 38LL },
+ { "ImGuiStyleVar_SelectableTextAlign", 39LL },
+ { "STYLE_VAR_SELECTABLE_TEXT_ALIGN", 39LL },
+ { "ImGuiStyleVar_SeparatorSize", 40LL },
+ { "STYLE_VAR_SEPARATOR_SIZE", 40LL },
+ { "ImGuiStyleVar_SeparatorTextBorderSize", 41LL },
+ { "STYLE_VAR_SEPARATOR_TEXT_BORDER_SIZE", 41LL },
+ { "ImGuiStyleVar_SeparatorTextAlign", 42LL },
+ { "STYLE_VAR_SEPARATOR_TEXT_ALIGN", 42LL },
+ { "ImGuiStyleVar_SeparatorTextPadding", 43LL },
+ { "STYLE_VAR_SEPARATOR_TEXT_PADDING", 43LL },
+ { "ImGuiStyleVar_COUNT", 44LL },
+ { "STYLE_VAR_COUNT", 44LL },
+ { "ImGuiButtonFlags_None", 0LL },
+ { "BUTTON_NONE", 0LL },
+ { "ImGuiButtonFlags_MouseButtonLeft", 1LL },
+ { "BUTTON_MOUSE_BUTTON_LEFT", 1LL },
+ { "ImGuiButtonFlags_MouseButtonRight", 2LL },
+ { "BUTTON_MOUSE_BUTTON_RIGHT", 2LL },
+ { "ImGuiButtonFlags_MouseButtonMiddle", 4LL },
+ { "BUTTON_MOUSE_BUTTON_MIDDLE", 4LL },
+ { "ImGuiButtonFlags_MouseButtonMask_", 7LL },
+ { "BUTTON_MOUSE_BUTTON_MASK_", 7LL },
+ { "ImGuiButtonFlags_EnableNav", 8LL },
+ { "BUTTON_ENABLE_NAV", 8LL },
+ { "ImGuiButtonFlags_AllowOverlap", 4096LL },
+ { "BUTTON_ALLOW_OVERLAP", 4096LL },
+ { "ImGuiColorEditFlags_None", 0LL },
+ { "COLOR_EDIT_NONE", 0LL },
+ { "ImGuiColorEditFlags_NoAlpha", 2LL },
+ { "COLOR_EDIT_NO_ALPHA", 2LL },
+ { "ImGuiColorEditFlags_NoPicker", 4LL },
+ { "COLOR_EDIT_NO_PICKER", 4LL },
+ { "ImGuiColorEditFlags_NoOptions", 8LL },
+ { "COLOR_EDIT_NO_OPTIONS", 8LL },
+ { "ImGuiColorEditFlags_NoSmallPreview", 16LL },
+ { "COLOR_EDIT_NO_SMALL_PREVIEW", 16LL },
+ { "ImGuiColorEditFlags_NoInputs", 32LL },
+ { "COLOR_EDIT_NO_INPUTS", 32LL },
+ { "ImGuiColorEditFlags_NoTooltip", 64LL },
+ { "COLOR_EDIT_NO_TOOLTIP", 64LL },
+ { "ImGuiColorEditFlags_NoLabel", 128LL },
+ { "COLOR_EDIT_NO_LABEL", 128LL },
+ { "ImGuiColorEditFlags_NoSidePreview", 256LL },
+ { "COLOR_EDIT_NO_SIDE_PREVIEW", 256LL },
+ { "ImGuiColorEditFlags_NoDragDrop", 512LL },
+ { "COLOR_EDIT_NO_DRAG_DROP", 512LL },
+ { "ImGuiColorEditFlags_NoBorder", 1024LL },
+ { "COLOR_EDIT_NO_BORDER", 1024LL },
+ { "ImGuiColorEditFlags_NoColorMarkers", 2048LL },
+ { "COLOR_EDIT_NO_COLOR_MARKERS", 2048LL },
+ { "ImGuiColorEditFlags_AlphaOpaque", 4096LL },
+ { "COLOR_EDIT_ALPHA_OPAQUE", 4096LL },
+ { "ImGuiColorEditFlags_AlphaNoBg", 8192LL },
+ { "COLOR_EDIT_ALPHA_NO_BG", 8192LL },
+ { "ImGuiColorEditFlags_AlphaPreviewHalf", 16384LL },
+ { "COLOR_EDIT_ALPHA_PREVIEW_HALF", 16384LL },
+ { "ImGuiColorEditFlags_AlphaBar", 262144LL },
+ { "COLOR_EDIT_ALPHA_BAR", 262144LL },
+ { "ImGuiColorEditFlags_HDR", 524288LL },
+ { "COLOR_EDIT_HDR", 524288LL },
+ { "ImGuiColorEditFlags_DisplayRGB", 1048576LL },
+ { "COLOR_EDIT_DISPLAY_RGB", 1048576LL },
+ { "ImGuiColorEditFlags_DisplayHSV", 2097152LL },
+ { "COLOR_EDIT_DISPLAY_HSV", 2097152LL },
+ { "ImGuiColorEditFlags_DisplayHex", 4194304LL },
+ { "COLOR_EDIT_DISPLAY_HEX", 4194304LL },
+ { "ImGuiColorEditFlags_Uint8", 8388608LL },
+ { "COLOR_EDIT_UINT8", 8388608LL },
+ { "ImGuiColorEditFlags_Float", 16777216LL },
+ { "COLOR_EDIT_FLOAT", 16777216LL },
+ { "ImGuiColorEditFlags_PickerHueBar", 33554432LL },
+ { "COLOR_EDIT_PICKER_HUE_BAR", 33554432LL },
+ { "ImGuiColorEditFlags_PickerHueWheel", 67108864LL },
+ { "COLOR_EDIT_PICKER_HUE_WHEEL", 67108864LL },
+ { "ImGuiColorEditFlags_PickerNoRotate", 134217728LL },
+ { "COLOR_EDIT_PICKER_NO_ROTATE", 134217728LL },
+ { "ImGuiColorEditFlags_InputRGB", 268435456LL },
+ { "COLOR_EDIT_INPUT_RGB", 268435456LL },
+ { "ImGuiColorEditFlags_InputHSV", 536870912LL },
+ { "COLOR_EDIT_INPUT_HSV", 536870912LL },
+ { "ImGuiColorEditFlags_DefaultOptions_", 311427072LL },
+ { "COLOR_EDIT_DEFAULT_OPTIONS_", 311427072LL },
+ { "ImGuiColorEditFlags_AlphaMask_", 28674LL },
+ { "COLOR_EDIT_ALPHA_MASK_", 28674LL },
+ { "ImGuiColorEditFlags_DisplayMask_", 7340032LL },
+ { "COLOR_EDIT_DISPLAY_MASK_", 7340032LL },
+ { "ImGuiColorEditFlags_DataTypeMask_", 25165824LL },
+ { "COLOR_EDIT_DATA_TYPE_MASK_", 25165824LL },
+ { "ImGuiColorEditFlags_PickerMask_", 100663296LL },
+ { "COLOR_EDIT_PICKER_MASK_", 100663296LL },
+ { "ImGuiColorEditFlags_InputMask_", 805306368LL },
+ { "COLOR_EDIT_INPUT_MASK_", 805306368LL },
+ { "ImGuiSliderFlags_None", 0LL },
+ { "SLIDER_NONE", 0LL },
+ { "ImGuiSliderFlags_Logarithmic", 32LL },
+ { "SLIDER_LOGARITHMIC", 32LL },
+ { "ImGuiSliderFlags_NoRoundToFormat", 64LL },
+ { "SLIDER_NO_ROUND_TO_FORMAT", 64LL },
+ { "ImGuiSliderFlags_NoInput", 128LL },
+ { "SLIDER_NO_INPUT", 128LL },
+ { "ImGuiSliderFlags_WrapAround", 256LL },
+ { "SLIDER_WRAP_AROUND", 256LL },
+ { "ImGuiSliderFlags_ClampOnInput", 512LL },
+ { "SLIDER_CLAMP_ON_INPUT", 512LL },
+ { "ImGuiSliderFlags_ClampZeroRange", 1024LL },
+ { "SLIDER_CLAMP_ZERO_RANGE", 1024LL },
+ { "ImGuiSliderFlags_NoSpeedTweaks", 2048LL },
+ { "SLIDER_NO_SPEED_TWEAKS", 2048LL },
+ { "ImGuiSliderFlags_ColorMarkers", 4096LL },
+ { "SLIDER_COLOR_MARKERS", 4096LL },
+ { "ImGuiSliderFlags_AlwaysClamp", 1536LL },
+ { "SLIDER_ALWAYS_CLAMP", 1536LL },
+ { "ImGuiSliderFlags_InvalidMask_", 1879048207LL },
+ { "SLIDER_INVALID_MASK_", 1879048207LL },
+ { "ImGuiMouseButton_Left", 0LL },
+ { "MOUSE_BUTTON_LEFT", 0LL },
+ { "ImGuiMouseButton_Right", 1LL },
+ { "MOUSE_BUTTON_RIGHT", 1LL },
+ { "ImGuiMouseButton_Middle", 2LL },
+ { "MOUSE_BUTTON_MIDDLE", 2LL },
+ { "ImGuiMouseButton_COUNT", 5LL },
+ { "MOUSE_BUTTON_COUNT", 5LL },
+ { "ImGuiMouseCursor_None", -1LL },
+ { "MOUSE_CURSOR_NONE", -1LL },
+ { "ImGuiMouseCursor_Arrow", 0LL },
+ { "MOUSE_CURSOR_ARROW", 0LL },
+ { "ImGuiMouseCursor_TextInput", 1LL },
+ { "MOUSE_CURSOR_TEXT_INPUT", 1LL },
+ { "ImGuiMouseCursor_ResizeAll", 2LL },
+ { "MOUSE_CURSOR_RESIZE_ALL", 2LL },
+ { "ImGuiMouseCursor_ResizeNS", 3LL },
+ { "MOUSE_CURSOR_RESIZE_NS", 3LL },
+ { "ImGuiMouseCursor_ResizeEW", 4LL },
+ { "MOUSE_CURSOR_RESIZE_EW", 4LL },
+ { "ImGuiMouseCursor_ResizeNESW", 5LL },
+ { "MOUSE_CURSOR_RESIZE_NESW", 5LL },
+ { "ImGuiMouseCursor_ResizeNWSE", 6LL },
+ { "MOUSE_CURSOR_RESIZE_NWSE", 6LL },
+ { "ImGuiMouseCursor_Hand", 7LL },
+ { "MOUSE_CURSOR_HAND", 7LL },
+ { "ImGuiMouseCursor_Wait", 8LL },
+ { "MOUSE_CURSOR_WAIT", 8LL },
+ { "ImGuiMouseCursor_Progress", 9LL },
+ { "MOUSE_CURSOR_PROGRESS", 9LL },
+ { "ImGuiMouseCursor_NotAllowed", 10LL },
+ { "MOUSE_CURSOR_NOT_ALLOWED", 10LL },
+ { "ImGuiMouseCursor_COUNT", 11LL },
+ { "MOUSE_CURSOR_COUNT", 11LL },
+ { "ImGuiMouseSource_Mouse", 0LL },
+ { "MOUSE_SOURCE_MOUSE", 0LL },
+ { "ImGuiMouseSource_TouchScreen", 1LL },
+ { "MOUSE_SOURCE_TOUCH_SCREEN", 1LL },
+ { "ImGuiMouseSource_Pen", 2LL },
+ { "MOUSE_SOURCE_PEN", 2LL },
+ { "ImGuiMouseSource_COUNT", 3LL },
+ { "MOUSE_SOURCE_COUNT", 3LL },
+ { "ImGuiCond_None", 0LL },
+ { "COND_NONE", 0LL },
+ { "ImGuiCond_Always", 1LL },
+ { "COND_ALWAYS", 1LL },
+ { "ImGuiCond_Once", 2LL },
+ { "COND_ONCE", 2LL },
+ { "ImGuiCond_FirstUseEver", 4LL },
+ { "COND_FIRST_USE_EVER", 4LL },
+ { "ImGuiCond_Appearing", 8LL },
+ { "COND_APPEARING", 8LL },
+ { "ImGuiTableFlags_None", 0LL },
+ { "TABLE_NONE", 0LL },
+ { "ImGuiTableFlags_Resizable", 1LL },
+ { "TABLE_RESIZABLE", 1LL },
+ { "ImGuiTableFlags_Reorderable", 2LL },
+ { "TABLE_REORDERABLE", 2LL },
+ { "ImGuiTableFlags_Hideable", 4LL },
+ { "TABLE_HIDEABLE", 4LL },
+ { "ImGuiTableFlags_Sortable", 8LL },
+ { "TABLE_SORTABLE", 8LL },
+ { "ImGuiTableFlags_NoSavedSettings", 16LL },
+ { "TABLE_NO_SAVED_SETTINGS", 16LL },
+ { "ImGuiTableFlags_ContextMenuInBody", 32LL },
+ { "TABLE_CONTEXT_MENU_IN_BODY", 32LL },
+ { "ImGuiTableFlags_RowBg", 64LL },
+ { "TABLE_ROW_BG", 64LL },
+ { "ImGuiTableFlags_BordersInnerH", 128LL },
+ { "TABLE_BORDERS_INNER_H", 128LL },
+ { "ImGuiTableFlags_BordersOuterH", 256LL },
+ { "TABLE_BORDERS_OUTER_H", 256LL },
+ { "ImGuiTableFlags_BordersInnerV", 512LL },
+ { "TABLE_BORDERS_INNER_V", 512LL },
+ { "ImGuiTableFlags_BordersOuterV", 1024LL },
+ { "TABLE_BORDERS_OUTER_V", 1024LL },
+ { "ImGuiTableFlags_BordersH", 384LL },
+ { "TABLE_BORDERS_H", 384LL },
+ { "ImGuiTableFlags_BordersV", 1536LL },
+ { "TABLE_BORDERS_V", 1536LL },
+ { "ImGuiTableFlags_BordersInner", 640LL },
+ { "TABLE_BORDERS_INNER", 640LL },
+ { "ImGuiTableFlags_BordersOuter", 1280LL },
+ { "TABLE_BORDERS_OUTER", 1280LL },
+ { "ImGuiTableFlags_Borders", 1920LL },
+ { "TABLE_BORDERS", 1920LL },
+ { "ImGuiTableFlags_NoBordersInBody", 2048LL },
+ { "TABLE_NO_BORDERS_IN_BODY", 2048LL },
+ { "ImGuiTableFlags_NoBordersInBodyUntilResize", 4096LL },
+ { "TABLE_NO_BORDERS_IN_BODY_UNTIL_RESIZE", 4096LL },
+ { "ImGuiTableFlags_SizingFixedFit", 8192LL },
+ { "TABLE_SIZING_FIXED_FIT", 8192LL },
+ { "ImGuiTableFlags_SizingFixedSame", 16384LL },
+ { "TABLE_SIZING_FIXED_SAME", 16384LL },
+ { "ImGuiTableFlags_SizingStretchProp", 24576LL },
+ { "TABLE_SIZING_STRETCH_PROP", 24576LL },
+ { "ImGuiTableFlags_SizingStretchSame", 32768LL },
+ { "TABLE_SIZING_STRETCH_SAME", 32768LL },
+ { "ImGuiTableFlags_NoHostExtendX", 65536LL },
+ { "TABLE_NO_HOST_EXTEND_X", 65536LL },
+ { "ImGuiTableFlags_NoHostExtendY", 131072LL },
+ { "TABLE_NO_HOST_EXTEND_Y", 131072LL },
+ { "ImGuiTableFlags_NoKeepColumnsVisible", 262144LL },
+ { "TABLE_NO_KEEP_COLUMNS_VISIBLE", 262144LL },
+ { "ImGuiTableFlags_PreciseWidths", 524288LL },
+ { "TABLE_PRECISE_WIDTHS", 524288LL },
+ { "ImGuiTableFlags_NoClip", 1048576LL },
+ { "TABLE_NO_CLIP", 1048576LL },
+ { "ImGuiTableFlags_PadOuterX", 2097152LL },
+ { "TABLE_PAD_OUTER_X", 2097152LL },
+ { "ImGuiTableFlags_NoPadOuterX", 4194304LL },
+ { "TABLE_NO_PAD_OUTER_X", 4194304LL },
+ { "ImGuiTableFlags_NoPadInnerX", 8388608LL },
+ { "TABLE_NO_PAD_INNER_X", 8388608LL },
+ { "ImGuiTableFlags_ScrollX", 16777216LL },
+ { "TABLE_SCROLL_X", 16777216LL },
+ { "ImGuiTableFlags_ScrollY", 33554432LL },
+ { "TABLE_SCROLL_Y", 33554432LL },
+ { "ImGuiTableFlags_SortMulti", 67108864LL },
+ { "TABLE_SORT_MULTI", 67108864LL },
+ { "ImGuiTableFlags_SortTristate", 134217728LL },
+ { "TABLE_SORT_TRISTATE", 134217728LL },
+ { "ImGuiTableFlags_HighlightHoveredColumn", 268435456LL },
+ { "TABLE_HIGHLIGHT_HOVERED_COLUMN", 268435456LL },
+ { "ImGuiTableFlags_SizingMask_", 57344LL },
+ { "TABLE_SIZING_MASK_", 57344LL },
+ { "ImGuiTableColumnFlags_None", 0LL },
+ { "TABLE_COLUMN_NONE", 0LL },
+ { "ImGuiTableColumnFlags_Disabled", 1LL },
+ { "TABLE_COLUMN_DISABLED", 1LL },
+ { "ImGuiTableColumnFlags_DefaultHide", 2LL },
+ { "TABLE_COLUMN_DEFAULT_HIDE", 2LL },
+ { "ImGuiTableColumnFlags_DefaultSort", 4LL },
+ { "TABLE_COLUMN_DEFAULT_SORT", 4LL },
+ { "ImGuiTableColumnFlags_WidthStretch", 8LL },
+ { "TABLE_COLUMN_WIDTH_STRETCH", 8LL },
+ { "ImGuiTableColumnFlags_WidthFixed", 16LL },
+ { "TABLE_COLUMN_WIDTH_FIXED", 16LL },
+ { "ImGuiTableColumnFlags_NoResize", 32LL },
+ { "TABLE_COLUMN_NO_RESIZE", 32LL },
+ { "ImGuiTableColumnFlags_NoReorder", 64LL },
+ { "TABLE_COLUMN_NO_REORDER", 64LL },
+ { "ImGuiTableColumnFlags_NoHide", 128LL },
+ { "TABLE_COLUMN_NO_HIDE", 128LL },
+ { "ImGuiTableColumnFlags_NoClip", 256LL },
+ { "TABLE_COLUMN_NO_CLIP", 256LL },
+ { "ImGuiTableColumnFlags_NoSort", 512LL },
+ { "TABLE_COLUMN_NO_SORT", 512LL },
+ { "ImGuiTableColumnFlags_NoSortAscending", 1024LL },
+ { "TABLE_COLUMN_NO_SORT_ASCENDING", 1024LL },
+ { "ImGuiTableColumnFlags_NoSortDescending", 2048LL },
+ { "TABLE_COLUMN_NO_SORT_DESCENDING", 2048LL },
+ { "ImGuiTableColumnFlags_NoHeaderLabel", 4096LL },
+ { "TABLE_COLUMN_NO_HEADER_LABEL", 4096LL },
+ { "ImGuiTableColumnFlags_NoHeaderWidth", 8192LL },
+ { "TABLE_COLUMN_NO_HEADER_WIDTH", 8192LL },
+ { "ImGuiTableColumnFlags_PreferSortAscending", 16384LL },
+ { "TABLE_COLUMN_PREFER_SORT_ASCENDING", 16384LL },
+ { "ImGuiTableColumnFlags_PreferSortDescending", 32768LL },
+ { "TABLE_COLUMN_PREFER_SORT_DESCENDING", 32768LL },
+ { "ImGuiTableColumnFlags_IndentEnable", 65536LL },
+ { "TABLE_COLUMN_INDENT_ENABLE", 65536LL },
+ { "ImGuiTableColumnFlags_IndentDisable", 131072LL },
+ { "TABLE_COLUMN_INDENT_DISABLE", 131072LL },
+ { "ImGuiTableColumnFlags_AngledHeader", 262144LL },
+ { "TABLE_COLUMN_ANGLED_HEADER", 262144LL },
+ { "ImGuiTableColumnFlags_IsEnabled", 16777216LL },
+ { "TABLE_COLUMN_IS_ENABLED", 16777216LL },
+ { "ImGuiTableColumnFlags_IsVisible", 33554432LL },
+ { "TABLE_COLUMN_IS_VISIBLE", 33554432LL },
+ { "ImGuiTableColumnFlags_IsSorted", 67108864LL },
+ { "TABLE_COLUMN_IS_SORTED", 67108864LL },
+ { "ImGuiTableColumnFlags_IsHovered", 134217728LL },
+ { "TABLE_COLUMN_IS_HOVERED", 134217728LL },
+ { "ImGuiTableColumnFlags_WidthMask_", 24LL },
+ { "TABLE_COLUMN_WIDTH_MASK_", 24LL },
+ { "ImGuiTableColumnFlags_IndentMask_", 196608LL },
+ { "TABLE_COLUMN_INDENT_MASK_", 196608LL },
+ { "ImGuiTableColumnFlags_StatusMask_", 251658240LL },
+ { "TABLE_COLUMN_STATUS_MASK_", 251658240LL },
+ { "ImGuiTableColumnFlags_NoDirectResize_", 1073741824LL },
+ { "TABLE_COLUMN_NO_DIRECT_RESIZE_", 1073741824LL },
+ { "ImGuiTableRowFlags_None", 0LL },
+ { "TABLE_ROW_NONE", 0LL },
+ { "ImGuiTableRowFlags_Headers", 1LL },
+ { "TABLE_ROW_HEADERS", 1LL },
+ { "ImGuiTableBgTarget_None", 0LL },
+ { "TABLE_BG_TARGET_NONE", 0LL },
+ { "ImGuiTableBgTarget_RowBg0", 1LL },
+ { "TABLE_BG_TARGET_ROW_BG0", 1LL },
+ { "ImGuiTableBgTarget_RowBg1", 2LL },
+ { "TABLE_BG_TARGET_ROW_BG1", 2LL },
+ { "ImGuiTableBgTarget_CellBg", 3LL },
+ { "TABLE_BG_TARGET_CELL_BG", 3LL },
+ { "ImGuiListClipperFlags_None", 0LL },
+ { "LIST_CLIPPER_NONE", 0LL },
+ { "ImGuiListClipperFlags_NoSetTableRowCounters", 1LL },
+ { "LIST_CLIPPER_NO_SET_TABLE_ROW_COUNTERS", 1LL },
+ { "ImGuiMultiSelectFlags_None", 0LL },
+ { "MULTI_SELECT_NONE", 0LL },
+ { "ImGuiMultiSelectFlags_SingleSelect", 1LL },
+ { "MULTI_SELECT_SINGLE_SELECT", 1LL },
+ { "ImGuiMultiSelectFlags_NoSelectAll", 2LL },
+ { "MULTI_SELECT_NO_SELECT_ALL", 2LL },
+ { "ImGuiMultiSelectFlags_NoRangeSelect", 4LL },
+ { "MULTI_SELECT_NO_RANGE_SELECT", 4LL },
+ { "ImGuiMultiSelectFlags_NoAutoSelect", 8LL },
+ { "MULTI_SELECT_NO_AUTO_SELECT", 8LL },
+ { "ImGuiMultiSelectFlags_NoAutoClear", 16LL },
+ { "MULTI_SELECT_NO_AUTO_CLEAR", 16LL },
+ { "ImGuiMultiSelectFlags_NoAutoClearOnReselect", 32LL },
+ { "MULTI_SELECT_NO_AUTO_CLEAR_ON_RESELECT", 32LL },
+ { "ImGuiMultiSelectFlags_BoxSelect1d", 64LL },
+ { "MULTI_SELECT_BOX_SELECT1D", 64LL },
+ { "ImGuiMultiSelectFlags_BoxSelect2d", 128LL },
+ { "MULTI_SELECT_BOX_SELECT2D", 128LL },
+ { "ImGuiMultiSelectFlags_BoxSelectNoScroll", 256LL },
+ { "MULTI_SELECT_BOX_SELECT_NO_SCROLL", 256LL },
+ { "ImGuiMultiSelectFlags_ClearOnEscape", 512LL },
+ { "MULTI_SELECT_CLEAR_ON_ESCAPE", 512LL },
+ { "ImGuiMultiSelectFlags_ClearOnClickVoid", 1024LL },
+ { "MULTI_SELECT_CLEAR_ON_CLICK_VOID", 1024LL },
+ { "ImGuiMultiSelectFlags_ScopeWindow", 2048LL },
+ { "MULTI_SELECT_SCOPE_WINDOW", 2048LL },
+ { "ImGuiMultiSelectFlags_ScopeRect", 4096LL },
+ { "MULTI_SELECT_SCOPE_RECT", 4096LL },
+ { "ImGuiMultiSelectFlags_SelectOnAuto", 8192LL },
+ { "MULTI_SELECT_SELECT_ON_AUTO", 8192LL },
+ { "ImGuiMultiSelectFlags_SelectOnClickAlways", 16384LL },
+ { "MULTI_SELECT_SELECT_ON_CLICK_ALWAYS", 16384LL },
+ { "ImGuiMultiSelectFlags_SelectOnClickRelease", 32768LL },
+ { "MULTI_SELECT_SELECT_ON_CLICK_RELEASE", 32768LL },
+ { "ImGuiMultiSelectFlags_NavWrapX", 65536LL },
+ { "MULTI_SELECT_NAV_WRAP_X", 65536LL },
+ { "ImGuiMultiSelectFlags_NoSelectOnRightClick", 131072LL },
+ { "MULTI_SELECT_NO_SELECT_ON_RIGHT_CLICK", 131072LL },
+ { "ImGuiMultiSelectFlags_SelectOnMask_", 57344LL },
+ { "MULTI_SELECT_SELECT_ON_MASK_", 57344LL },
+ { "ImGuiMultiSelectFlags_CheckboxMode_", 1048576LL },
+ { "MULTI_SELECT_CHECKBOX_MODE_", 1048576LL },
+ { "ImGuiSelectionRequestType_None", 0LL },
+ { "SELECTION_REQUEST_TYPE_NONE", 0LL },
+ { "ImGuiSelectionRequestType_SetAll", 1LL },
+ { "SELECTION_REQUEST_TYPE_SET_ALL", 1LL },
+ { "ImGuiSelectionRequestType_SetRange", 2LL },
+ { "SELECTION_REQUEST_TYPE_SET_RANGE", 2LL },
+ { "ImDrawFlags_None", 0LL },
+ { "DRAW_NONE", 0LL },
+ { "ImDrawFlags_RoundTopLeft", 16LL },
+ { "DRAW_ROUND_TOP_LEFT", 16LL },
+ { "ImDrawFlags_RoundTopRight", 32LL },
+ { "DRAW_ROUND_TOP_RIGHT", 32LL },
+ { "ImDrawFlags_RoundBottomLeft", 64LL },
+ { "DRAW_ROUND_BOTTOM_LEFT", 64LL },
+ { "ImDrawFlags_RoundBottomRight", 128LL },
+ { "DRAW_ROUND_BOTTOM_RIGHT", 128LL },
+ { "ImDrawFlags_RoundNone", 256LL },
+ { "DRAW_ROUND_NONE", 256LL },
+ { "ImDrawFlags_RoundAll", 240LL },
+ { "DRAW_ROUND_ALL", 240LL },
+ { "ImDrawFlags_RoundTop", 48LL },
+ { "DRAW_ROUND_TOP", 48LL },
+ { "ImDrawFlags_RoundBottom", 192LL },
+ { "DRAW_ROUND_BOTTOM", 192LL },
+ { "ImDrawFlags_RoundLeft", 80LL },
+ { "DRAW_ROUND_LEFT", 80LL },
+ { "ImDrawFlags_RoundRight", 160LL },
+ { "DRAW_ROUND_RIGHT", 160LL },
+ { "ImDrawFlags_Closed", 512LL },
+ { "DRAW_CLOSED", 512LL },
+ { "ImDrawFlags_JoinMiter", 1024LL },
+ { "DRAW_JOIN_MITER", 1024LL },
+ { "ImDrawFlags_CapSquare", 2048LL },
+ { "DRAW_CAP_SQUARE", 2048LL },
+ { "ImDrawFlags_AAFill", 4096LL },
+ { "DRAW_AA_FILL", 4096LL },
+ { "ImDrawFlags_AALines", 8192LL },
+ { "DRAW_AA_LINES", 8192LL },
+ { "ImDrawFlags_AALineEnds", 16384LL },
+ { "DRAW_AA_LINE_ENDS", 16384LL },
+ { "ImDrawFlags_StrokeInside", 131072LL },
+ { "DRAW_STROKE_INSIDE", 131072LL },
+ { "ImDrawFlags_StrokeCenter", 262144LL },
+ { "DRAW_STROKE_CENTER", 262144LL },
+ { "ImDrawFlags_StrokeCenterBiased", 393216LL },
+ { "DRAW_STROKE_CENTER_BIASED", 393216LL },
+ { "ImDrawFlags_StrokeOutside", 524288LL },
+ { "DRAW_STROKE_OUTSIDE", 524288LL },
+ { "ImDrawFlags_StrokeLegacy", 917504LL },
+ { "DRAW_STROKE_LEGACY", 917504LL },
+ { "ImDrawFlags_TextNoPixelSnap", 1048576LL },
+ { "DRAW_TEXT_NO_PIXEL_SNAP", 1048576LL },
+ { "ImDrawFlags_UseTexForRoundCorners", 2097152LL },
+ { "DRAW_USE_TEX_FOR_ROUND_CORNERS", 2097152LL },
+ { "ImDrawFlags_UseVtxOffset", 4194304LL },
+ { "DRAW_USE_VTX_OFFSET", 4194304LL },
+ { "ImDrawFlags_AllowTexForRoundCorners_", 8388608LL },
+ { "DRAW_ALLOW_TEX_FOR_ROUND_CORNERS_", 8388608LL },
+ { "ImDrawFlags_RoundMask_", 496LL },
+ { "DRAW_ROUND_MASK_", 496LL },
+ { "ImDrawFlags_AllowInPushScope_", 8286704LL },
+ { "DRAW_ALLOW_IN_PUSH_SCOPE_", 8286704LL },
+ { "ImDrawFlags_AllowInFrameScope_", 16675312LL },
+ { "DRAW_ALLOW_IN_FRAME_SCOPE_", 16675312LL },
+ { "ImDrawFlags_StrokeMask_", 917504LL },
+ { "DRAW_STROKE_MASK_", 917504LL },
+ { "ImDrawFlags_InvalidMask_", -2147483633LL },
+ { "DRAW_INVALID_MASK_", -2147483633LL },
+ { "ImTextureFormat_RGBA32", 0LL },
+ { "TEXTURE_FORMAT_RGBA32", 0LL },
+ { "ImTextureFormat_Alpha8", 1LL },
+ { "TEXTURE_FORMAT_ALPHA8", 1LL },
+ { "ImTextureStatus_OK", 0LL },
+ { "TEXTURE_STATUS_OK", 0LL },
+ { "ImTextureStatus_Destroyed", 1LL },
+ { "TEXTURE_STATUS_DESTROYED", 1LL },
+ { "ImTextureStatus_WantCreate", 2LL },
+ { "TEXTURE_STATUS_WANT_CREATE", 2LL },
+ { "ImTextureStatus_WantUpdates", 3LL },
+ { "TEXTURE_STATUS_WANT_UPDATES", 3LL },
+ { "ImTextureStatus_WantDestroy", 4LL },
+ { "TEXTURE_STATUS_WANT_DESTROY", 4LL },
+ { "ImFontAtlasFlags_None", 0LL },
+ { "FONT_ATLAS_NONE", 0LL },
+ { "ImFontAtlasFlags_NoPowerOfTwoHeight", 1LL },
+ { "FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT", 1LL },
+ { "ImFontAtlasFlags_NoMouseCursors", 2LL },
+ { "FONT_ATLAS_NO_MOUSE_CURSORS", 2LL },
+ { "ImFontAtlasFlags_NoBakedLines", 4LL },
+ { "FONT_ATLAS_NO_BAKED_LINES", 4LL },
+ { "ImFontAtlasFlags_NoBakedRoundCorners", 8LL },
+ { "FONT_ATLAS_NO_BAKED_ROUND_CORNERS", 8LL },
+ { "ImFontFlags_None", 0LL },
+ { "FONT_NONE", 0LL },
+ { "ImFontFlags_NoLoadError", 2LL },
+ { "FONT_NO_LOAD_ERROR", 2LL },
+ { "ImFontFlags_NoLoadGlyphs", 4LL },
+ { "FONT_NO_LOAD_GLYPHS", 4LL },
+ { "ImFontFlags_LockBakedSizes", 8LL },
+ { "FONT_LOCK_BAKED_SIZES", 8LL },
+ { "ImFontFlags_ImplicitRefSize", 16LL },
+ { "FONT_IMPLICIT_REF_SIZE", 16LL },
+ { "ImGuiViewportFlags_None", 0LL },
+ { "VIEWPORT_NONE", 0LL },
+ { "ImGuiViewportFlags_IsPlatformWindow", 1LL },
+ { "VIEWPORT_IS_PLATFORM_WINDOW", 1LL },
+ { "ImGuiViewportFlags_IsPlatformMonitor", 2LL },
+ { "VIEWPORT_IS_PLATFORM_MONITOR", 2LL },
+ { "ImGuiViewportFlags_OwnedByApp", 4LL },
+ { "VIEWPORT_OWNED_BY_APP", 4LL },
+ { "IMGUI_VERSION_NUM", 19302LL },
+ { "IM_UNICODE_CODEPOINT_INVALID", 0xFFFDLL },
+ { "IM_UNICODE_CODEPOINT_MAX", 0xFFFFLL },
+ { "IM_COL32_R_SHIFT", 0LL },
+ { "IM_COL32_G_SHIFT", 8LL },
+ { "IM_COL32_B_SHIFT", 16LL },
+ { "IM_COL32_A_SHIFT", 24LL },
+ { "IM_COL32_A_MASK", 0xFF000000LL },
+ { nullptr, 0 },
+};
+static const char* const bi_str_consts[][2] = {
+ { "IMGUI_VERSION", "1.93.1 WIP" },
+ { "IMGUI_PAYLOAD_TYPE_COLOR_3F", "_COL3F" },
+ { "IMGUI_PAYLOAD_TYPE_COLOR_4F", "_COL4F" },
+ { nullptr, nullptr },
+};
diff --git a/bindings/python/src/buiimgui_module.cpp b/bindings/python/src/buiimgui_module.cpp
new file mode 100644
index 0000000..978e23b
--- /dev/null
+++ b/bindings/python/src/buiimgui_module.cpp
@@ -0,0 +1,375 @@
+// buiimgui_module.cpp: the `_buiimgui` CPython extension, Dear ImGui on BUI for Python.
+// Imported as blenderui.imgui / bui.imgui (bindings/python/bui/imgui.py adds run() and
+// HeadlessApp). The API itself is generated from imgui.h (buiimgui_gen.inc); this file
+// adds the BUI app (window or headless) and the module init.
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "buiimgui_rt.h"
+// the C API of the BUI backend (+ headless input helpers), kept in its own namespace: its
+// C structs mirror imgui.h's
+namespace cimgui {
+#include "cimgui_impl_bui.h"
+}
+
+#include "buiimgui_gen.inc"
+
+//-----------------------------------------------------------------------------
+// App: a BUI window (or headless raster) running a Python frame function
+//-----------------------------------------------------------------------------
+
+struct BiApp
+{
+ PyObject_HEAD
+ cimgui::cImGui_ImplBUI_App* app;
+ PyObject* frame;
+ PyObject *et, *ev, *etb; // an exception raised by the frame function
+ ImGuiContext* ctx;
+};
+
+static PyTypeObject* bi_AppType = nullptr;
+
+static void bi_app_frame(void* user)
+{
+ BiApp* a = (BiApp*)user;
+ if (a->et != nullptr || a->frame == nullptr)
+ return; // after an error: empty frames until the caller sees it
+ PyObject* r = PyObject_CallNoArgs(a->frame);
+ if (r == nullptr)
+ {
+ PyErr_Fetch(&a->et, &a->ev, &a->etb);
+ cimgui::cImGui_ImplBUI_CloseApp(a->app);
+ return;
+ }
+ Py_DECREF(r);
+}
+
+static PyObject* bi_app_raise(BiApp* a)
+{
+ if (a->et == nullptr)
+ return nullptr;
+ PyErr_Restore(a->et, a->ev, a->etb);
+ a->et = a->ev = a->etb = nullptr;
+ return (PyObject*)1;
+}
+
+static PyObject* bi_app_new(PyTypeObject* type, PyObject* args, PyObject* kw)
+{
+ static const char* kwl[] = { "frame", "title", "width", "height", "headless", "blender_style", "blender_font", "font_size", nullptr };
+ PyObject* frame = nullptr;
+ const char* title = "Dear ImGui on BUI";
+ int width = 1280, height = 800, headless = 0, blender_style = 1, blender_font = 1;
+ float font_size = 0.0f;
+ if (!PyArg_ParseTupleAndKeywords(args, kw, "O|ziipppf", (char**)kwl, &frame, &title, &width, &height, &headless,
+ &blender_style, &blender_font, &font_size))
+ return nullptr;
+ if (!PyCallable_Check(frame))
+ {
+ PyErr_SetString(PyExc_TypeError, "frame must be callable");
+ return nullptr;
+ }
+ if (ImGui::GetCurrentContext() == nullptr)
+ {
+ PyErr_SetString(PyExc_RuntimeError, "no current ImGui context: call imgui.create_context() first");
+ return nullptr;
+ }
+ BiApp* a = (BiApp*)type->tp_alloc(type, 0);
+ if (a == nullptr)
+ return nullptr;
+ Py_INCREF(frame);
+ a->frame = frame;
+ a->ctx = ImGui::GetCurrentContext();
+ cimgui::cImGui_ImplBUI_Config cfg = cimgui::cImGui_ImplBUI_DefaultConfig();
+ cfg.BlenderStyle = blender_style != 0;
+ cfg.BlenderFont = blender_font != 0;
+ cfg.FontSize = font_size;
+ a->app = headless ? cimgui::cImGui_ImplBUI_CreateHeadlessApp(width, height, bi_app_frame, a, &cfg)
+ : cimgui::cImGui_ImplBUI_CreateApp(title, width, height, bi_app_frame, a, &cfg);
+ return (PyObject*)a;
+}
+
+static void bi_app_destroy(BiApp* a)
+{
+ if (a->app)
+ {
+ ImGuiContext* prev = ImGui::GetCurrentContext();
+ ImGui::SetCurrentContext(a->ctx);
+ cimgui::cImGui_ImplBUI_DestroyApp(a->app);
+ a->app = nullptr;
+ if (prev != a->ctx)
+ ImGui::SetCurrentContext(prev);
+ }
+}
+
+static void bi_app_dealloc(PyObject* self)
+{
+ BiApp* a = (BiApp*)self;
+ PyTypeObject* tp = Py_TYPE(self);
+ bi_app_destroy(a);
+ Py_CLEAR(a->frame);
+ Py_CLEAR(a->et);
+ Py_CLEAR(a->ev);
+ Py_CLEAR(a->etb);
+ tp->tp_free(self);
+ Py_DECREF(tp);
+}
+
+#define BI_APP(self) BiApp* a = (BiApp*)self; if (a->app == nullptr) { PyErr_SetString(PyExc_RuntimeError, "app destroyed"); return nullptr; }
+#define BI_APP_DONE() if (bi_app_raise(a)) return nullptr; Py_RETURN_NONE
+
+static PyObject* bi_app_run(PyObject* self, PyObject*)
+{
+ BI_APP(self);
+ cimgui::cImGui_ImplBUI_RunApp(a->app);
+ BI_APP_DONE();
+}
+
+static PyObject* bi_app_close(PyObject* self, PyObject*)
+{
+ BI_APP(self);
+ cimgui::cImGui_ImplBUI_CloseApp(a->app);
+ Py_RETURN_NONE;
+}
+
+static PyObject* bi_app_destroy_m(PyObject* self, PyObject*)
+{
+ bi_app_destroy((BiApp*)self);
+ Py_RETURN_NONE;
+}
+
+static PyObject* bi_app_render(PyObject* self, PyObject* args)
+{
+ int n = 1;
+ if (!PyArg_ParseTuple(args, "|i", &n))
+ return nullptr;
+ BI_APP(self);
+ const int frames = cimgui::cImGui_ImplBUI_Render(a->app, n);
+ if (bi_app_raise(a))
+ return nullptr;
+ return PyLong_FromLong(frames);
+}
+
+static PyObject* bi_app_pixels(PyObject* self, PyObject*)
+{
+ BI_APP(self);
+ int w = 0, h = 0;
+ const uint32_t* px = cimgui::cImGui_ImplBUI_Pixels(a->app, &w, &h);
+ if (px == nullptr)
+ Py_RETURN_NONE;
+ PyObject* b = PyBytes_FromStringAndSize((const char*)px, (Py_ssize_t)w * h * 4);
+ return Py_BuildValue("(iiN)", w, h, b);
+}
+
+static PyObject* bi_app_save_png(PyObject* self, PyObject* args)
+{
+ const char* path;
+ if (!PyArg_ParseTuple(args, "s", &path))
+ return nullptr;
+ BI_APP(self);
+ return PyBool_FromLong(cimgui::cImGui_ImplBUI_SavePNG(a->app, path));
+}
+
+static PyObject* bi_app_xy(PyObject* self, PyObject* args, int what)
+{
+ float x, y;
+ int button = 0;
+ if (!PyArg_ParseTuple(args, "ff|i", &x, &y, &button))
+ return nullptr;
+ BI_APP(self);
+ switch (what)
+ {
+ case 0: cimgui::cImGui_ImplBUI_MouseMove(a->app, x, y); break;
+ case 1: cimgui::cImGui_ImplBUI_MouseDown(a->app, x, y, button); break;
+ case 2: cimgui::cImGui_ImplBUI_MouseUp(a->app, x, y, button); break;
+ case 3:
+ cimgui::cImGui_ImplBUI_MouseDown(a->app, x, y, button);
+ cimgui::cImGui_ImplBUI_MouseUp(a->app, x, y, button);
+ break;
+ }
+ BI_APP_DONE();
+}
+
+static PyObject* bi_app_mouse_move(PyObject* s, PyObject* a) { return bi_app_xy(s, a, 0); }
+static PyObject* bi_app_mouse_down(PyObject* s, PyObject* a) { return bi_app_xy(s, a, 1); }
+static PyObject* bi_app_mouse_up(PyObject* s, PyObject* a) { return bi_app_xy(s, a, 2); }
+static PyObject* bi_app_click(PyObject* s, PyObject* a) { return bi_app_xy(s, a, 3); }
+
+static PyObject* bi_app_scroll(PyObject* self, PyObject* args)
+{
+ float x, y, dx, dy;
+ if (!PyArg_ParseTuple(args, "ffff", &x, &y, &dx, &dy))
+ return nullptr;
+ BI_APP(self);
+ cimgui::cImGui_ImplBUI_Scroll(a->app, x, y, dx, dy);
+ BI_APP_DONE();
+}
+
+static PyObject* bi_app_key_impl(PyObject* self, PyObject* args, int what)
+{
+ const char* keysym;
+ int mods = 0;
+ if (!PyArg_ParseTuple(args, "s|i", &keysym, &mods))
+ return nullptr;
+ BI_APP(self);
+ if (what == 0)
+ cimgui::cImGui_ImplBUI_Key(a->app, keysym, mods);
+ else if (what == 1)
+ cimgui::cImGui_ImplBUI_KeyDown(a->app, keysym, mods);
+ else
+ cimgui::cImGui_ImplBUI_KeyUp(a->app, keysym, mods);
+ BI_APP_DONE();
+}
+
+static PyObject* bi_app_key(PyObject* s, PyObject* a) { return bi_app_key_impl(s, a, 0); }
+static PyObject* bi_app_key_down(PyObject* s, PyObject* a) { return bi_app_key_impl(s, a, 1); }
+static PyObject* bi_app_key_up(PyObject* s, PyObject* a) { return bi_app_key_impl(s, a, 2); }
+
+static PyObject* bi_app_type_text(PyObject* self, PyObject* args)
+{
+ const char* text;
+ if (!PyArg_ParseTuple(args, "s", &text))
+ return nullptr;
+ BI_APP(self);
+ cimgui::cImGui_ImplBUI_TypeText(a->app, text);
+ BI_APP_DONE();
+}
+
+static PyObject* bi_app_headless(PyObject* self, void*)
+{
+ BI_APP(self);
+ return PyBool_FromLong(cimgui::cImGui_ImplBUI_IsHeadless(a->app));
+}
+
+static PyObject* bi_app_frame_count(PyObject* self, void*)
+{
+ BI_APP(self);
+ (void)a;
+ return PyLong_FromLong(cimgui::cImGui_ImplBUI_FrameCount());
+}
+
+static PyMethodDef bi_app_methods[] = {
+ { "run", bi_app_run, METH_NOARGS, "run() -- the BUI message loop until the window closes" },
+ { "close", bi_app_close, METH_NOARGS, "close() -- close the window (ends run())" },
+ { "destroy", bi_app_destroy_m, METH_NOARGS, "destroy() -- shut the backend down" },
+ { "render", bi_app_render, METH_VARARGS, "render(n=1) -> frames: n BK_render passes into the offscreen raster" },
+ { "pixels", bi_app_pixels, METH_NOARGS, "pixels() -> (width, height, bytes BGRA): the last rendered frame" },
+ { "save_png", bi_app_save_png, METH_VARARGS, "save_png(path) -> bool" },
+ { "mouse_move", bi_app_mouse_move, METH_VARARGS, "mouse_move(x, y)" },
+ { "mouse_down", bi_app_mouse_down, METH_VARARGS, "mouse_down(x, y, button=0)" },
+ { "mouse_up", bi_app_mouse_up, METH_VARARGS, "mouse_up(x, y, button=0)" },
+ { "click", bi_app_click, METH_VARARGS, "click(x, y, button=0)" },
+ { "scroll", bi_app_scroll, METH_VARARGS, "scroll(x, y, dx, dy) -- wheel notches, dy > 0 up" },
+ { "key", bi_app_key, METH_VARARGS, "key(keysym, mods=0) -- press and release (X11 names: 'Return', 'BackSpace', 'a')" },
+ { "key_down", bi_app_key_down, METH_VARARGS, "key_down(keysym, mods=0)" },
+ { "key_up", bi_app_key_up, METH_VARARGS, "key_up(keysym, mods=0)" },
+ { "type_text", bi_app_type_text, METH_VARARGS, "type_text(str) -- typed characters" },
+ { nullptr, nullptr, 0, nullptr },
+};
+
+static PyGetSetDef bi_app_getset[] = {
+ { "headless", bi_app_headless, nullptr, nullptr, nullptr },
+ { "frame_count", bi_app_frame_count, nullptr, nullptr, nullptr },
+ { nullptr, nullptr, nullptr, nullptr, nullptr },
+};
+
+static PyType_Slot bi_app_slots[] = {
+ { Py_tp_new, (void*)bi_app_new },
+ { Py_tp_dealloc, (void*)bi_app_dealloc },
+ { Py_tp_methods, (void*)bi_app_methods },
+ { Py_tp_getset, (void*)bi_app_getset },
+ { Py_tp_doc, (void*)"App(frame, title='Dear ImGui on BUI', width=1280, height=800, headless=False, blender_style=True, blender_font=True, font_size=0.0)\n\n"
+ "Dear ImGui in a BUI window (or headless): frame() is called inside each ImGui frame." },
+ { 0, nullptr },
+};
+static PyType_Spec bi_app_spec = { "imgui.App", sizeof(BiApp), 0, Py_TPFLAGS_DEFAULT, bi_app_slots };
+
+//-----------------------------------------------------------------------------
+// Module-level helpers outside imgui.h
+//-----------------------------------------------------------------------------
+
+static PyObject* bi_style_blender(PyObject*, PyObject* args)
+{
+ float scale = 1.0f;
+ if (!PyArg_ParseTuple(args, "|f", &scale))
+ return nullptr;
+ cimgui::cImGui_ImplBUI_StyleBlender(nullptr, scale);
+ Py_RETURN_NONE;
+}
+
+static PyObject* bi_get_scale(PyObject*, PyObject*) { return PyFloat_FromDouble(cimgui::cImGui_ImplBUI_GetScale()); }
+
+static PyObject* bi_set_scale(PyObject*, PyObject* args)
+{
+ float s;
+ if (!PyArg_ParseTuple(args, "f", &s))
+ return nullptr;
+ cimgui::cImGui_ImplBUI_SetScale(s);
+ Py_RETURN_NONE;
+}
+
+static PyObject* bi_sizeof(PyObject*, PyObject* args)
+{
+ const char* n;
+ if (!PyArg_ParseTuple(args, "s", &n))
+ return nullptr;
+ return PyLong_FromSize_t(cimgui::cImGui_SizeOf(n));
+}
+
+static PyMethodDef bi_module_methods_extra[] = {
+ { "style_blender", bi_style_blender, METH_VARARGS, "style_blender(scale=1.0) -- Blender's theme on the current style" },
+ { "get_ui_scale", bi_get_scale, METH_NOARGS, "get_ui_scale() -> BUI's UI scale (DPI)" },
+ { "set_ui_scale", bi_set_scale, METH_VARARGS, "set_ui_scale(scale)" },
+ { "_sizeof", bi_sizeof, METH_VARARGS, "_sizeof(type_name) -> sizeof() in C++ (tests)" },
+ { nullptr, nullptr, 0, nullptr },
+};
+
+static PyStructSequence_Field bi_vec2_fields[] = { { "x", nullptr }, { "y", nullptr }, { nullptr, nullptr } };
+static PyStructSequence_Field bi_vec4_fields[] = { { "x", nullptr }, { "y", nullptr }, { "z", nullptr }, { "w", nullptr }, { nullptr, nullptr } };
+static PyStructSequence_Desc bi_vec2_desc = { "imgui.Vec2", "ImVec2 (x, y)", bi_vec2_fields, 2 };
+static PyStructSequence_Desc bi_vec4_desc = { "imgui.Vec4", "ImVec4 (x, y, z, w)", bi_vec4_fields, 4 };
+
+static int bi_add_functions(PyObject* m, PyMethodDef* defs)
+{
+ for (PyMethodDef* d = defs; d->ml_name; d++)
+ {
+ PyObject* f = PyCFunction_NewEx(d, nullptr, PyModule_GetNameObject(m));
+ if (f == nullptr || PyModule_AddObject(m, d->ml_name, f) < 0)
+ return -1;
+ }
+ return 0;
+}
+
+static struct PyModuleDef bi_moduledef = {
+ PyModuleDef_HEAD_INIT, "_buiimgui",
+ "Dear ImGui " IMGUI_VERSION " on BUI (generated from imgui.h). Use it as blenderui.imgui / bui.imgui.",
+ -1, nullptr,
+};
+
+PyMODINIT_FUNC PyInit__buiimgui(void)
+{
+ PyObject* m = PyModule_Create(&bi_moduledef);
+ if (m == nullptr)
+ return nullptr;
+ bi_Vec2Type = PyStructSequence_NewType(&bi_vec2_desc);
+ bi_Vec4Type = PyStructSequence_NewType(&bi_vec4_desc);
+ bi_ArrayType = (PyTypeObject*)PyType_FromSpec(&bi_array_spec);
+ bi_AppType = (PyTypeObject*)PyType_FromSpec(&bi_app_spec);
+ if (!bi_Vec2Type || !bi_Vec4Type || !bi_ArrayType || !bi_AppType)
+ return nullptr;
+ Py_INCREF(bi_Vec2Type);
+ Py_INCREF(bi_Vec4Type);
+ Py_INCREF(bi_AppType);
+ PyModule_AddObject(m, "Vec2", (PyObject*)bi_Vec2Type);
+ PyModule_AddObject(m, "Vec4", (PyObject*)bi_Vec4Type);
+ PyModule_AddObject(m, "App", (PyObject*)bi_AppType);
+ if (bi_add_functions(m, bi_module_methods_gen) < 0 || bi_add_functions(m, bi_module_methods_extra) < 0)
+ return nullptr;
+ for (BiStructInfo& s : bi_structs)
+ if (!bi_make_type(m, s))
+ return nullptr;
+ for (const BiConst* c = bi_consts; c->name; c++)
+ PyModule_AddObject(m, c->name, PyLong_FromLongLong(c->value));
+ for (int i = 0; bi_str_consts[i][0]; i++)
+ PyModule_AddStringConstant(m, bi_str_consts[i][0], bi_str_consts[i][1]);
+ return m;
+}
diff --git a/bindings/python/src/buiimgui_rt.h b/bindings/python/src/buiimgui_rt.h
new file mode 100644
index 0000000..936ff78
--- /dev/null
+++ b/bindings/python/src/buiimgui_rt.h
@@ -0,0 +1,983 @@
+// buiimgui_rt.h: runtime of the Dear ImGui Python extension (blenderui.imgui / bui.imgui).
+// The functions, types and constants come from buiimgui_gen.inc (generated by
+// bindings/imgui/gen/gen.py from imgui.h); this header holds what they share:
+// argument parsing, conversions (bi_from / bi_to), the struct wrapper type, array views
+// and the generic field accessors.
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+#define PY_SSIZE_T_CLEAN
+#include <Python.h>
+#include <structmember.h>
+
+#include "imgui.h"
+
+#include <cstddef>
+#include <cstring>
+#include <string>
+#include <type_traits>
+#include <unordered_map>
+#include <vector>
+
+#if defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Winvalid-offsetof"
+#endif
+
+//-----------------------------------------------------------------------------
+// Wrapped C++ objects: a pointer, an optional deleter (owned objects), an owner kept alive
+//-----------------------------------------------------------------------------
+
+struct BiObj
+{
+ PyObject_HEAD
+ void* ptr;
+ void (*del)(void*);
+ PyObject* owner;
+};
+
+template<class T> struct BiType { static PyTypeObject* type; };
+template<class T> PyTypeObject* BiType<T>::type = nullptr;
+
+static PyTypeObject* bi_Vec2Type = nullptr;
+static PyTypeObject* bi_Vec4Type = nullptr;
+static PyTypeObject* bi_ArrayType = nullptr;
+
+static PyObject* bi_wrap_raw(PyTypeObject* type, void* p, void (*del)(void*), PyObject* owner)
+{
+ if (p == nullptr)
+ Py_RETURN_NONE;
+ if (type == nullptr)
+ return PyLong_FromVoidPtr(p);
+ BiObj* o = (BiObj*)type->tp_alloc(type, 0);
+ if (o == nullptr)
+ {
+ if (del)
+ del(p);
+ return nullptr;
+ }
+ o->ptr = p;
+ o->del = del;
+ o->owner = owner;
+ Py_XINCREF(owner);
+ return (PyObject*)o;
+}
+
+template<class T> static PyObject* bi_wrap(T* p, PyObject* owner = nullptr)
+{
+ using U = std::remove_cv_t<T>;
+ return bi_wrap_raw(BiType<U>::type, (void*)p, nullptr, owner);
+}
+
+template<class T> static void bi_delete(void* p) { IM_DELETE((T*)p); }
+
+// a by-value struct returned to Python: an owned copy
+template<class T> static PyObject* bi_copy(const T& v)
+{
+ T* p = IM_NEW(T)(v);
+ return bi_wrap_raw(BiType<T>::type, (void*)p, &bi_delete<T>, nullptr);
+}
+
+template<class T> static PyObject* bi_owned(T* p)
+{
+ return bi_wrap_raw(BiType<T>::type, (void*)p, &bi_delete<T>, nullptr);
+}
+
+static void bi_obj_dealloc(PyObject* self)
+{
+ BiObj* o = (BiObj*)self;
+ PyTypeObject* tp = Py_TYPE(self);
+ if (o->del && o->ptr)
+ o->del(o->ptr);
+ o->ptr = nullptr;
+ Py_CLEAR(o->owner);
+ tp->tp_free(self);
+ Py_DECREF(tp);
+}
+
+static PyObject* bi_obj_repr(PyObject* self)
+{
+ return PyUnicode_FromFormat("<%s at %p%s>", Py_TYPE(self)->tp_name, ((BiObj*)self)->ptr,
+ ((BiObj*)self)->del ? " (owned)" : "");
+}
+
+static PyObject* bi_obj_richcompare(PyObject* a, PyObject* b, int op)
+{
+ if ((op != Py_EQ && op != Py_NE) || !PyObject_TypeCheck(b, Py_TYPE(a)))
+ Py_RETURN_NOTIMPLEMENTED;
+ const bool eq = ((BiObj*)a)->ptr == ((BiObj*)b)->ptr;
+ return PyBool_FromLong(op == Py_EQ ? eq : !eq);
+}
+
+static Py_hash_t bi_obj_hash(PyObject* self)
+{
+ Py_hash_t h = (Py_hash_t)((uintptr_t)((BiObj*)self)->ptr >> 4);
+ return h == -1 ? -2 : h;
+}
+
+static PyObject* bi_obj_address(PyObject* self, void*) { return PyLong_FromVoidPtr(((BiObj*)self)->ptr); }
+
+//-----------------------------------------------------------------------------
+// Argument parsing
+//-----------------------------------------------------------------------------
+
+#define BI_FAIL { *argfail = 1; return nullptr; }
+#define BI_GET(i, v) if (o[i] && !bi_from(o[i], v)) BI_FAIL
+#define BI_GETP(i, v) if (o[i] && !bi_from_ptr(o[i], v)) BI_FAIL
+
+static bool bi_parse(PyObject* args, PyObject* kw, const char* const* names, int n, int nreq, PyObject** o, int* argfail)
+{
+ const Py_ssize_t na = args ? PyTuple_GET_SIZE(args) : 0;
+ if (na > n)
+ {
+ *argfail = 1;
+ PyErr_Format(PyExc_TypeError, "takes at most %d argument%s (%zd given)", n, n == 1 ? "" : "s", na);
+ return false;
+ }
+ for (Py_ssize_t i = 0; i < na; i++)
+ o[i] = PyTuple_GET_ITEM(args, i);
+ if (kw)
+ {
+ PyObject *k, *v;
+ Py_ssize_t pos = 0;
+ while (PyDict_Next(kw, &pos, &k, &v))
+ {
+ const char* ks = PyUnicode_AsUTF8(k);
+ int idx = -1;
+ for (int i = 0; ks && i < n; i++)
+ if (strcmp(names[i], ks) == 0)
+ idx = i;
+ if (idx < 0)
+ {
+ *argfail = 1;
+ PyErr_Format(PyExc_TypeError, "unexpected keyword argument '%s'", ks ? ks : "?");
+ return false;
+ }
+ if (o[idx])
+ {
+ *argfail = 1;
+ PyErr_Format(PyExc_TypeError, "got multiple values for argument '%s'", ks);
+ return false;
+ }
+ o[idx] = v;
+ }
+ }
+ for (int i = 0; i < nreq; i++)
+ if (o[i] == nullptr)
+ {
+ *argfail = 1;
+ PyErr_Format(PyExc_TypeError, "missing required argument '%s' (pos %d)", names[i], i + 1);
+ return false;
+ }
+ return true;
+}
+
+typedef PyObject* (*BiVariant)(PyObject* self, PyObject* args, PyObject* kw, int* argfail);
+
+// Overloads: the first variant whose arguments convert runs; else the first one's error.
+static PyObject* bi_dispatch(PyObject* self, PyObject* args, PyObject* kw, const BiVariant* v, int n)
+{
+ PyObject *et = nullptr, *ev = nullptr, *etb = nullptr;
+ for (int i = 0; i < n; i++)
+ {
+ int fail = 0;
+ PyObject* r = v[i](self, args, kw, &fail);
+ if (r || !fail)
+ {
+ Py_XDECREF(et);
+ Py_XDECREF(ev);
+ Py_XDECREF(etb);
+ return r;
+ }
+ if (i == 0)
+ PyErr_Fetch(&et, &ev, &etb);
+ else
+ PyErr_Clear();
+ }
+ PyErr_Restore(et, ev, etb);
+ return nullptr;
+}
+
+static PyObject* bi_call1(BiVariant v, PyObject* self, PyObject* args, PyObject* kw)
+{
+ int fail = 0;
+ return v(self, args, kw, &fail);
+}
+
+//-----------------------------------------------------------------------------
+// Python -> C++
+//-----------------------------------------------------------------------------
+
+static bool bi_type_error(const char* what, PyObject* o)
+{
+ PyErr_Format(PyExc_TypeError, "expected %s, got %s", what, Py_TYPE(o)->tp_name);
+ return false;
+}
+
+static inline bool bi_from(PyObject* o, bool& v)
+{
+ if (!PyBool_Check(o) && !PyLong_Check(o))
+ return bi_type_error("bool", o);
+ v = PyObject_IsTrue(o) != 0;
+ return true;
+}
+
+template<class T>
+static std::enable_if_t<std::is_integral_v<T> && !std::is_same_v<T, bool>, bool> bi_from(PyObject* o, T& v)
+{
+ if (!PyLong_Check(o))
+ return bi_type_error("int", o);
+ if constexpr (std::is_signed_v<T>)
+ {
+ long long x = PyLong_AsLongLong(o);
+ if (x == -1 && PyErr_Occurred())
+ return false;
+ v = (T)x;
+ }
+ else
+ {
+ unsigned long long x = PyLong_AsUnsignedLongLongMask(o);
+ if (x == (unsigned long long)-1 && PyErr_Occurred())
+ return false;
+ v = (T)x;
+ }
+ return true;
+}
+
+template<class T>
+static std::enable_if_t<std::is_enum_v<T>, bool> bi_from(PyObject* o, T& v)
+{
+ std::underlying_type_t<T> x;
+ if (!bi_from(o, x))
+ return false;
+ v = (T)x;
+ return true;
+}
+
+template<class T>
+static std::enable_if_t<std::is_floating_point_v<T>, bool> bi_from(PyObject* o, T& v)
+{
+ if (!PyFloat_Check(o) && !PyLong_Check(o))
+ return bi_type_error("float", o);
+ const double x = PyFloat_AsDouble(o);
+ if (x == -1.0 && PyErr_Occurred())
+ return false;
+ v = (T)x;
+ return true;
+}
+
+static inline bool bi_from(PyObject* o, const char*& v)
+{
+ if (o == Py_None)
+ {
+ v = nullptr;
+ return true;
+ }
+ if (PyBytes_Check(o))
+ {
+ v = PyBytes_AS_STRING(o);
+ return true;
+ }
+ if (!PyUnicode_Check(o))
+ return bi_type_error("str", o);
+ v = PyUnicode_AsUTF8(o);
+ return v != nullptr;
+}
+
+static bool bi_floats(PyObject* o, float* dst, int n, const char* what)
+{
+ if (!PySequence_Check(o) || PyUnicode_Check(o) || PyBytes_Check(o))
+ return bi_type_error(what, o);
+ PyObject* seq = PySequence_Fast(o, what);
+ if (seq == nullptr)
+ return false;
+ if (PySequence_Fast_GET_SIZE(seq) != n)
+ {
+ Py_DECREF(seq);
+ PyErr_Format(PyExc_TypeError, "expected %s (%d numbers)", what, n);
+ return false;
+ }
+ for (int i = 0; i < n; i++)
+ {
+ PyObject* it = PySequence_Fast_GET_ITEM(seq, i);
+ if (!PyFloat_Check(it) && !PyLong_Check(it))
+ {
+ Py_DECREF(seq);
+ return bi_type_error("a number", it);
+ }
+ dst[i] = (float)PyFloat_AsDouble(it);
+ }
+ Py_DECREF(seq);
+ return true;
+}
+
+static inline bool bi_from(PyObject* o, ImVec2& v) { return bi_floats(o, &v.x, 2, "(x, y)"); }
+static inline bool bi_from(PyObject* o, ImVec4& v) { return bi_floats(o, &v.x, 4, "(x, y, z, w)"); }
+
+template<class T> static bool bi_from_ptr(PyObject* o, T*& p)
+{
+ using U = std::remove_cv_t<T>;
+ if (o == Py_None)
+ {
+ p = nullptr;
+ return true;
+ }
+ PyTypeObject* t = BiType<U>::type;
+ if (t == nullptr || !PyObject_TypeCheck(o, t))
+ return bi_type_error(t ? t->tp_name : "an imgui object", o);
+ p = (T*)((BiObj*)o)->ptr;
+ return true;
+}
+
+// ImTextureRef: a texture id (int, e.g. a BUI texture) or an ImTextureRef object
+static inline bool bi_from(PyObject* o, ImTextureRef& v)
+{
+ if (PyLong_Check(o))
+ {
+ ImTextureID id;
+ if (!bi_from(o, id))
+ return false;
+ v = ImTextureRef(id);
+ return true;
+ }
+ ImTextureRef* p = nullptr;
+ if (!bi_from_ptr(o, p) || p == nullptr)
+ return p ? true : bi_type_error("a texture id or ImTextureRef", o);
+ v = *p;
+ return true;
+}
+
+// a struct passed by value: a copy of the wrapped object
+template<class T>
+static std::enable_if_t<std::is_class_v<T>, bool> bi_from(PyObject* o, T& v)
+{
+ T* p = nullptr;
+ if (!bi_from_ptr(o, p))
+ return false;
+ if (p == nullptr)
+ return bi_type_error(BiType<T>::type ? BiType<T>::type->tp_name : "object", o);
+ v = *p;
+ return true;
+}
+
+template<class T, size_t N> static bool bi_from(PyObject* o, T (&v)[N])
+{
+ if constexpr (std::is_same_v<T, float>)
+ return bi_floats(o, v, (int)N, "a sequence of floats");
+ else
+ {
+ PyObject* seq = PySequence_Check(o) ? PySequence_Fast(o, "sequence") : nullptr;
+ if (seq == nullptr)
+ return bi_type_error("a sequence", o);
+ if (PySequence_Fast_GET_SIZE(seq) != (Py_ssize_t)N)
+ {
+ Py_DECREF(seq);
+ PyErr_Format(PyExc_TypeError, "expected a sequence of %d items", (int)N);
+ return false;
+ }
+ for (size_t i = 0; i < N; i++)
+ if (!bi_from(PySequence_Fast_GET_ITEM(seq, i), v[i]))
+ {
+ Py_DECREF(seq);
+ return false;
+ }
+ Py_DECREF(seq);
+ return true;
+ }
+}
+
+// a list argument + its count: PlotLines(values), Combo(items), AddPolyline(points)
+template<class T> struct BiSeq
+{
+ std::vector<T> v;
+ T* data() { return v.data(); }
+ int size() const { return (int)v.size(); }
+};
+
+template<class T> static bool bi_from(PyObject* o, BiSeq<T>& s)
+{
+ if (!PySequence_Check(o) || PyUnicode_Check(o))
+ return bi_type_error("a sequence", o);
+ PyObject* seq = PySequence_Fast(o, "sequence");
+ if (seq == nullptr)
+ return false;
+ const Py_ssize_t n = PySequence_Fast_GET_SIZE(seq);
+ s.v.resize((size_t)n);
+ for (Py_ssize_t i = 0; i < n; i++)
+ if (!bi_from(PySequence_Fast_GET_ITEM(seq, i), s.v[(size_t)i]))
+ {
+ Py_DECREF(seq);
+ return false;
+ }
+ Py_DECREF(seq); // items stay alive: the argument holds them
+ return true;
+}
+
+// const void* data + size_t size: bytes-like
+struct BiBytes
+{
+ std::string s;
+ const void* data() const { return s.data(); }
+ size_t size() const { return s.size(); }
+};
+
+static inline bool bi_from(PyObject* o, BiBytes& b)
+{
+ if (PyBytes_Check(o))
+ b.s.assign(PyBytes_AS_STRING(o), (size_t)PyBytes_GET_SIZE(o));
+ else if (PyByteArray_Check(o))
+ b.s.assign(PyByteArray_AS_STRING(o), (size_t)PyByteArray_GET_SIZE(o));
+ else if (PyUnicode_Check(o))
+ {
+ Py_ssize_t n = 0;
+ const char* s = PyUnicode_AsUTF8AndSize(o, &n);
+ if (s == nullptr)
+ return false;
+ b.s.assign(s, (size_t)n);
+ }
+ else
+ return bi_type_error("bytes", o);
+ return true;
+}
+
+// char* buf + size_t buf_size of InputText*: a str in, grown on demand (CallbackResize)
+struct BiStrBuf
+{
+ std::string s;
+ char* data() { return &s[0]; }
+ size_t capacity() const { return s.size(); }
+};
+
+static inline bool bi_from(PyObject* o, BiStrBuf& b)
+{
+ const char* s = nullptr;
+ if (!bi_from(o, s))
+ return false;
+ b.s.assign(s ? s : "");
+ b.s.resize(b.s.size() + 64, '\0');
+ return true;
+}
+
+static int bi_inputtext_resize(ImGuiInputTextCallbackData* data)
+{
+ if (data->EventFlag == ImGuiInputTextFlags_CallbackResize)
+ {
+ BiStrBuf* b = (BiStrBuf*)data->UserData;
+ b->s.resize((size_t)data->BufSize + 1, '\0');
+ data->Buf = b->data();
+ }
+ return 0;
+}
+
+//-----------------------------------------------------------------------------
+// C++ -> Python
+//-----------------------------------------------------------------------------
+
+static inline PyObject* bi_to(bool v) { return PyBool_FromLong(v); }
+
+template<class T>
+static std::enable_if_t<std::is_integral_v<T> && !std::is_same_v<T, bool>, PyObject*> bi_to(T v)
+{
+ if constexpr (std::is_signed_v<T>)
+ return PyLong_FromLongLong((long long)v);
+ else
+ return PyLong_FromUnsignedLongLong((unsigned long long)v);
+}
+
+template<class T> static std::enable_if_t<std::is_enum_v<T>, PyObject*> bi_to(T v) { return bi_to((std::underlying_type_t<T>)v); }
+template<class T> static std::enable_if_t<std::is_floating_point_v<T>, PyObject*> bi_to(T v) { return PyFloat_FromDouble((double)v); }
+
+static inline PyObject* bi_to(const char* s)
+{
+ if (s == nullptr)
+ Py_RETURN_NONE;
+ return PyUnicode_DecodeUTF8(s, (Py_ssize_t)strlen(s), "replace");
+}
+
+static inline PyObject* bi_to(const ImVec2& v)
+{
+ PyObject* t = PyStructSequence_New(bi_Vec2Type);
+ if (t)
+ {
+ PyStructSequence_SetItem(t, 0, PyFloat_FromDouble(v.x));
+ PyStructSequence_SetItem(t, 1, PyFloat_FromDouble(v.y));
+ }
+ return t;
+}
+
+static inline PyObject* bi_to(const ImVec4& v)
+{
+ PyObject* t = PyStructSequence_New(bi_Vec4Type);
+ if (t)
+ {
+ PyStructSequence_SetItem(t, 0, PyFloat_FromDouble(v.x));
+ PyStructSequence_SetItem(t, 1, PyFloat_FromDouble(v.y));
+ PyStructSequence_SetItem(t, 2, PyFloat_FromDouble(v.z));
+ PyStructSequence_SetItem(t, 3, PyFloat_FromDouble(v.w));
+ }
+ return t;
+}
+
+template<class T, size_t N> static PyObject* bi_to(const T (&v)[N])
+{
+ PyObject* t = PyTuple_New((Py_ssize_t)N);
+ for (size_t i = 0; t && i < N; i++)
+ PyTuple_SET_ITEM(t, (Py_ssize_t)i, bi_to(v[i]));
+ return t;
+}
+
+static inline PyObject* bi_to(BiStrBuf& b) { return bi_to((const char*)b.s.c_str()); }
+
+static inline PyObject* bi_voidptr(const void* p)
+{
+ if (p == nullptr)
+ Py_RETURN_NONE;
+ return PyLong_FromVoidPtr((void*)p);
+}
+
+// a pointer to a scalar (ImGuiStorage::GetIntRef...): its address
+template<class T> static PyObject* bi_ptr_result(T* p)
+{
+ using U = std::remove_cv_t<T>;
+ if constexpr (std::is_class_v<U>)
+ return bi_wrap(p);
+ else
+ return bi_voidptr((const void*)p);
+}
+
+// results: (ret, out1, out2...) or one value or None
+static PyObject* bi_result(std::initializer_list<PyObject*> items)
+{
+ for (PyObject* it : items)
+ if (it == nullptr)
+ {
+ for (PyObject* x : items)
+ Py_XDECREF(x);
+ return nullptr;
+ }
+ if (items.size() == 1)
+ return *items.begin();
+ PyObject* t = PyTuple_New((Py_ssize_t)items.size());
+ Py_ssize_t i = 0;
+ for (PyObject* it : items)
+ PyTuple_SET_ITEM(t, i++, it);
+ return t;
+}
+
+template<class T> static PyObject* bi_opt(T* p)
+{
+ if (p == nullptr)
+ Py_RETURN_NONE;
+ return bi_to(*p);
+}
+
+//-----------------------------------------------------------------------------
+// Struct fields: generic getters / setters from a compile-time description
+//-----------------------------------------------------------------------------
+
+enum BiKind
+{
+ BK_NONE, BK_BOOL, BK_I8, BK_U8, BK_I16, BK_U16, BK_I32, BK_U32, BK_I64, BK_U64, BK_F32, BK_F64,
+ BK_VEC2, BK_VEC4, BK_STR, BK_CHARBUF, BK_PTR, BK_EMBED, BK_VOIDPTR,
+};
+
+struct BiElem
+{
+ int kind = BK_NONE;
+ size_t size = 0; // element size
+ PyTypeObject** type = nullptr; // PTR / EMBED
+};
+
+template<class T, class = void> struct bi_is_complete : std::false_type {};
+template<class T> struct bi_is_complete<T, std::void_t<decltype(sizeof(T))>> : std::true_type {};
+
+template<class T> static BiElem bi_elem()
+{
+ BiElem e;
+ using U = std::remove_cv_t<T>;
+ if constexpr (!bi_is_complete<U>::value) return e; // opaque element type
+ else {
+ if constexpr (std::is_same_v<U, bool>) e.kind = BK_BOOL;
+ else if constexpr (std::is_enum_v<U>) { e = bi_elem<std::underlying_type_t<U>>(); }
+ else if constexpr (std::is_integral_v<U>)
+ {
+ constexpr bool s = std::is_signed_v<U>;
+ e.kind = sizeof(U) == 1 ? (s ? BK_I8 : BK_U8) : sizeof(U) == 2 ? (s ? BK_I16 : BK_U16)
+ : sizeof(U) == 4 ? (s ? BK_I32 : BK_U32) : (s ? BK_I64 : BK_U64);
+ }
+ else if constexpr (std::is_same_v<U, float>) e.kind = BK_F32;
+ else if constexpr (std::is_same_v<U, double>) e.kind = BK_F64;
+ else if constexpr (std::is_same_v<U, ImVec2>) e.kind = BK_VEC2;
+ else if constexpr (std::is_same_v<U, ImVec4>) e.kind = BK_VEC4;
+ else if constexpr (std::is_same_v<U, const char*> || std::is_same_v<U, char*>) e.kind = BK_STR;
+ else if constexpr (std::is_pointer_v<U>)
+ {
+ using P = std::remove_cv_t<std::remove_pointer_t<U>>;
+ if constexpr (std::is_void_v<P>) e.kind = BK_VOIDPTR;
+ else if constexpr (std::is_class_v<P>) { e.kind = BK_PTR; e.type = &BiType<P>::type; }
+ else e.kind = BK_VOIDPTR; // pointers to scalars, function pointers: addresses
+ }
+ else if constexpr (std::is_class_v<U>) { e.kind = BK_EMBED; e.type = &BiType<U>::type; }
+ e.size = sizeof(T);
+ return e;
+ }
+}
+
+struct BiField
+{
+ const char* name;
+ size_t offset;
+ BiElem elem;
+ int count; // 0: one value; > 0: a C array; -1: an ImVector<>
+ bool readonly;
+};
+
+template<class T> struct BiFieldOf { static BiField make(const char* n, size_t off) { return { n, off, bi_elem<T>(), 0, false }; } };
+template<class T, size_t N> struct BiFieldOf<T[N]>
+{
+ static BiField make(const char* n, size_t off)
+ {
+ if constexpr (std::is_same_v<std::remove_cv_t<T>, char>)
+ {
+ BiField f = { n, off, BiElem(), (int)N, false };
+ f.elem.kind = BK_CHARBUF;
+ f.elem.size = 1;
+ return f;
+ }
+ else
+ return { n, off, bi_elem<T>(), (int)N, false };
+ }
+};
+template<class T> struct BiFieldOf<ImVector<T>> { static BiField make(const char* n, size_t off) { return { n, off, bi_elem<T>(), -1, true }; } };
+
+#define BI_FIELD(S, F, NAME) BiFieldOf<decltype(S::F)>::make(NAME, offsetof(S, F))
+
+static std::unordered_map<const void*, std::string>& bi_strings()
+{
+ static std::unordered_map<const void*, std::string> m; // keeps strings stored in const char* fields alive
+ return m;
+}
+
+static PyObject* bi_array_new(void* base, const BiElem& e, int count, PyObject* owner);
+
+static PyObject* bi_get_elem(void* p, const BiElem& e, PyObject* owner)
+{
+ switch (e.kind)
+ {
+ case BK_BOOL: return bi_to(*(bool*)p);
+ case BK_I8: return bi_to(*(signed char*)p);
+ case BK_U8: return bi_to(*(unsigned char*)p);
+ case BK_I16: return bi_to(*(short*)p);
+ case BK_U16: return bi_to(*(unsigned short*)p);
+ case BK_I32: return bi_to(*(int*)p);
+ case BK_U32: return bi_to(*(unsigned int*)p);
+ case BK_I64: return bi_to(*(long long*)p);
+ case BK_U64: return bi_to(*(unsigned long long*)p);
+ case BK_F32: return bi_to(*(float*)p);
+ case BK_F64: return bi_to(*(double*)p);
+ case BK_VEC2: return bi_to(*(ImVec2*)p);
+ case BK_VEC4: return bi_to(*(ImVec4*)p);
+ case BK_STR: return bi_to(*(const char**)p);
+ case BK_VOIDPTR: return bi_voidptr(*(void**)p);
+ case BK_PTR: return bi_wrap_raw(*e.type, *(void**)p, nullptr, nullptr);
+ case BK_EMBED: return bi_wrap_raw(*e.type, p, nullptr, owner);
+ }
+ PyErr_SetString(PyExc_TypeError, "field type not supported in Python");
+ return nullptr;
+}
+
+static int bi_set_elem(void* p, const BiElem& e, PyObject* v)
+{
+ bool ok = false;
+ switch (e.kind)
+ {
+ case BK_BOOL: ok = bi_from(v, *(bool*)p); break;
+ case BK_I8: ok = bi_from(v, *(signed char*)p); break;
+ case BK_U8: ok = bi_from(v, *(unsigned char*)p); break;
+ case BK_I16: ok = bi_from(v, *(short*)p); break;
+ case BK_U16: ok = bi_from(v, *(unsigned short*)p); break;
+ case BK_I32: ok = bi_from(v, *(int*)p); break;
+ case BK_U32: ok = bi_from(v, *(unsigned int*)p); break;
+ case BK_I64: ok = bi_from(v, *(long long*)p); break;
+ case BK_U64: ok = bi_from(v, *(unsigned long long*)p); break;
+ case BK_F32: ok = bi_from(v, *(float*)p); break;
+ case BK_F64: ok = bi_from(v, *(double*)p); break;
+ case BK_VEC2: ok = bi_from(v, *(ImVec2*)p); break;
+ case BK_VEC4: ok = bi_from(v, *(ImVec4*)p); break;
+ case BK_STR:
+ {
+ const char* s = nullptr;
+ if (!(ok = bi_from(v, s)))
+ break;
+ if (s == nullptr)
+ {
+ bi_strings().erase(p);
+ *(const char**)p = nullptr;
+ }
+ else
+ {
+ std::string& keep = bi_strings()[p];
+ keep = s;
+ *(const char**)p = keep.c_str();
+ }
+ break;
+ }
+ case BK_PTR:
+ {
+ if (v == Py_None)
+ {
+ *(void**)p = nullptr;
+ ok = true;
+ }
+ else if (*e.type && PyObject_TypeCheck(v, *e.type))
+ {
+ *(void**)p = ((BiObj*)v)->ptr;
+ ok = true;
+ }
+ else
+ bi_type_error((*e.type) ? (*e.type)->tp_name : "object", v);
+ break;
+ }
+ case BK_EMBED:
+ if (*e.type && PyObject_TypeCheck(v, *e.type))
+ {
+ memcpy(p, ((BiObj*)v)->ptr, e.size); // plain data structs only
+ ok = true;
+ }
+ else
+ bi_type_error((*e.type) ? (*e.type)->tp_name : "object", v);
+ break;
+ default:
+ PyErr_SetString(PyExc_AttributeError, "field is read-only in Python");
+ }
+ return ok ? 0 : -1;
+}
+
+static PyObject* bi_field_get(PyObject* self, void* closure)
+{
+ const BiField* f = (const BiField*)closure;
+ char* base = (char*)((BiObj*)self)->ptr;
+ if (base == nullptr)
+ {
+ PyErr_SetString(PyExc_ValueError, "NULL object");
+ return nullptr;
+ }
+ void* p = base + f->offset;
+ if (f->elem.kind == BK_CHARBUF)
+ return PyUnicode_DecodeUTF8((const char*)p, (Py_ssize_t)strnlen((const char*)p, (size_t)f->count), "replace");
+ if (f->count != 0)
+ return bi_array_new(p, f->elem, f->count, self);
+ return bi_get_elem(p, f->elem, self);
+}
+
+static int bi_field_set(PyObject* self, PyObject* v, void* closure)
+{
+ const BiField* f = (const BiField*)closure;
+ char* base = (char*)((BiObj*)self)->ptr;
+ if (v == nullptr || base == nullptr)
+ {
+ PyErr_SetString(PyExc_AttributeError, "cannot delete a struct field");
+ return -1;
+ }
+ void* p = base + f->offset;
+ if (f->elem.kind == BK_CHARBUF)
+ {
+ const char* s = nullptr;
+ if (!bi_from(v, s))
+ return -1;
+ if (s == nullptr)
+ s = "";
+ strncpy((char*)p, s, (size_t)f->count - 1);
+ ((char*)p)[f->count - 1] = 0;
+ return 0;
+ }
+ if (f->count > 0)
+ {
+ PyObject* seq = PySequence_Check(v) ? PySequence_Fast(v, "sequence") : nullptr;
+ if (seq == nullptr || PySequence_Fast_GET_SIZE(seq) != f->count)
+ {
+ Py_XDECREF(seq);
+ PyErr_Format(PyExc_TypeError, "expected a sequence of %d items", f->count);
+ return -1;
+ }
+ for (int i = 0; i < f->count; i++)
+ if (bi_set_elem((char*)p + i * f->elem.size, f->elem, PySequence_Fast_GET_ITEM(seq, i)) < 0)
+ {
+ Py_DECREF(seq);
+ return -1;
+ }
+ Py_DECREF(seq);
+ return 0;
+ }
+ if (f->count < 0 || f->readonly)
+ {
+ PyErr_SetString(PyExc_AttributeError, "read-only field");
+ return -1;
+ }
+ return bi_set_elem(p, f->elem, v);
+}
+
+//-----------------------------------------------------------------------------
+// Array views: C arrays and ImVector<> fields (style.colors[i] = (r, g, b, a))
+//-----------------------------------------------------------------------------
+
+struct BiArray
+{
+ PyObject_HEAD
+ void* base; // first element, or the ImVector<> when count < 0
+ BiElem elem;
+ int count;
+ PyObject* owner;
+};
+
+static PyObject* bi_array_new(void* base, const BiElem& e, int count, PyObject* owner)
+{
+ BiArray* a = PyObject_New(BiArray, bi_ArrayType);
+ if (a == nullptr)
+ return nullptr;
+ a->base = base;
+ a->elem = e;
+ a->count = count;
+ a->owner = owner;
+ Py_XINCREF(owner);
+ return (PyObject*)a;
+}
+
+static void bi_array_dealloc(PyObject* self)
+{
+ PyTypeObject* tp = Py_TYPE(self);
+ Py_CLEAR(((BiArray*)self)->owner);
+ PyObject_Free(self);
+ Py_DECREF(tp);
+}
+
+static void* bi_array_data(BiArray* a, Py_ssize_t* n)
+{
+ if (a->count >= 0)
+ {
+ *n = a->count;
+ return a->base;
+ }
+ ImVector<char>* v = (ImVector<char>*)a->base; // layout is the same for every T
+ *n = v->Size;
+ return v->Data;
+}
+
+static Py_ssize_t bi_array_len(PyObject* self)
+{
+ Py_ssize_t n = 0;
+ bi_array_data((BiArray*)self, &n);
+ return n;
+}
+
+static PyObject* bi_array_item(PyObject* self, Py_ssize_t i)
+{
+ BiArray* a = (BiArray*)self;
+ Py_ssize_t n = 0;
+ char* d = (char*)bi_array_data(a, &n);
+ if (i < 0 || i >= n)
+ {
+ PyErr_SetString(PyExc_IndexError, "index out of range");
+ return nullptr;
+ }
+ return bi_get_elem(d + i * a->elem.size, a->elem, a->owner);
+}
+
+static int bi_array_ass_item(PyObject* self, Py_ssize_t i, PyObject* v)
+{
+ BiArray* a = (BiArray*)self;
+ Py_ssize_t n = 0;
+ char* d = (char*)bi_array_data(a, &n);
+ if (i < 0 || i >= n)
+ {
+ PyErr_SetString(PyExc_IndexError, "index out of range");
+ return -1;
+ }
+ if (v == nullptr)
+ {
+ PyErr_SetString(PyExc_TypeError, "cannot delete items");
+ return -1;
+ }
+ return bi_set_elem(d + i * a->elem.size, a->elem, v);
+}
+
+static PyObject* bi_array_repr(PyObject* self)
+{
+ PyObject* l = PySequence_List(self);
+ if (l == nullptr)
+ return nullptr;
+ PyObject* r = PyUnicode_FromFormat("imgui.array(%R)", l);
+ Py_DECREF(l);
+ return r;
+}
+
+static PyType_Slot bi_array_slots[] = {
+ { Py_tp_dealloc, (void*)bi_array_dealloc },
+ { Py_tp_repr, (void*)bi_array_repr },
+ { Py_sq_length, (void*)bi_array_len },
+ { Py_sq_item, (void*)bi_array_item },
+ { Py_sq_ass_item, (void*)bi_array_ass_item },
+ { 0, nullptr },
+};
+static PyType_Spec bi_array_spec = { "imgui.array", sizeof(BiArray), 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, bi_array_slots };
+
+//-----------------------------------------------------------------------------
+// Struct types (tables generated per struct)
+//-----------------------------------------------------------------------------
+
+struct BiStructInfo
+{
+ const char* name;
+ PyTypeObject** type;
+ PyMethodDef* methods;
+ BiField* fields;
+ int nfields;
+ newfunc tp_new; // nullptr: not constructible from Python
+};
+
+static bool bi_make_type(PyObject* module, BiStructInfo& s)
+{
+ // getset table: generated fields (kinds Python understands) + `address`
+ PyGetSetDef* gs = new PyGetSetDef[(size_t)s.nfields + 2];
+ int n = 0;
+ for (int i = 0; i < s.nfields; i++)
+ {
+ if (s.fields[i].elem.kind == BK_NONE)
+ continue;
+ gs[n++] = { s.fields[i].name, bi_field_get, bi_field_set, nullptr, &s.fields[i] };
+ }
+ gs[n++] = { "address", bi_obj_address, nullptr, (char*)"address of the C++ object", nullptr };
+ gs[n] = { nullptr, nullptr, nullptr, nullptr, nullptr };
+
+ std::vector<PyType_Slot> slots = {
+ { Py_tp_dealloc, (void*)bi_obj_dealloc },
+ { Py_tp_repr, (void*)bi_obj_repr },
+ { Py_tp_richcompare, (void*)bi_obj_richcompare },
+ { Py_tp_hash, (void*)bi_obj_hash },
+ { Py_tp_getset, (void*)gs },
+ };
+ if (s.methods)
+ slots.push_back({ Py_tp_methods, (void*)s.methods });
+ if (s.tp_new)
+ slots.push_back({ Py_tp_new, (void*)s.tp_new });
+ slots.push_back({ 0, nullptr });
+ std::string* full = new std::string(std::string("imgui.") + s.name);
+ PyType_Spec* spec = new PyType_Spec{ full->c_str(), (int)sizeof(BiObj), 0,
+ (unsigned)(Py_TPFLAGS_DEFAULT | (s.tp_new ? 0 : Py_TPFLAGS_DISALLOW_INSTANTIATION)),
+ nullptr };
+ PyType_Slot* sl = new PyType_Slot[slots.size()];
+ memcpy(sl, slots.data(), sizeof(PyType_Slot) * slots.size());
+ spec->slots = sl;
+ PyObject* t = PyType_FromSpec(spec);
+ if (t == nullptr)
+ return false;
+ *s.type = (PyTypeObject*)t;
+ Py_INCREF(t);
+ return PyModule_AddObject(module, s.name, t) == 0;
+}
+
+struct BiConst
+{
+ const char* name;
+ long long value;
+};
diff --git a/bindings/python/tests/test_imgui.py b/bindings/python/tests/test_imgui.py
new file mode 100644
index 0000000..82eb7eb
--- /dev/null
+++ b/bindings/python/tests/test_imgui.py
@@ -0,0 +1,416 @@
+"""Dear ImGui on BUI from Python (blenderui.imgui / bui.imgui), headless.
+
+Frames call a broad set of widgets; simulated input (clicks, drags, typing, keys, wheel)
+changes the values the pyimgui-style functions return; structs (IO, style, draw lists,
+helpers) are readable and writable; overloads dispatch; errors in the frame propagate.
+
+Run standalone (PYTHONPATH must contain the built extensions and bindings/python) or via
+ctest (buipy_imgui).
+
+SPDX-License-Identifier: GPL-2.0-or-later
+"""
+
+import math
+import os
+import sys
+import unittest
+
+sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
+
+import bui # noqa: E402,F401 (locates the build tree)
+import blenderui.imgui as imgui # noqa: E402
+import bui.imgui as bui_imgui # noqa: E402
+
+W, H = 1280, 800
+
+
+def center(r):
+ (x0, y0), (x1, y1) = r
+ return (x0 + x1) / 2, (y0 + y1) / 2
+
+
+def item_rect():
+ return imgui.get_item_rect_min(), imgui.get_item_rect_max()
+
+
+class Widgets:
+ """The UI under test: one window of widgets, state in attributes."""
+
+ def __init__(self):
+ self.checked = False
+ self.slider = 0.25
+ self.slider_w = 0.0
+ self.text = ""
+ self.clicks = 0
+ self.combo = 0
+ self.color = (0.2, 0.4, 0.6, 1.0)
+ self.drag = 1.0
+ self.ints = (1, 2, 3)
+ self.radio = 0
+ self.selected = False
+ self.opened = True
+ self.frames = 0
+ self.rects = {}
+ self.table_cells = 0
+ self.clipped = 0
+ self.tree_open = False
+ self.extra = None
+ self.scroll_y = 0.0
+ self.clipper = imgui.ImGuiListClipper()
+
+ def __call__(self):
+ self.frames += 1
+ imgui.set_next_window_pos((10, 10), imgui.COND_ALWAYS)
+ imgui.set_next_window_size((560, 780), imgui.COND_ALWAYS)
+ expanded, self.opened = imgui.begin("Python", self.opened, imgui.WINDOW_NO_MOVE | imgui.WINDOW_NO_RESIZE
+ | imgui.WINDOW_NO_SAVED_SETTINGS)
+ imgui.text("Hello from Python %d" % 42)
+ imgui.text_colored((1.0, 0.5, 0.0, 1.0), "colored")
+ imgui.text_disabled("disabled")
+ imgui.text_wrapped("wrapped " * 6)
+ imgui.label_text("label", "value")
+ imgui.bullet_text("bullet")
+ imgui.separator_text("Widgets")
+
+ _, self.checked = imgui.checkbox("Check", self.checked)
+ self.rects["check"] = item_rect()
+ self.slider_w = imgui.calc_item_width()
+ _, self.slider = imgui.slider_float("Slider", self.slider, 0.0, 1.0)
+ self.rects["slider"] = item_rect()
+ _, self.text = imgui.input_text("Text", self.text)
+ self.rects["input"] = item_rect()
+ if imgui.button("Button"):
+ self.clicks += 1
+ self.rects["button"] = item_rect()
+ imgui.same_line()
+ imgui.small_button("small")
+ imgui.same_line()
+ imgui.arrow_button("arrow", imgui.DIR_RIGHT)
+ _, self.combo = imgui.combo("Combo", self.combo, ["one", "two", "three"])
+ _, self.color = imgui.color_edit4("Color", self.color)
+ _, self.drag = imgui.drag_float("Drag", self.drag, 0.1)
+ _, self.ints = imgui.input_int3("Ints", self.ints)
+ _, self.radio = imgui.radio_button_int_ptr("A", self.radio, 0)
+ imgui.same_line()
+ _, self.radio = imgui.radio_button_int_ptr("B", self.radio, 1)
+ clicked, self.selected = imgui.selectable_bool_ptr("selectable", self.selected)
+ imgui.progress_bar(self.slider, (-1, 0), "progress")
+ imgui.plot_lines("Plot", [math.sin(i * 0.3) for i in range(32)])
+ imgui.plot_histogram("Hist", [abs(math.sin(i * 0.3)) for i in range(16)])
+ imgui.separator()
+
+ self.tree_open = imgui.tree_node("Tree")
+ if self.tree_open:
+ imgui.text("inside")
+ imgui.tree_pop()
+ if imgui.collapsing_header("Header"):
+ imgui.text("body")
+ if imgui.begin_tab_bar("tabs"):
+ if imgui.begin_tab_item("Tab 1")[0]:
+ imgui.text("tab one")
+ imgui.end_tab_item()
+ if imgui.begin_tab_item("Tab 2")[0]:
+ imgui.end_tab_item()
+ imgui.end_tab_bar()
+ if imgui.begin_table("table", 3, imgui.TABLE_BORDERS):
+ for name in ("a", "b", "c"):
+ imgui.table_setup_column(name)
+ imgui.table_headers_row()
+ self.table_cells = 0
+ for r in range(3):
+ imgui.table_next_row()
+ for c in range(3):
+ imgui.table_set_column_index(c)
+ imgui.text("%d,%d" % (r, c))
+ self.table_cells += 1
+ imgui.end_table()
+
+ # overloads: one name tries str then int; the variants also have their own names
+ imgui.push_id("str id")
+ imgui.push_id(7)
+ imgui.push_id_int(8)
+ imgui.pop_id()
+ imgui.pop_id()
+ imgui.pop_id()
+
+ dl = imgui.get_window_draw_list()
+ p = imgui.get_cursor_screen_pos()
+ dl.add_rect_filled(p, (p.x + 50, p.y + 20), imgui.im_col32(71, 114, 179))
+ dl.add_line(p, (p.x + 50, p.y + 20), imgui.IM_COL32_WHITE if hasattr(imgui, "IM_COL32_WHITE") else 0xFFFFFFFF, 2.0)
+ dl.add_circle((p.x + 70, p.y + 10), 8.0, 0xFFFFFFFF)
+ dl.add_text((p.x + 90, p.y), 0xFFFFFFFF, "draw list")
+ dl.add_polyline([(p.x, p.y), (p.x + 10, p.y + 15), (p.x + 20, p.y)], 0xFF00FF00, 1.5, 0)
+ imgui.dummy((120, 24))
+
+ imgui.begin_child("child", (0, 160), imgui.CHILD_BORDERS)
+ self.clipper.begin(1000)
+ self.clipped = 0
+ while self.clipper.step():
+ for i in range(self.clipper.display_start, self.clipper.display_end):
+ imgui.text("row %d" % i)
+ self.clipped += 1
+ self.clipper.end()
+ self.scroll_y = imgui.get_scroll_y()
+ imgui.end_child()
+ self.rects["child"] = item_rect()
+
+ if self.extra:
+ self.extra()
+ imgui.end()
+
+
+class ImGuiTest(unittest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ imgui.set_ui_scale(1.0)
+ cls.ui = Widgets()
+ cls.app = imgui.HeadlessApp(cls.ui, size=(W, H))
+ cls.app.render(4)
+
+ @classmethod
+ def tearDownClass(cls):
+ cls.app.close()
+
+ def click(self, name, fx=0.5):
+ (x0, y0), (x1, y1) = self.ui.rects[name]
+ self.app.click(x0 + (x1 - x0) * fx, (y0 + y1) / 2)
+
+ # -- module surface -------------------------------------------------------------
+
+ def test_module(self):
+ self.assertIs(bui_imgui, imgui)
+ self.assertEqual(imgui.get_version(), imgui.IMGUI_VERSION)
+ self.assertEqual(imgui.WINDOW_NO_TITLE_BAR, imgui.ImGuiWindowFlags_NoTitleBar)
+ self.assertEqual(imgui.KEY_A, imgui.ImGuiKey_A)
+ self.assertEqual(imgui.COL_TEXT, 0)
+ import _buiimgui
+ self.assertGreater(_buiimgui._sizeof("ImGuiIO"), 1000)
+ self.assertIn("ImGui::Button", imgui.button.__doc__)
+ self.assertEqual(imgui.im_col32(255, 0, 0), 0xFF0000FF)
+
+ def test_frames_ran(self):
+ self.assertGreater(self.ui.frames, 0)
+ self.assertGreater(self.app.frame_count, 0)
+ self.assertTrue(self.app.headless)
+ self.assertEqual(self.ui.table_cells, 9)
+ self.assertTrue(0 < self.ui.clipped < 1000)
+
+ # -- input changes values -------------------------------------------------------
+
+ def test_checkbox_click(self):
+ before = self.ui.checked
+ self.click("check")
+ self.assertEqual(self.ui.checked, not before)
+
+ def test_button_click(self):
+ n = self.ui.clicks
+ self.click("button")
+ self.assertEqual(self.ui.clicks, n + 1)
+
+ def test_slider_click(self):
+ (x0, y0), (x1, y1) = self.ui.rects["slider"]
+ self.app.click(x0 + self.ui.slider_w * 0.9, (y0 + y1) / 2)
+ self.assertGreater(self.ui.slider, 0.8)
+ self.app.click(x0 + self.ui.slider_w * 0.1, (y0 + y1) / 2)
+ self.assertLess(self.ui.slider, 0.2)
+
+ def test_slider_drag(self):
+ (x0, y0), (x1, y1) = self.ui.rects["slider"]
+ y = (y0 + y1) / 2
+ self.app.mouse_down(x0 + self.ui.slider_w * 0.2, y)
+ self.app.mouse_move(x0 + self.ui.slider_w * 0.5, y)
+ self.app.mouse_move(x0 + self.ui.slider_w * 0.7, y)
+ self.app.mouse_up(x0 + self.ui.slider_w * 0.7, y)
+ self.assertAlmostEqual(self.ui.slider, 0.7, delta=0.06)
+
+ def test_typing(self):
+ self.click("input")
+ self.app.type_text("Hello Py")
+ self.assertEqual(self.ui.text, "Hello Py")
+ self.app.key("BackSpace")
+ self.assertEqual(self.ui.text, "Hello P")
+ # longer than the initial buffer: the buffer grows (CallbackResize)
+ self.app.type_text("y" * 100)
+ self.assertEqual(self.ui.text, "Hello P" + "y" * 100)
+ self.app.key("a", imgui.BK_CTRL)
+ self.app.key("Delete")
+ self.assertEqual(self.ui.text, "")
+ self.app.key("Return")
+
+ def test_wheel_scrolls_child(self):
+ x, y = center(self.ui.rects["child"])
+ self.app.scroll(x, y, 0, -3)
+ self.app.render(4)
+ self.assertGreater(self.ui.scroll_y, 0.0)
+
+ # -- values and structs ----------------------------------------------------------
+
+ def test_io_and_style(self):
+ io = imgui.get_io()
+ self.assertEqual(tuple(io.display_size), (float(W), float(H)))
+ self.assertEqual(io.DisplaySize.x, float(W)) # C++ names work too
+ self.assertIsNone(io.ini_filename)
+ io.config_flags |= imgui.CONFIG_NAV_ENABLE_KEYBOARD
+ self.assertTrue(io.config_flags & imgui.CONFIG_NAV_ENABLE_KEYBOARD)
+ style = imgui.get_style()
+ bg = style.colors[imgui.COL_WINDOW_BG]
+ self.assertAlmostEqual(bg.x, 0x30 / 255, places=2) # Blender's region background
+ self.assertGreater(style.frame_rounding, 0)
+ old = style.colors[imgui.COL_BUTTON]
+ style.colors[imgui.COL_BUTTON] = (1, 0, 0, 1)
+ self.assertEqual(tuple(style.colors[imgui.COL_BUTTON]), (1.0, 0.0, 0.0, 1.0))
+ style.colors[imgui.COL_BUTTON] = old
+ self.assertEqual(len(style.colors), imgui.COL_COUNT)
+ atlas = io.fonts
+ self.assertGreaterEqual(len(atlas.fonts), 1)
+ self.assertIsInstance(atlas.fonts[0], imgui.ImFont)
+ vp = imgui.get_main_viewport()
+ self.assertEqual(tuple(vp.size), (float(W), float(H)))
+
+ def test_helpers(self):
+ h, s, v = imgui.color_convert_rgb_to_hsv(1.0, 0.0, 0.0)
+ self.assertAlmostEqual(h, 0.0)
+ self.assertAlmostEqual(s, 1.0)
+ self.assertAlmostEqual(v, 1.0)
+ r, g, b = imgui.color_convert_hsv_to_rgb(0.0, 1.0, 1.0)
+ self.assertAlmostEqual(r, 1.0)
+ self.assertEqual(imgui.color_convert_float4_to_u32((1, 0, 0, 1)), 0xFF0000FF)
+ c = imgui.color_convert_u32_to_float4(0xFF00FF00)
+ self.assertEqual((c.x, c.y, c.z, c.w), (0.0, 1.0, 0.0, 1.0))
+ self.assertEqual(imgui.get_key_name(imgui.KEY_A), "A")
+ size = imgui.calc_text_size("Hello")
+ self.assertGreater(size.x, 10)
+ col = imgui.ImColor.hsv(0.0, 1.0, 1.0)
+ self.assertAlmostEqual(col.value.x, 1.0)
+
+ def test_owned_objects(self):
+ f = imgui.ImGuiTextFilter("two")
+ self.assertTrue(f.pass_filter("one two"))
+ self.assertFalse(f.pass_filter("three"))
+ f.input_buf = "three"
+ f.build()
+ self.assertTrue(f.pass_filter("three"))
+ st = imgui.ImGuiStorage()
+ st.set_int(7, 42)
+ self.assertEqual(st.get_int(7), 42)
+ self.assertEqual(st.get_int(8, 5), 5)
+ tb = imgui.ImGuiTextBuffer()
+ tb.append("abc")
+ self.assertEqual(tb.c_str(), "abc")
+ self.assertEqual(tb.size(), 3)
+ self.assertIn("owned", repr(tb))
+
+ def test_widgets_more(self):
+ seen = {}
+
+ def extra():
+ seen["menu"] = imgui.begin_menu_bar()
+ if imgui.begin_popup_context_item("ctx"):
+ imgui.end_popup()
+ imgui.set_item_tooltip("tooltip %s" % "x")
+ _, v = imgui.slider_int("SliderInt", 3, 0, 10)
+ seen["slider_int"] = v
+ _, seen["vec"] = imgui.drag_float2("Drag2", (1.0, 2.0))
+ _, seen["d"] = imgui.input_double("Double", 1.5)
+ _, seen["multi"] = imgui.input_text_multiline("Multi", "a\nb")
+ _, seen["hint"] = imgui.input_text_with_hint("Hint", "hint", "")
+ imgui.color_button("cb", (1, 0, 0, 1))
+ seen["listbox"] = imgui.list_box("List", 1, ["x", "y", "z"])
+ seen["avail"] = imgui.get_content_region_avail()
+ seen["id"] = imgui.get_id("x")
+ seen["id_int"] = imgui.get_id_int(5)
+ imgui.image(0, (16, 16))
+ imgui.begin_disabled()
+ imgui.button("disabled")
+ imgui.end_disabled()
+ imgui.push_style_color(imgui.COL_TEXT, (1, 0, 0, 1))
+ imgui.push_style_var(imgui.STYLE_VAR_FRAME_ROUNDING, 0.0)
+ imgui.push_style_var(imgui.STYLE_VAR_ITEM_SPACING, (4, 4)) # dispatches to push_style_var_vec2
+ imgui.text("styled")
+ imgui.pop_style_var(2)
+ imgui.pop_style_color()
+ imgui.push_item_width(100)
+ imgui.v_slider_float("v", (20, 60), 0.5, 0, 1)
+ imgui.pop_item_width()
+ imgui.new_line()
+ imgui.indent()
+ imgui.unindent()
+ imgui.spacing()
+ seen["hovered"] = imgui.is_item_hovered()
+
+ self.ui.extra = extra
+ try:
+ self.app.render(3)
+ finally:
+ self.ui.extra = None
+ self.assertEqual(seen["slider_int"], 3)
+ self.assertEqual(tuple(seen["vec"]), (1.0, 2.0))
+ self.assertEqual(seen["multi"], "a\nb")
+ self.assertEqual(seen["listbox"], (False, 1))
+ self.assertNotEqual(seen["id"], seen["id_int"])
+ self.assertGreater(seen["avail"].x, 0)
+
+ def test_popup_and_demo(self):
+ state = {"open": False}
+
+ def extra():
+ if not state["open"]:
+ imgui.open_popup("pop")
+ state["open"] = True
+ if imgui.begin_popup("pop"):
+ state["inside"] = True
+ imgui.text("popup")
+ imgui.end_popup()
+ imgui.show_demo_window()
+ imgui.show_metrics_window()
+ imgui.show_style_editor()
+
+ self.ui.extra = extra
+ try:
+ self.app.render(4)
+ finally:
+ self.ui.extra = None
+ self.assertTrue(state.get("inside"))
+
+ def test_frame_error_propagates(self):
+ def boom():
+ raise ValueError("boom")
+
+ app = None
+ ctx = imgui.get_current_context()
+ other = imgui.create_context() # (does not change the current context)
+ imgui.set_current_context(other)
+ try:
+ imgui.get_io().ini_filename = None
+ app = imgui.App(boom, "", 200, 100, True)
+ with self.assertRaises(ValueError):
+ app.render(2)
+ finally:
+ if app is not None:
+ app.destroy()
+ imgui.destroy_context(other)
+ imgui.set_current_context(ctx)
+
+ def test_pixels(self):
+ self.app.render(1)
+ w, h, px = self.app.pixels()
+ self.assertEqual((w, h), (W, H))
+ self.assertEqual(len(px), W * H * 4)
+ grey = sum(1 for v in memoryview(px).cast("I") if v & 0xFFFFFF == 0x303030)
+ self.assertGreater(grey, 10000)
+
+ def test_type_errors(self):
+ def bad():
+ imgui.button(123)
+
+ self.ui.extra = bad
+ try:
+ with self.assertRaises(TypeError):
+ self.app.render(2)
+ finally:
+ self.ui.extra = None
+ self.app.render(2)
+
+
+if __name__ == "__main__":
+ unittest.main(verbosity=2)
diff --git a/bindings/rust/Cargo.lock b/bindings/rust/Cargo.lock
index df24ccb..e363586 100644
--- a/bindings/rust/Cargo.lock
+++ b/bindings/rust/Cargo.lock
@@ -48,6 +48,13 @@ dependencies = [
"taffy",
]
+[[package]]
+name = "blenderui-imgui"
+version = "0.1.0"
+dependencies = [
+ "blenderui-sys",
+]
+
[[package]]
name = "blenderui-jsview"
version = "0.1.0"
diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.toml
index 0187ff7..4173bc2 100644
--- a/bindings/rust/Cargo.toml
+++ b/bindings/rust/Cargo.toml
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
-members = ["blenderui-sys", "blenderui-tailwind", "blenderui-macros", "blenderui", "blenderui-jsview", "blenderui-node", "blenderui-qjs"]
+members = ["blenderui-sys", "blenderui-tailwind", "blenderui-macros", "blenderui", "blenderui-jsview", "blenderui-node", "blenderui-qjs", "blenderui-imgui"]
exclude = ["bench"]
[workspace.package]
diff --git a/bindings/rust/blenderui-imgui/Cargo.toml b/bindings/rust/blenderui-imgui/Cargo.toml
new file mode 100644
index 0000000..bc1ad4b
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/Cargo.toml
@@ -0,0 +1,14 @@
+[package]
+name = "blenderui-imgui"
+description = "Dear ImGui on BUI for Rust: the real Dear ImGui in Blender's look, FFI generated from imgui.h plus a safe layer and a runner"
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+repository.workspace = true
+rust-version.workspace = true
+keywords = ["gui", "imgui", "blender", "ui"]
+categories = ["gui", "api-bindings"]
+
+[dependencies]
+# builds and links bui_cimgui (Dear ImGui + its C API + the BUI backend) with the C kit
+blenderui-sys = { path = "../blenderui-sys", version = "0.1.0", features = ["imgui"] }
diff --git a/bindings/rust/blenderui-imgui/examples/demo.rs b/bindings/rust/blenderui-imgui/examples/demo.rs
new file mode 100644
index 0000000..e987699
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/examples/demo.rs
@@ -0,0 +1,57 @@
+//! Dear ImGui on BUI from Rust: ImGui's demo window plus a window of our own, in a native
+//! BUI window with Blender's look.
+//!
+//! cargo run -p blenderui-imgui --example demo
+//! cargo run -p blenderui-imgui --example demo -- --screenshot demo.png (headless)
+//!
+//! SPDX-License-Identifier: GPL-2.0-or-later
+
+use blenderui_imgui as imgui;
+
+fn main() {
+ let shot = std::env::args().skip_while(|a| a != "--screenshot").nth(1);
+
+ let mut show_demo = true;
+ let mut value = 0.5f32;
+ let mut counter = 0;
+ let mut text = String::from("Edit me");
+ let mut color = [0.278f32, 0.447, 0.702];
+ let frame = move || {
+ if show_demo {
+ imgui::show_demo_window_ex(Some(&mut show_demo));
+ }
+ let dpi = imgui::get_style().FontScaleDpi;
+ imgui::set_next_window_pos_ex([20.0 * dpi, 20.0 * dpi], imgui::ImGuiCond_FirstUseEver, [0.0, 0.0]);
+ imgui::set_next_window_size_ex([340.0 * dpi, 300.0 * dpi], imgui::ImGuiCond_FirstUseEver);
+ imgui::begin("BUI from Rust");
+ imgui::text(&format!("Dear ImGui {} on BUI, from Rust", imgui::get_version()));
+ imgui::text_disabled(&format!("UI scale {:.2}", imgui::ui_scale()));
+ imgui::separator_text("Widgets");
+ imgui::checkbox("Demo window", &mut show_demo);
+ imgui::slider_float("Value", &mut value, 0.0, 1.0);
+ if imgui::button("Count") {
+ counter += 1;
+ }
+ imgui::same_line();
+ imgui::text(&counter.to_string());
+ imgui::input_text("Text", &mut text);
+ imgui::color_edit3("Color", &mut color);
+ imgui::progress_bar_ex(value, [-1.0, 0.0], None);
+ if let Some(dl) = imgui::get_window_draw_list() {
+ let p = imgui::get_cursor_screen_pos();
+ dl.add_rect_filled(p, [p.x + 60.0 * dpi, p.y + 20.0 * dpi], imgui::im_col32(71, 114, 179, 255));
+ dl.add_circle([p.x + 90.0 * dpi, p.y + 10.0 * dpi], 9.0 * dpi, imgui::im_col32(255, 255, 255, 255));
+ }
+ imgui::dummy([100.0 * dpi, 22.0 * dpi]);
+ imgui::end();
+ };
+
+ match shot {
+ Some(path) => {
+ let mut app = imgui::App::headless([1280, 800], frame);
+ let frames = app.render(8);
+ println!("{} {} ({} frames)", if app.save_png(&path) { "wrote" } else { "could not write" }, path, frames);
+ }
+ None => imgui::run("Dear ImGui on BUI (Rust)", [1280, 800], frame),
+ }
+}
diff --git a/bindings/rust/blenderui-imgui/src/lib.rs b/bindings/rust/blenderui-imgui/src/lib.rs
new file mode 100644
index 0000000..5785ac2
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/src/lib.rs
@@ -0,0 +1,436 @@
+//! Dear ImGui on BUI for Rust: the real Dear ImGui (the version vendored in the BUI
+//! repository) drawn by BUI's renderers, in Blender's look.
+//!
+//! - [`sys`]: raw FFI over the C API (`cimgui.h`), generated from `imgui.h` by
+//! `bindings/imgui/gen/gen.py` (no bindgen): every struct with its C++ layout, every
+//! enum value as a constant, `ImGui_Button`, `ImDrawList_AddLine`...
+//! - the safe layer (re-exported here, also generated): `button(label)`,
+//! `button_ex(label, size)`, `slider_float(label, &mut v, min, max)`,
+//! `input_text(label, &mut String)`, methods on the structs
+//! (`get_window_draw_list().unwrap().add_line(p1, p2, col)`), constructors returning
+//! [`Owned`] (`ImGuiTextFilter::new()`).
+//! - a runner on the BUI backend: [`run`] (a native window) and [`App`] (window or headless,
+//! with simulated input for tests).
+//!
+//! ```no_run
+//! use blenderui_imgui as imgui;
+//!
+//! let mut value = 0.5f32;
+//! imgui::run("Hello", [1280, 800], move || {
+//! imgui::show_demo_window();
+//! imgui::begin("Hello");
+//! imgui::slider_float("Value", &mut value, 0.0, 1.0);
+//! imgui::end();
+//! });
+//! ```
+//!
+//! Dear ImGui keeps one current context per thread of use: create apps and call imgui
+//! functions from one thread. Pointers and references the functions return
+//! (`get_io()`, draw lists...) are only valid while their context lives.
+//!
+//! SPDX-License-Identifier: GPL-2.0-or-later
+
+use core::ffi::{c_char, c_int, c_void};
+use std::any::Any;
+use std::ffi::{CStr, CString};
+use std::panic::{AssertUnwindSafe, catch_unwind, resume_unwind};
+use std::ptr::NonNull;
+
+// links the native libraries (bui_cimgui, bui_imgui, the kit) built by blenderui-sys
+extern crate blenderui_sys as _;
+
+pub mod sys;
+mod safe;
+
+pub use safe::*;
+pub use sys::*;
+
+// ------------------------------------------------------------------------------------
+// helpers used by the generated safe layer
+// ------------------------------------------------------------------------------------
+
+/// `&str` -> C string (cut at an interior NUL).
+pub(crate) fn cs(s: &str) -> CString {
+ match CString::new(s) {
+ Ok(c) => c,
+ Err(e) => {
+ let n = e.nul_position();
+ CString::new(&s.as_bytes()[..n]).unwrap_or_default()
+ }
+ }
+}
+
+/// A C string returned by imgui (static, or owned by the context) as `&str` ("" for NULL).
+pub(crate) fn from_cstr(p: *const c_char) -> &'static str {
+ if p.is_null() {
+ return "";
+ }
+ unsafe { CStr::from_ptr(p) }.to_str().unwrap_or("")
+}
+
+/// The `char* buf` of `input_text*`: grown by Dear ImGui through the resize callback.
+pub(crate) struct InputBuf {
+ buf: Vec<u8>,
+}
+
+impl InputBuf {
+ pub(crate) fn new(s: &str) -> Self {
+ let mut buf = Vec::with_capacity(s.len() + 64);
+ buf.extend_from_slice(s.as_bytes());
+ buf.resize(s.len() + 64, 0);
+ InputBuf { buf }
+ }
+ pub(crate) fn ptr(&mut self) -> *mut c_char {
+ self.buf.as_mut_ptr() as *mut c_char
+ }
+ pub(crate) fn capacity(&self) -> usize {
+ self.buf.len()
+ }
+ pub(crate) fn finish(&self, out: &mut String) {
+ let n = self.buf.iter().position(|&b| b == 0).unwrap_or(self.buf.len());
+ let s = String::from_utf8_lossy(&self.buf[..n]);
+ if *out != s {
+ *out = s.into_owned();
+ }
+ }
+}
+
+pub(crate) unsafe extern "C" fn input_text_resize(data: *mut ImGuiInputTextCallbackData) -> c_int {
+ unsafe {
+ let d = &mut *data;
+ if d.EventFlag == ImGuiInputTextFlags_CallbackResize {
+ let b = &mut *(d.UserData as *mut InputBuf);
+ b.buf.resize(d.BufSize as usize + 1, 0);
+ d.Buf = b.buf.as_mut_ptr() as *mut c_char;
+ }
+ }
+ 0
+}
+
+/// Types with a C++ destructor reachable from Rust (`X_Delete`).
+pub trait Delete {
+ /// # Safety
+ /// `p` must come from the matching `X_New`.
+ unsafe fn delete(p: *mut Self);
+}
+
+/// An imgui object created from Rust (`ImGuiTextFilter::new()`...): deleted on drop.
+pub struct Owned<T: Delete>(NonNull<T>);
+
+impl<T: Delete> Owned<T> {
+ pub(crate) fn from_raw(p: *mut T) -> Self {
+ Owned(NonNull::new(p).expect("imgui allocation failed"))
+ }
+ pub fn as_ptr(&self) -> *mut T {
+ self.0.as_ptr()
+ }
+}
+
+impl<T: Delete> core::ops::Deref for Owned<T> {
+ type Target = T;
+ fn deref(&self) -> &T {
+ unsafe { self.0.as_ref() }
+ }
+}
+
+impl<T: Delete> core::ops::DerefMut for Owned<T> {
+ fn deref_mut(&mut self) -> &mut T {
+ unsafe { self.0.as_mut() }
+ }
+}
+
+impl<T: Delete> Drop for Owned<T> {
+ fn drop(&mut self) {
+ unsafe { T::delete(self.0.as_ptr()) }
+ }
+}
+
+impl From<[f32; 2]> for ImVec2 {
+ fn from(v: [f32; 2]) -> Self {
+ ImVec2 { x: v[0], y: v[1] }
+ }
+}
+impl From<(f32, f32)> for ImVec2 {
+ fn from(v: (f32, f32)) -> Self {
+ ImVec2 { x: v.0, y: v.1 }
+ }
+}
+impl From<[f32; 4]> for ImVec4 {
+ fn from(v: [f32; 4]) -> Self {
+ ImVec4 { x: v[0], y: v[1], z: v[2], w: v[3] }
+ }
+}
+impl From<(f32, f32, f32, f32)> for ImVec4 {
+ fn from(v: (f32, f32, f32, f32)) -> Self {
+ ImVec4 { x: v.0, y: v.1, z: v.2, w: v.3 }
+ }
+}
+impl From<ImTextureID> for ImTextureRef {
+ /// A user texture (for BUI: a `BUI_texture_create` id).
+ fn from(id: ImTextureID) -> Self {
+ ImTextureRef { _TexData: core::ptr::null_mut(), _TexID: id }
+ }
+}
+
+/// `IM_COL32(r, g, b, a)`: a packed color.
+pub const fn im_col32(r: u8, g: u8, b: u8, a: u8) -> ImU32 {
+ ((a as u32) << 24) | ((b as u32) << 16) | ((g as u32) << 8) | (r as u32)
+}
+
+// ------------------------------------------------------------------------------------
+// the BUI backend (cimgui_impl_bui.h)
+// ------------------------------------------------------------------------------------
+
+/// Modifier bits for [`App::key`].
+pub const BK_SHIFT: i32 = 1;
+pub const BK_CTRL: i32 = 2;
+pub const BK_ALT: i32 = 4;
+
+#[repr(C)]
+struct RawApp {
+ _opaque: [u8; 0],
+}
+
+/// Backend options (`cImGui_ImplBUI_Config`).
+#[repr(C)]
+#[derive(Clone, Copy, Debug)]
+pub struct Config {
+ /// Blender's theme colors and metrics (true).
+ pub blender_style: bool,
+ /// Blender's UI font, Inter (true).
+ pub blender_font: bool,
+ /// Font size in pixels at scale 1; 0: Blender's UI text size.
+ pub font_size: f32,
+ /// Follow DPI changes (true).
+ pub follow_scale: bool,
+ /// Frames after an input event (3).
+ pub settle_frames: c_int,
+}
+
+impl Default for Config {
+ fn default() -> Self {
+ unsafe { cImGui_ImplBUI_DefaultConfig() }
+ }
+}
+
+type FrameFn = unsafe extern "C" fn(user: *mut c_void);
+
+unsafe extern "C" {
+ fn cImGui_ImplBUI_DefaultConfig() -> Config;
+ fn cImGui_ImplBUI_CreateApp(title: *const c_char, w: c_int, h: c_int, frame: FrameFn, user: *mut c_void, cfg: *const Config) -> *mut RawApp;
+ fn cImGui_ImplBUI_CreateHeadlessApp(w: c_int, h: c_int, frame: FrameFn, user: *mut c_void, cfg: *const Config) -> *mut RawApp;
+ fn cImGui_ImplBUI_RunApp(app: *mut RawApp);
+ fn cImGui_ImplBUI_CloseApp(app: *mut RawApp);
+ fn cImGui_ImplBUI_DestroyApp(app: *mut RawApp);
+ fn cImGui_ImplBUI_IsHeadless(app: *mut RawApp) -> bool;
+ fn cImGui_ImplBUI_Render(app: *mut RawApp, n: c_int) -> c_int;
+ fn cImGui_ImplBUI_Pixels(app: *mut RawApp, w: *mut c_int, h: *mut c_int) -> *const u32;
+ fn cImGui_ImplBUI_SavePNG(app: *mut RawApp, path: *const c_char) -> bool;
+ fn cImGui_ImplBUI_MouseMove(app: *mut RawApp, x: f32, y: f32);
+ fn cImGui_ImplBUI_MouseDown(app: *mut RawApp, x: f32, y: f32, button: c_int);
+ fn cImGui_ImplBUI_MouseUp(app: *mut RawApp, x: f32, y: f32, button: c_int);
+ fn cImGui_ImplBUI_Scroll(app: *mut RawApp, x: f32, y: f32, dx: f32, dy: f32);
+ fn cImGui_ImplBUI_KeyDown(app: *mut RawApp, keysym: *const c_char, mods: c_int);
+ fn cImGui_ImplBUI_KeyUp(app: *mut RawApp, keysym: *const c_char, mods: c_int);
+ fn cImGui_ImplBUI_Key(app: *mut RawApp, keysym: *const c_char, mods: c_int);
+ fn cImGui_ImplBUI_TypeText(app: *mut RawApp, utf8: *const c_char);
+ fn cImGui_ImplBUI_FrameCount() -> c_int;
+ fn cImGui_ImplBUI_StyleBlender(dst: *mut ImGuiStyle, scale: f32);
+ fn cImGui_ImplBUI_GetScale() -> f32;
+ fn cImGui_ImplBUI_SetScale(scale: f32);
+}
+
+/// Blender's theme (colors and metrics at `scale`) on `style` (None: the current style).
+pub fn style_blender(style: Option<&mut ImGuiStyle>, scale: f32) {
+ unsafe { cImGui_ImplBUI_StyleBlender(style.map_or(core::ptr::null_mut(), |s| s as *mut _), scale) }
+}
+
+/// BUI's UI scale (DPI).
+pub fn ui_scale() -> f32 {
+ unsafe { cImGui_ImplBUI_GetScale() }
+}
+
+/// Sets BUI's UI scale (1 = Blender's 20 px widget unit).
+pub fn set_ui_scale(scale: f32) {
+ unsafe { cImGui_ImplBUI_SetScale(scale) }
+}
+
+struct FrameState<F> {
+ frame: F,
+ app: *mut RawApp,
+ panic: Option<Box<dyn Any + Send>>,
+}
+
+unsafe extern "C" fn trampoline<F: FnMut()>(user: *mut c_void) {
+ let st = unsafe { &mut *(user as *mut FrameState<F>) };
+ if st.panic.is_some() {
+ return; // empty frames until the caller sees the panic
+ }
+ if let Err(p) = catch_unwind(AssertUnwindSafe(|| (st.frame)())) {
+ st.panic = Some(p);
+ unsafe { cImGui_ImplBUI_CloseApp(st.app) };
+ }
+}
+
+/// Dear ImGui in a BUI window, or headless: `frame` runs inside each ImGui frame.
+///
+/// Creates an ImGui context when none is current (destroyed with the app). A panic in
+/// `frame` closes the window and resumes from [`App::run`] / [`App::render`].
+pub struct App<F: FnMut()> {
+ raw: *mut RawApp,
+ state: Box<FrameState<F>>,
+ own_ctx: *mut ImGuiContext,
+}
+
+impl<F: FnMut()> App<F> {
+ /// A native window (headless when there is no window system: see [`App::is_headless`]).
+ pub fn new(title: &str, size: [i32; 2], frame: F) -> Self {
+ Self::create(Some(title), size, Config::default(), frame)
+ }
+
+ /// No window: render with [`App::render`] into an offscreen raster of `size`.
+ pub fn headless(size: [i32; 2], frame: F) -> Self {
+ Self::create(None, size, Config::default(), frame)
+ }
+
+ /// Either, with backend options.
+ pub fn with_config(title: Option<&str>, size: [i32; 2], config: Config, frame: F) -> Self {
+ Self::create(title, size, config, frame)
+ }
+
+ fn create(title: Option<&str>, size: [i32; 2], config: Config, frame: F) -> Self {
+ let mut own_ctx = core::ptr::null_mut();
+ unsafe {
+ if ImGui_GetCurrentContext().is_null() {
+ own_ctx = ImGui_CreateContext();
+ ImGui_SetCurrentContext(own_ctx);
+ (*ImGui_GetIO()).IniFilename = core::ptr::null();
+ }
+ }
+ let mut state = Box::new(FrameState { frame, app: core::ptr::null_mut(), panic: None });
+ let user = &mut *state as *mut FrameState<F> as *mut c_void;
+ let raw = unsafe {
+ match title {
+ Some(t) => {
+ let t = cs(t);
+ cImGui_ImplBUI_CreateApp(t.as_ptr(), size[0], size[1], trampoline::<F>, user, &config)
+ }
+ None => cImGui_ImplBUI_CreateHeadlessApp(size[0], size[1], trampoline::<F>, user, &config),
+ }
+ };
+ state.app = raw;
+ App { raw, state, own_ctx }
+ }
+
+ fn rethrow(&mut self) {
+ if let Some(p) = self.state.panic.take() {
+ resume_unwind(p);
+ }
+ }
+
+ /// BUI's message loop until the window closes (returns at once when headless).
+ pub fn run(&mut self) {
+ unsafe { cImGui_ImplBUI_RunApp(self.raw) };
+ self.rethrow();
+ }
+
+ /// Closes the window (ends [`App::run`]).
+ pub fn close(&mut self) {
+ unsafe { cImGui_ImplBUI_CloseApp(self.raw) }
+ }
+
+ pub fn is_headless(&self) -> bool {
+ unsafe { cImGui_ImplBUI_IsHeadless(self.raw) }
+ }
+
+ /// Requests `n` frames and renders them offscreen; returns the frames run so far.
+ pub fn render(&mut self, n: i32) -> i32 {
+ let r = unsafe { cImGui_ImplBUI_Render(self.raw, n) };
+ self.rethrow();
+ r
+ }
+
+ /// The last rendered frame: 0xAARRGGBB pixels, width, height.
+ pub fn pixels(&self) -> Option<(&[u32], usize, usize)> {
+ let (mut w, mut h) = (0, 0);
+ let p = unsafe { cImGui_ImplBUI_Pixels(self.raw, &mut w, &mut h) };
+ if p.is_null() {
+ return None;
+ }
+ let (w, h) = (w as usize, h as usize);
+ Some((unsafe { core::slice::from_raw_parts(p, w * h) }, w, h))
+ }
+
+ /// Writes the last rendered frame as a PNG.
+ pub fn save_png(&self, path: &str) -> bool {
+ let p = cs(path);
+ unsafe { cImGui_ImplBUI_SavePNG(self.raw, p.as_ptr()) }
+ }
+
+ pub fn mouse_move(&mut self, x: f32, y: f32) {
+ unsafe { cImGui_ImplBUI_MouseMove(self.raw, x, y) };
+ self.rethrow();
+ }
+ /// button: 0 left, 1 right, 2 middle.
+ pub fn mouse_down(&mut self, x: f32, y: f32, button: i32) {
+ unsafe { cImGui_ImplBUI_MouseDown(self.raw, x, y, button) };
+ self.rethrow();
+ }
+ pub fn mouse_up(&mut self, x: f32, y: f32, button: i32) {
+ unsafe { cImGui_ImplBUI_MouseUp(self.raw, x, y, button) };
+ self.rethrow();
+ }
+ pub fn click(&mut self, x: f32, y: f32) {
+ self.mouse_down(x, y, 0);
+ self.mouse_up(x, y, 0);
+ }
+ /// Wheel notches: dy > 0 scrolls up.
+ pub fn scroll(&mut self, x: f32, y: f32, dx: f32, dy: f32) {
+ unsafe { cImGui_ImplBUI_Scroll(self.raw, x, y, dx, dy) };
+ self.rethrow();
+ }
+ /// Press and release a key by X11 name ("Return", "BackSpace", "a"); mods: BK_SHIFT | BK_CTRL | BK_ALT.
+ pub fn key(&mut self, keysym: &str, mods: i32) {
+ let k = cs(keysym);
+ unsafe { cImGui_ImplBUI_Key(self.raw, k.as_ptr(), mods) };
+ self.rethrow();
+ }
+ pub fn key_down(&mut self, keysym: &str, mods: i32) {
+ let k = cs(keysym);
+ unsafe { cImGui_ImplBUI_KeyDown(self.raw, k.as_ptr(), mods) };
+ self.rethrow();
+ }
+ pub fn key_up(&mut self, keysym: &str, mods: i32) {
+ let k = cs(keysym);
+ unsafe { cImGui_ImplBUI_KeyUp(self.raw, k.as_ptr(), mods) };
+ self.rethrow();
+ }
+ /// Typed text (as the window hosts send characters).
+ pub fn type_text(&mut self, text: &str) {
+ let t = cs(text);
+ unsafe { cImGui_ImplBUI_TypeText(self.raw, t.as_ptr()) };
+ self.rethrow();
+ }
+ /// ImGui frames run by the backend so far (current context).
+ pub fn frame_count(&self) -> i32 {
+ unsafe { cImGui_ImplBUI_FrameCount() }
+ }
+}
+
+impl<F: FnMut()> Drop for App<F> {
+ fn drop(&mut self) {
+ unsafe {
+ cImGui_ImplBUI_DestroyApp(self.raw);
+ if !self.own_ctx.is_null() {
+ ImGui_DestroyContextEx(self.own_ctx);
+ }
+ }
+ }
+}
+
+/// Opens a BUI window titled `title` and calls `frame` inside each ImGui frame until the
+/// window closes (Blender's style and font). Returns at once without a window system.
+pub fn run(title: &str, size: [i32; 2], frame: impl FnMut()) {
+ let mut app = App::new(title, size, frame);
+ app.run();
+}
diff --git a/bindings/rust/blenderui-imgui/src/safe.rs b/bindings/rust/blenderui-imgui/src/safe.rs
new file mode 100644
index 0000000..643f591
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/src/safe.rs
@@ -0,0 +1,4713 @@
+//! The safe layer over sys.rs: snake_case functions taking &str, &mut for in/out
+//! values, slices for (pointer, count) pairs; methods on the imgui structs.
+//! `button(label)` takes the required arguments, `button_ex(label, size)` all of them.
+//! Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py).
+#![allow(clippy::all, unused_mut, unused_variables)]
+
+use crate::sys::{self, *};
+use core::ffi::{c_char, c_int, c_uint, c_void};
+use std::ffi::CString;
+
+/// `ImGui::CreateContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn create_context() -> Option<&'static mut ImGuiContext> {
+ unsafe { sys::ImGui_CreateContext().as_mut() }
+}
+/// `ImGui::CreateContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn create_context_ex(shared_font_atlas: Option<&mut ImFontAtlas>) -> Option<&'static mut ImGuiContext> {
+ unsafe { sys::ImGui_CreateContextEx(shared_font_atlas.map_or(core::ptr::null_mut(), |r| r as *mut ImFontAtlas)).as_mut() }
+}
+/// `ImGui::DestroyContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn destroy_context() {
+ unsafe { sys::ImGui_DestroyContext() }
+}
+/// `ImGui::DestroyContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn destroy_context_ex(ctx: Option<&mut ImGuiContext>) {
+ unsafe { sys::ImGui_DestroyContextEx(ctx.map_or(core::ptr::null_mut(), |r| r as *mut ImGuiContext)) }
+}
+/// `ImGui::GetCurrentContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_current_context() -> Option<&'static mut ImGuiContext> {
+ unsafe { sys::ImGui_GetCurrentContext().as_mut() }
+}
+/// `ImGui::SetCurrentContext`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_current_context(ctx: &mut ImGuiContext) {
+ unsafe { sys::ImGui_SetCurrentContext(ctx as *mut ImGuiContext) }
+}
+/// `ImGui::GetIO`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_io() -> &'static mut ImGuiIO {
+ unsafe { &mut *sys::ImGui_GetIO() }
+}
+/// `ImGui::GetPlatformIO`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_platform_io() -> &'static mut ImGuiPlatformIO {
+ unsafe { &mut *sys::ImGui_GetPlatformIO() }
+}
+/// `ImGui::GetStyle`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_style() -> &'static mut ImGuiStyle {
+ unsafe { &mut *sys::ImGui_GetStyle() }
+}
+/// `ImGui::NewFrame`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn new_frame() {
+ unsafe { sys::ImGui_NewFrame() }
+}
+/// `ImGui::EndFrame`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_frame() {
+ unsafe { sys::ImGui_EndFrame() }
+}
+/// `ImGui::Render`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn render() {
+ unsafe { sys::ImGui_Render() }
+}
+/// `ImGui::GetDrawData`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_draw_data() -> Option<&'static mut ImDrawData> {
+ unsafe { sys::ImGui_GetDrawData().as_mut() }
+}
+/// `ImGui::ShowDemoWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_demo_window() {
+ unsafe { sys::ImGui_ShowDemoWindow() }
+}
+/// `ImGui::ShowDemoWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_demo_window_ex(p_open: Option<&mut bool>) {
+ unsafe { sys::ImGui_ShowDemoWindowEx(p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool)) }
+}
+/// `ImGui::ShowMetricsWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_metrics_window() {
+ unsafe { sys::ImGui_ShowMetricsWindow() }
+}
+/// `ImGui::ShowMetricsWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_metrics_window_ex(p_open: Option<&mut bool>) {
+ unsafe { sys::ImGui_ShowMetricsWindowEx(p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool)) }
+}
+/// `ImGui::ShowDebugLogWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_debug_log_window() {
+ unsafe { sys::ImGui_ShowDebugLogWindow() }
+}
+/// `ImGui::ShowDebugLogWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_debug_log_window_ex(p_open: Option<&mut bool>) {
+ unsafe { sys::ImGui_ShowDebugLogWindowEx(p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool)) }
+}
+/// `ImGui::ShowIDStackToolWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_id_stack_tool_window() {
+ unsafe { sys::ImGui_ShowIDStackToolWindow() }
+}
+/// `ImGui::ShowIDStackToolWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_id_stack_tool_window_ex(p_open: Option<&mut bool>) {
+ unsafe { sys::ImGui_ShowIDStackToolWindowEx(p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool)) }
+}
+/// `ImGui::ShowAboutWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_about_window() {
+ unsafe { sys::ImGui_ShowAboutWindow() }
+}
+/// `ImGui::ShowAboutWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_about_window_ex(p_open: Option<&mut bool>) {
+ unsafe { sys::ImGui_ShowAboutWindowEx(p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool)) }
+}
+/// `ImGui::ShowStyleEditor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_style_editor() {
+ unsafe { sys::ImGui_ShowStyleEditor() }
+}
+/// `ImGui::ShowStyleEditor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_style_editor_ex(r#ref: Option<&mut ImGuiStyle>) {
+ unsafe { sys::ImGui_ShowStyleEditorEx(r#ref.map_or(core::ptr::null_mut(), |r| r as *mut ImGuiStyle)) }
+}
+/// `ImGui::ShowStyleSelector`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_style_selector(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ShowStyleSelector(__label.as_ptr()) }
+}
+/// `ImGui::ShowFontSelector`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_font_selector(label: &str) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ShowFontSelector(__label.as_ptr()) }
+}
+/// `ImGui::ShowUserGuide`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn show_user_guide() {
+ unsafe { sys::ImGui_ShowUserGuide() }
+}
+/// `ImGui::GetVersion`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_version() -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_GetVersion()) }
+}
+/// `ImGui::StyleColorsDark`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_dark() {
+ unsafe { sys::ImGui_StyleColorsDark() }
+}
+/// `ImGui::StyleColorsDark`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_dark_ex(dst: Option<&mut ImGuiStyle>) {
+ unsafe { sys::ImGui_StyleColorsDarkEx(dst.map_or(core::ptr::null_mut(), |r| r as *mut ImGuiStyle)) }
+}
+/// `ImGui::StyleColorsLight`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_light() {
+ unsafe { sys::ImGui_StyleColorsLight() }
+}
+/// `ImGui::StyleColorsLight`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_light_ex(dst: Option<&mut ImGuiStyle>) {
+ unsafe { sys::ImGui_StyleColorsLightEx(dst.map_or(core::ptr::null_mut(), |r| r as *mut ImGuiStyle)) }
+}
+/// `ImGui::StyleColorsClassic`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_classic() {
+ unsafe { sys::ImGui_StyleColorsClassic() }
+}
+/// `ImGui::StyleColorsClassic`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn style_colors_classic_ex(dst: Option<&mut ImGuiStyle>) {
+ unsafe { sys::ImGui_StyleColorsClassicEx(dst.map_or(core::ptr::null_mut(), |r| r as *mut ImGuiStyle)) }
+}
+/// `ImGui::Begin`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin(name: &str) -> bool {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_Begin(__name.as_ptr()) }
+}
+/// `ImGui::Begin`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_ex(name: &str, p_open: Option<&mut bool>, flags: ImGuiWindowFlags) -> bool {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_BeginEx(__name.as_ptr(), p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool), flags) }
+}
+/// `ImGui::End`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end() {
+ unsafe { sys::ImGui_End() }
+}
+/// `ImGui::BeginChild`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_child(str_id: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginChild(__str_id.as_ptr()) }
+}
+/// `ImGui::BeginChild`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_child_ex(str_id: &str, size: impl Into<ImVec2>, child_flags: ImGuiChildFlags, window_flags: ImGuiWindowFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginChildEx(__str_id.as_ptr(), size.into(), child_flags, window_flags) }
+}
+/// `ImGui::BeginChild`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_child_id(id: ImGuiID) -> bool {
+ unsafe { sys::ImGui_BeginChildID(id) }
+}
+/// `ImGui::BeginChild`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_child_id_ex(id: ImGuiID, size: impl Into<ImVec2>, child_flags: ImGuiChildFlags, window_flags: ImGuiWindowFlags) -> bool {
+ unsafe { sys::ImGui_BeginChildIDEx(id, size.into(), child_flags, window_flags) }
+}
+/// `ImGui::EndChild`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_child() {
+ unsafe { sys::ImGui_EndChild() }
+}
+/// `ImGui::IsWindowAppearing`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_appearing() -> bool {
+ unsafe { sys::ImGui_IsWindowAppearing() }
+}
+/// `ImGui::IsWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_collapsed() -> bool {
+ unsafe { sys::ImGui_IsWindowCollapsed() }
+}
+/// `ImGui::IsWindowFocused`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_focused() -> bool {
+ unsafe { sys::ImGui_IsWindowFocused() }
+}
+/// `ImGui::IsWindowFocused`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_focused_ex(flags: ImGuiFocusedFlags) -> bool {
+ unsafe { sys::ImGui_IsWindowFocusedEx(flags) }
+}
+/// `ImGui::IsWindowHovered`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_hovered() -> bool {
+ unsafe { sys::ImGui_IsWindowHovered() }
+}
+/// `ImGui::IsWindowHovered`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_window_hovered_ex(flags: ImGuiHoveredFlags) -> bool {
+ unsafe { sys::ImGui_IsWindowHoveredEx(flags) }
+}
+/// `ImGui::GetWindowDrawList`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_window_draw_list() -> Option<&'static mut ImDrawList> {
+ unsafe { sys::ImGui_GetWindowDrawList().as_mut() }
+}
+/// `ImGui::GetWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_window_pos() -> ImVec2 {
+ unsafe { sys::ImGui_GetWindowPos() }
+}
+/// `ImGui::GetWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_window_size() -> ImVec2 {
+ unsafe { sys::ImGui_GetWindowSize() }
+}
+/// `ImGui::GetWindowWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_window_width() -> f32 {
+ unsafe { sys::ImGui_GetWindowWidth() }
+}
+/// `ImGui::GetWindowHeight`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_window_height() -> f32 {
+ unsafe { sys::ImGui_GetWindowHeight() }
+}
+/// `ImGui::SetNextWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_pos(pos: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowPos(pos.into()) }
+}
+/// `ImGui::SetNextWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_pos_ex(pos: impl Into<ImVec2>, cond: ImGuiCond, pivot: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowPosEx(pos.into(), cond, pivot.into()) }
+}
+/// `ImGui::SetNextWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_size(size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowSize(size.into()) }
+}
+/// `ImGui::SetNextWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_size_ex(size: impl Into<ImVec2>, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetNextWindowSizeEx(size.into(), cond) }
+}
+/// `ImGui::SetNextWindowSizeConstraints`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_size_constraints(size_min: impl Into<ImVec2>, size_max: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowSizeConstraints(size_min.into(), size_max.into()) }
+}
+/// `ImGui::SetNextWindowSizeConstraints`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_size_constraints_ex(size_min: impl Into<ImVec2>, size_max: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowSizeConstraintsEx(size_min.into(), size_max.into(), None, core::ptr::null_mut()) }
+}
+/// `ImGui::SetNextWindowContentSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_content_size(size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowContentSize(size.into()) }
+}
+/// `ImGui::SetNextWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_collapsed(collapsed: bool) {
+ unsafe { sys::ImGui_SetNextWindowCollapsed(collapsed) }
+}
+/// `ImGui::SetNextWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_collapsed_ex(collapsed: bool, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetNextWindowCollapsedEx(collapsed, cond) }
+}
+/// `ImGui::SetNextWindowFocus`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_focus() {
+ unsafe { sys::ImGui_SetNextWindowFocus() }
+}
+/// `ImGui::SetNextWindowScroll`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_scroll(scroll: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetNextWindowScroll(scroll.into()) }
+}
+/// `ImGui::SetNextWindowBgAlpha`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_window_bg_alpha(alpha: f32) {
+ unsafe { sys::ImGui_SetNextWindowBgAlpha(alpha) }
+}
+/// `ImGui::SetWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_pos(pos: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetWindowPos(pos.into()) }
+}
+/// `ImGui::SetWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_pos_ex(pos: impl Into<ImVec2>, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetWindowPosEx(pos.into(), cond) }
+}
+/// `ImGui::SetWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_size(size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetWindowSize(size.into()) }
+}
+/// `ImGui::SetWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_size_ex(size: impl Into<ImVec2>, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetWindowSizeEx(size.into(), cond) }
+}
+/// `ImGui::SetWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_collapsed(collapsed: bool) {
+ unsafe { sys::ImGui_SetWindowCollapsed(collapsed) }
+}
+/// `ImGui::SetWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_collapsed_ex(collapsed: bool, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetWindowCollapsedEx(collapsed, cond) }
+}
+/// `ImGui::SetWindowFocus`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_focus() {
+ unsafe { sys::ImGui_SetWindowFocus() }
+}
+/// `ImGui::SetWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_pos_str(name: &str, pos: impl Into<ImVec2>) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowPosStr(__name.as_ptr(), pos.into()) }
+}
+/// `ImGui::SetWindowPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_pos_str_ex(name: &str, pos: impl Into<ImVec2>, cond: ImGuiCond) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowPosStrEx(__name.as_ptr(), pos.into(), cond) }
+}
+/// `ImGui::SetWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_size_str(name: &str, size: impl Into<ImVec2>) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowSizeStr(__name.as_ptr(), size.into()) }
+}
+/// `ImGui::SetWindowSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_size_str_ex(name: &str, size: impl Into<ImVec2>, cond: ImGuiCond) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowSizeStrEx(__name.as_ptr(), size.into(), cond) }
+}
+/// `ImGui::SetWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_collapsed_str(name: &str, collapsed: bool) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowCollapsedStr(__name.as_ptr(), collapsed) }
+}
+/// `ImGui::SetWindowCollapsed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_collapsed_str_ex(name: &str, collapsed: bool, cond: ImGuiCond) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowCollapsedStrEx(__name.as_ptr(), collapsed, cond) }
+}
+/// `ImGui::SetWindowFocus`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_window_focus_str(name: &str) {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_SetWindowFocusStr(__name.as_ptr()) }
+}
+/// `ImGui::GetScrollX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_scroll_x() -> f32 {
+ unsafe { sys::ImGui_GetScrollX() }
+}
+/// `ImGui::GetScrollY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_scroll_y() -> f32 {
+ unsafe { sys::ImGui_GetScrollY() }
+}
+/// `ImGui::SetScrollX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_x(scroll_x: f32) {
+ unsafe { sys::ImGui_SetScrollX(scroll_x) }
+}
+/// `ImGui::SetScrollY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_y(scroll_y: f32) {
+ unsafe { sys::ImGui_SetScrollY(scroll_y) }
+}
+/// `ImGui::GetScrollMaxX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_scroll_max_x() -> f32 {
+ unsafe { sys::ImGui_GetScrollMaxX() }
+}
+/// `ImGui::GetScrollMaxY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_scroll_max_y() -> f32 {
+ unsafe { sys::ImGui_GetScrollMaxY() }
+}
+/// `ImGui::SetScrollHereX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_here_x() {
+ unsafe { sys::ImGui_SetScrollHereX() }
+}
+/// `ImGui::SetScrollHereX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_here_x_ex(center_x_ratio: f32) {
+ unsafe { sys::ImGui_SetScrollHereXEx(center_x_ratio) }
+}
+/// `ImGui::SetScrollHereY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_here_y() {
+ unsafe { sys::ImGui_SetScrollHereY() }
+}
+/// `ImGui::SetScrollHereY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_here_y_ex(center_y_ratio: f32) {
+ unsafe { sys::ImGui_SetScrollHereYEx(center_y_ratio) }
+}
+/// `ImGui::SetScrollFromPosX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_from_pos_x(local_x: f32) {
+ unsafe { sys::ImGui_SetScrollFromPosX(local_x) }
+}
+/// `ImGui::SetScrollFromPosX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_from_pos_x_ex(local_x: f32, center_x_ratio: f32) {
+ unsafe { sys::ImGui_SetScrollFromPosXEx(local_x, center_x_ratio) }
+}
+/// `ImGui::SetScrollFromPosY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_from_pos_y(local_y: f32) {
+ unsafe { sys::ImGui_SetScrollFromPosY(local_y) }
+}
+/// `ImGui::SetScrollFromPosY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_scroll_from_pos_y_ex(local_y: f32, center_y_ratio: f32) {
+ unsafe { sys::ImGui_SetScrollFromPosYEx(local_y, center_y_ratio) }
+}
+/// `ImGui::PushFont`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_font(font: &mut ImFont, font_size_base_unscaled: f32) {
+ unsafe { sys::ImGui_PushFont(font as *mut ImFont, font_size_base_unscaled) }
+}
+/// `ImGui::PopFont`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_font() {
+ unsafe { sys::ImGui_PopFont() }
+}
+/// `ImGui::GetFont`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_font() -> Option<&'static mut ImFont> {
+ unsafe { sys::ImGui_GetFont().as_mut() }
+}
+/// `ImGui::GetFontSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_font_size() -> f32 {
+ unsafe { sys::ImGui_GetFontSize() }
+}
+/// `ImGui::GetFontBaked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_font_baked() -> Option<&'static mut ImFontBaked> {
+ unsafe { sys::ImGui_GetFontBaked().as_mut() }
+}
+/// `ImGui::PushStyleColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_color(idx: ImGuiCol, col: ImU32) {
+ unsafe { sys::ImGui_PushStyleColor(idx, col) }
+}
+/// `ImGui::PushStyleColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_color_vec4(idx: ImGuiCol, col: impl Into<ImVec4>) {
+ unsafe { sys::ImGui_PushStyleColorVec4(idx, col.into()) }
+}
+/// `ImGui::PopStyleColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_style_color() {
+ unsafe { sys::ImGui_PopStyleColor() }
+}
+/// `ImGui::PopStyleColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_style_color_ex(count: c_int) {
+ unsafe { sys::ImGui_PopStyleColorEx(count) }
+}
+/// `ImGui::PushStyleVar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_var(idx: ImGuiStyleVar, val: f32) {
+ unsafe { sys::ImGui_PushStyleVar(idx, val) }
+}
+/// `ImGui::PushStyleVar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_var_vec2(idx: ImGuiStyleVar, val: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_PushStyleVarVec2(idx, val.into()) }
+}
+/// `ImGui::PushStyleVarX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_var_x(idx: ImGuiStyleVar, val_x: f32) {
+ unsafe { sys::ImGui_PushStyleVarX(idx, val_x) }
+}
+/// `ImGui::PushStyleVarY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_style_var_y(idx: ImGuiStyleVar, val_y: f32) {
+ unsafe { sys::ImGui_PushStyleVarY(idx, val_y) }
+}
+/// `ImGui::PopStyleVar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_style_var() {
+ unsafe { sys::ImGui_PopStyleVar() }
+}
+/// `ImGui::PopStyleVar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_style_var_ex(count: c_int) {
+ unsafe { sys::ImGui_PopStyleVarEx(count) }
+}
+/// `ImGui::PushItemFlag`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_item_flag(option: ImGuiItemFlags, enabled: bool) {
+ unsafe { sys::ImGui_PushItemFlag(option, enabled) }
+}
+/// `ImGui::PopItemFlag`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_item_flag() {
+ unsafe { sys::ImGui_PopItemFlag() }
+}
+/// `ImGui::PushItemWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_item_width(item_width: f32) {
+ unsafe { sys::ImGui_PushItemWidth(item_width) }
+}
+/// `ImGui::PopItemWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_item_width() {
+ unsafe { sys::ImGui_PopItemWidth() }
+}
+/// `ImGui::SetNextItemWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_width(item_width: f32) {
+ unsafe { sys::ImGui_SetNextItemWidth(item_width) }
+}
+/// `ImGui::CalcItemWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn calc_item_width() -> f32 {
+ unsafe { sys::ImGui_CalcItemWidth() }
+}
+/// `ImGui::PushTextWrapPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_text_wrap_pos() {
+ unsafe { sys::ImGui_PushTextWrapPos() }
+}
+/// `ImGui::PushTextWrapPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_text_wrap_pos_ex(wrap_local_pos_x: f32) {
+ unsafe { sys::ImGui_PushTextWrapPosEx(wrap_local_pos_x) }
+}
+/// `ImGui::PopTextWrapPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_text_wrap_pos() {
+ unsafe { sys::ImGui_PopTextWrapPos() }
+}
+/// `ImGui::GetFontTexUvWhitePixel`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_font_tex_uv_white_pixel() -> ImVec2 {
+ unsafe { sys::ImGui_GetFontTexUvWhitePixel() }
+}
+/// `ImGui::GetColorU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_color_u32(idx: ImGuiCol) -> ImU32 {
+ unsafe { sys::ImGui_GetColorU32(idx) }
+}
+/// `ImGui::GetColorU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_color_u32_ex(idx: ImGuiCol, alpha_mul: f32) -> ImU32 {
+ unsafe { sys::ImGui_GetColorU32Ex(idx, alpha_mul) }
+}
+/// `ImGui::GetColorU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_color_u32_vec4(col: impl Into<ImVec4>) -> ImU32 {
+ unsafe { sys::ImGui_GetColorU32Vec4(col.into()) }
+}
+/// `ImGui::GetColorU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_color_u32_u32(col: ImU32) -> ImU32 {
+ unsafe { sys::ImGui_GetColorU32U32(col) }
+}
+/// `ImGui::GetColorU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_color_u32_u32_ex(col: ImU32, alpha_mul: f32) -> ImU32 {
+ unsafe { sys::ImGui_GetColorU32U32Ex(col, alpha_mul) }
+}
+/// `ImGui::GetStyleColorVec4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_style_color_vec4(idx: ImGuiCol) -> &'static ImVec4 {
+ unsafe { &*sys::ImGui_GetStyleColorVec4(idx) }
+}
+/// `ImGui::GetCursorScreenPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_cursor_screen_pos() -> ImVec2 {
+ unsafe { sys::ImGui_GetCursorScreenPos() }
+}
+/// `ImGui::SetCursorScreenPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_cursor_screen_pos(pos: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetCursorScreenPos(pos.into()) }
+}
+/// `ImGui::GetContentRegionAvail`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_content_region_avail() -> ImVec2 {
+ unsafe { sys::ImGui_GetContentRegionAvail() }
+}
+/// `ImGui::GetCursorPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_cursor_pos() -> ImVec2 {
+ unsafe { sys::ImGui_GetCursorPos() }
+}
+/// `ImGui::GetCursorPosX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_cursor_pos_x() -> f32 {
+ unsafe { sys::ImGui_GetCursorPosX() }
+}
+/// `ImGui::GetCursorPosY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_cursor_pos_y() -> f32 {
+ unsafe { sys::ImGui_GetCursorPosY() }
+}
+/// `ImGui::SetCursorPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_cursor_pos(local_pos: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_SetCursorPos(local_pos.into()) }
+}
+/// `ImGui::SetCursorPosX`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_cursor_pos_x(local_x: f32) {
+ unsafe { sys::ImGui_SetCursorPosX(local_x) }
+}
+/// `ImGui::SetCursorPosY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_cursor_pos_y(local_y: f32) {
+ unsafe { sys::ImGui_SetCursorPosY(local_y) }
+}
+/// `ImGui::GetCursorStartPos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_cursor_start_pos() -> ImVec2 {
+ unsafe { sys::ImGui_GetCursorStartPos() }
+}
+/// `ImGui::Separator`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn separator() {
+ unsafe { sys::ImGui_Separator() }
+}
+/// `ImGui::SameLine`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn same_line() {
+ unsafe { sys::ImGui_SameLine() }
+}
+/// `ImGui::SameLine`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn same_line_ex(offset_from_start_x: f32, spacing: f32) {
+ unsafe { sys::ImGui_SameLineEx(offset_from_start_x, spacing) }
+}
+/// `ImGui::NewLine`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn new_line() {
+ unsafe { sys::ImGui_NewLine() }
+}
+/// `ImGui::Spacing`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn spacing() {
+ unsafe { sys::ImGui_Spacing() }
+}
+/// `ImGui::Dummy`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn dummy(size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_Dummy(size.into()) }
+}
+/// `ImGui::Indent`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn indent() {
+ unsafe { sys::ImGui_Indent() }
+}
+/// `ImGui::Indent`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn indent_ex(indent_w: f32) {
+ unsafe { sys::ImGui_IndentEx(indent_w) }
+}
+/// `ImGui::Unindent`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn unindent() {
+ unsafe { sys::ImGui_Unindent() }
+}
+/// `ImGui::Unindent`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn unindent_ex(indent_w: f32) {
+ unsafe { sys::ImGui_UnindentEx(indent_w) }
+}
+/// `ImGui::BeginGroup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_group() {
+ unsafe { sys::ImGui_BeginGroup() }
+}
+/// `ImGui::EndGroup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_group() {
+ unsafe { sys::ImGui_EndGroup() }
+}
+/// `ImGui::AlignTextToFramePadding`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn align_text_to_frame_padding() {
+ unsafe { sys::ImGui_AlignTextToFramePadding() }
+}
+/// `ImGui::GetTextLineHeight`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_text_line_height() -> f32 {
+ unsafe { sys::ImGui_GetTextLineHeight() }
+}
+/// `ImGui::GetTextLineHeightWithSpacing`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_text_line_height_with_spacing() -> f32 {
+ unsafe { sys::ImGui_GetTextLineHeightWithSpacing() }
+}
+/// `ImGui::GetFrameHeight`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_frame_height() -> f32 {
+ unsafe { sys::ImGui_GetFrameHeight() }
+}
+/// `ImGui::GetFrameHeightWithSpacing`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_frame_height_with_spacing() -> f32 {
+ unsafe { sys::ImGui_GetFrameHeightWithSpacing() }
+}
+/// `ImGui::PushID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_id(str_id: &str) {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_PushID(__str_id.as_ptr()) }
+}
+/// `ImGui::PushID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_id_str(str_id_begin: &str, str_id_end: &str) {
+ let __str_id_begin = crate::cs(str_id_begin);
+ let __str_id_end = crate::cs(str_id_end);
+ unsafe { sys::ImGui_PushIDStr(__str_id_begin.as_ptr(), __str_id_end.as_ptr()) }
+}
+/// `ImGui::PushID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_id_int(int_id: c_int) {
+ unsafe { sys::ImGui_PushIDInt(int_id) }
+}
+/// `ImGui::PopID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_id() {
+ unsafe { sys::ImGui_PopID() }
+}
+/// `ImGui::GetID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_id(str_id: &str) -> ImGuiID {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_GetID(__str_id.as_ptr()) }
+}
+/// `ImGui::GetID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_id_str(str_id_begin: &str, str_id_end: &str) -> ImGuiID {
+ let __str_id_begin = crate::cs(str_id_begin);
+ let __str_id_end = crate::cs(str_id_end);
+ unsafe { sys::ImGui_GetIDStr(__str_id_begin.as_ptr(), __str_id_end.as_ptr()) }
+}
+/// `ImGui::GetID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_id_int(int_id: c_int) -> ImGuiID {
+ unsafe { sys::ImGui_GetIDInt(int_id) }
+}
+/// `ImGui::TextUnformatted`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_unformatted(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TextUnformatted(__text.as_ptr()) }
+}
+/// `ImGui::TextUnformatted`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_unformatted_ex(text: &str, text_end: Option<&str>) {
+ let __text = crate::cs(text);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImGui_TextUnformattedEx(__text.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+}
+/// `ImGui::Text`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_Text(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::TextColored`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_colored(col: impl Into<ImVec4>, text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TextColored(col.into(), c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::TextDisabled`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_disabled(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TextDisabled(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::TextWrapped`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_wrapped(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TextWrapped(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::LabelText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn label_text(label: &str, text: &str) {
+ let __label = crate::cs(label);
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_LabelText(__label.as_ptr(), c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::BulletText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn bullet_text(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_BulletText(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::SeparatorText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn separator_text(label: &str) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SeparatorText(__label.as_ptr()) }
+}
+/// `ImGui::Button`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn button(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_Button(__label.as_ptr()) }
+}
+/// `ImGui::Button`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn button_ex(label: &str, size: impl Into<ImVec2>) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ButtonEx(__label.as_ptr(), size.into()) }
+}
+/// `ImGui::SmallButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn small_button(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SmallButton(__label.as_ptr()) }
+}
+/// `ImGui::InvisibleButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn invisible_button(str_id: &str, size: impl Into<ImVec2>) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_InvisibleButton(__str_id.as_ptr(), size.into()) }
+}
+/// `ImGui::InvisibleButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn invisible_button_ex(str_id: &str, size: impl Into<ImVec2>, flags: ImGuiButtonFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_InvisibleButtonEx(__str_id.as_ptr(), size.into(), flags) }
+}
+/// `ImGui::ArrowButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn arrow_button(str_id: &str, dir: ImGuiDir) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_ArrowButton(__str_id.as_ptr(), dir) }
+}
+/// `ImGui::Checkbox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn checkbox(label: &str, v: &mut bool) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_Checkbox(__label.as_ptr(), v) }
+}
+/// `ImGui::CheckboxFlags`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn checkbox_flags(label: &str, flags: &mut c_int, flags_value: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CheckboxFlags(__label.as_ptr(), flags, flags_value) }
+}
+/// `ImGui::CheckboxFlags`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn checkbox_flags_u_int_ptr(label: &str, flags: &mut c_uint, flags_value: c_uint) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CheckboxFlagsUIntPtr(__label.as_ptr(), flags, flags_value) }
+}
+/// `ImGui::RadioButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn radio_button(label: &str, active: bool) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_RadioButton(__label.as_ptr(), active) }
+}
+/// `ImGui::RadioButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn radio_button_int_ptr(label: &str, v: &mut c_int, v_button: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_RadioButtonIntPtr(__label.as_ptr(), v, v_button) }
+}
+/// `ImGui::ProgressBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn progress_bar(fraction: f32) {
+ unsafe { sys::ImGui_ProgressBar(fraction) }
+}
+/// `ImGui::ProgressBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn progress_bar_ex(fraction: f32, size_arg: impl Into<ImVec2>, overlay: Option<&str>) {
+ let __overlay = overlay.map(crate::cs);
+ unsafe { sys::ImGui_ProgressBarEx(fraction, size_arg.into(), __overlay.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+}
+/// `ImGui::Bullet`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn bullet() {
+ unsafe { sys::ImGui_Bullet() }
+}
+/// `ImGui::TextLink`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_link(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TextLink(__label.as_ptr()) }
+}
+/// `ImGui::TextLinkOpenURL`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_link_open_url(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TextLinkOpenURL(__label.as_ptr()) }
+}
+/// `ImGui::TextLinkOpenURL`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn text_link_open_url_ex(label: &str, url: Option<&str>) -> bool {
+ let __label = crate::cs(label);
+ let __url = url.map(crate::cs);
+ unsafe { sys::ImGui_TextLinkOpenURLEx(__label.as_ptr(), __url.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+}
+/// `ImGui::Image`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image(tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_Image(tex_ref.into(), image_size.into()) }
+}
+/// `ImGui::Image`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image_ex(tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>, uv0: impl Into<ImVec2>, uv1: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_ImageEx(tex_ref.into(), image_size.into(), uv0.into(), uv1.into()) }
+}
+/// `ImGui::ImageWithBg`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image_with_bg(tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>) {
+ unsafe { sys::ImGui_ImageWithBg(tex_ref.into(), image_size.into()) }
+}
+/// `ImGui::ImageWithBg`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image_with_bg_ex(tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>, uv0: impl Into<ImVec2>, uv1: impl Into<ImVec2>, bg_col: impl Into<ImVec4>, tint_col: impl Into<ImVec4>) {
+ unsafe { sys::ImGui_ImageWithBgEx(tex_ref.into(), image_size.into(), uv0.into(), uv1.into(), bg_col.into(), tint_col.into()) }
+}
+/// `ImGui::ImageButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image_button(str_id: &str, tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_ImageButton(__str_id.as_ptr(), tex_ref.into(), image_size.into()) }
+}
+/// `ImGui::ImageButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn image_button_ex(str_id: &str, tex_ref: impl Into<ImTextureRef>, image_size: impl Into<ImVec2>, uv0: impl Into<ImVec2>, uv1: impl Into<ImVec2>, bg_col: impl Into<ImVec4>, tint_col: impl Into<ImVec4>) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_ImageButtonEx(__str_id.as_ptr(), tex_ref.into(), image_size.into(), uv0.into(), uv1.into(), bg_col.into(), tint_col.into()) }
+}
+/// `ImGui::BeginCombo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_combo(label: &str, preview_value: &str) -> bool {
+ let __label = crate::cs(label);
+ let __preview_value = crate::cs(preview_value);
+ unsafe { sys::ImGui_BeginCombo(__label.as_ptr(), __preview_value.as_ptr()) }
+}
+/// `ImGui::BeginCombo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_combo_ex(label: &str, preview_value: &str, flags: ImGuiComboFlags) -> bool {
+ let __label = crate::cs(label);
+ let __preview_value = crate::cs(preview_value);
+ unsafe { sys::ImGui_BeginComboEx(__label.as_ptr(), __preview_value.as_ptr(), flags) }
+}
+/// `ImGui::EndCombo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_combo() {
+ unsafe { sys::ImGui_EndCombo() }
+}
+/// `ImGui::Combo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn combo(label: &str, current_item: &mut c_int, items: &[&str]) -> bool {
+ let __label = crate::cs(label);
+ let __items_c: Vec<CString> = items.iter().map(|s| crate::cs(s)).collect();
+ let __items_p: Vec<*const c_char> = __items_c.iter().map(|s| s.as_ptr()).collect();
+ unsafe { sys::ImGui_Combo(__label.as_ptr(), current_item, __items_p.as_ptr(), __items_p.len() as c_int) }
+}
+/// `ImGui::Combo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn combo_ex(label: &str, current_item: &mut c_int, items: &[&str], popup_max_height_in_items: c_int) -> bool {
+ let __label = crate::cs(label);
+ let __items_c: Vec<CString> = items.iter().map(|s| crate::cs(s)).collect();
+ let __items_p: Vec<*const c_char> = __items_c.iter().map(|s| s.as_ptr()).collect();
+ unsafe { sys::ImGui_ComboEx(__label.as_ptr(), current_item, __items_p.as_ptr(), __items_p.len() as c_int, popup_max_height_in_items) }
+}
+/// `ImGui::Combo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn combo_str(label: &str, current_item: &mut c_int, items_separated_by_zeros: &str) -> bool {
+ let __label = crate::cs(label);
+ let __items_separated_by_zeros = crate::cs(items_separated_by_zeros);
+ unsafe { sys::ImGui_ComboStr(__label.as_ptr(), current_item, __items_separated_by_zeros.as_ptr()) }
+}
+/// `ImGui::Combo`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn combo_str_ex(label: &str, current_item: &mut c_int, items_separated_by_zeros: &str, popup_max_height_in_items: c_int) -> bool {
+ let __label = crate::cs(label);
+ let __items_separated_by_zeros = crate::cs(items_separated_by_zeros);
+ unsafe { sys::ImGui_ComboStrEx(__label.as_ptr(), current_item, __items_separated_by_zeros.as_ptr(), popup_max_height_in_items) }
+}
+/// `ImGui::DragFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float(label: &str, v: &mut f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragFloat(__label.as_ptr(), v) }
+}
+/// `ImGui::DragFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float_ex(label: &str, v: &mut f32, v_speed: f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragFloatEx(__label.as_ptr(), v, v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float2(label: &str, v: &mut [f32; 2]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragFloat2(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float2_ex(label: &str, v: &mut [f32; 2], v_speed: f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragFloat2Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float3(label: &str, v: &mut [f32; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragFloat3(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float3_ex(label: &str, v: &mut [f32; 3], v_speed: f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragFloat3Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float4(label: &str, v: &mut [f32; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragFloat4(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float4_ex(label: &str, v: &mut [f32; 4], v_speed: f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragFloat4Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragFloatRange2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float_range2(label: &str, v_current_min: &mut f32, v_current_max: &mut f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragFloatRange2(__label.as_ptr(), v_current_min, v_current_max) }
+}
+/// `ImGui::DragFloatRange2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_float_range2_ex(label: &str, v_current_min: &mut f32, v_current_max: &mut f32, v_speed: f32, v_min: f32, v_max: f32, format: &str, format_max: Option<&str>, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ let __format_max = format_max.map(crate::cs);
+ unsafe { sys::ImGui_DragFloatRange2Ex(__label.as_ptr(), v_current_min, v_current_max, v_speed, v_min, v_max, __format.as_ptr(), __format_max.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), flags) }
+}
+/// `ImGui::DragInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int(label: &str, v: &mut c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragInt(__label.as_ptr(), v) }
+}
+/// `ImGui::DragInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int_ex(label: &str, v: &mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragIntEx(__label.as_ptr(), v, v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int2(label: &str, v: &mut [c_int; 2]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragInt2(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int2_ex(label: &str, v: &mut [c_int; 2], v_speed: f32, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragInt2Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int3(label: &str, v: &mut [c_int; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragInt3(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int3_ex(label: &str, v: &mut [c_int; 3], v_speed: f32, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragInt3Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int4(label: &str, v: &mut [c_int; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragInt4(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::DragInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int4_ex(label: &str, v: &mut [c_int; 4], v_speed: f32, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_DragInt4Ex(__label.as_ptr(), v.as_mut_ptr(), v_speed, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::DragIntRange2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int_range2(label: &str, v_current_min: &mut c_int, v_current_max: &mut c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_DragIntRange2(__label.as_ptr(), v_current_min, v_current_max) }
+}
+/// `ImGui::DragIntRange2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn drag_int_range2_ex(label: &str, v_current_min: &mut c_int, v_current_max: &mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: &str, format_max: Option<&str>, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ let __format_max = format_max.map(crate::cs);
+ unsafe { sys::ImGui_DragIntRange2Ex(__label.as_ptr(), v_current_min, v_current_max, v_speed, v_min, v_max, __format.as_ptr(), __format_max.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), flags) }
+}
+/// `ImGui::SliderFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float(label: &str, v: &mut f32, v_min: f32, v_max: f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderFloat(__label.as_ptr(), v, v_min, v_max) }
+}
+/// `ImGui::SliderFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float_ex(label: &str, v: &mut f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderFloatEx(__label.as_ptr(), v, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float2(label: &str, v: &mut [f32; 2], v_min: f32, v_max: f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderFloat2(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float2_ex(label: &str, v: &mut [f32; 2], v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderFloat2Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float3(label: &str, v: &mut [f32; 3], v_min: f32, v_max: f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderFloat3(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float3_ex(label: &str, v: &mut [f32; 3], v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderFloat3Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float4(label: &str, v: &mut [f32; 4], v_min: f32, v_max: f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderFloat4(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_float4_ex(label: &str, v: &mut [f32; 4], v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderFloat4Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderAngle`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_angle(label: &str, v_rad: &mut f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderAngle(__label.as_ptr(), v_rad) }
+}
+/// `ImGui::SliderAngle`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_angle_ex(label: &str, v_rad: &mut f32, v_degrees_min: f32, v_degrees_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderAngleEx(__label.as_ptr(), v_rad, v_degrees_min, v_degrees_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int(label: &str, v: &mut c_int, v_min: c_int, v_max: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderInt(__label.as_ptr(), v, v_min, v_max) }
+}
+/// `ImGui::SliderInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int_ex(label: &str, v: &mut c_int, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderIntEx(__label.as_ptr(), v, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int2(label: &str, v: &mut [c_int; 2], v_min: c_int, v_max: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderInt2(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int2_ex(label: &str, v: &mut [c_int; 2], v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderInt2Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int3(label: &str, v: &mut [c_int; 3], v_min: c_int, v_max: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderInt3(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int3_ex(label: &str, v: &mut [c_int; 3], v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderInt3Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::SliderInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int4(label: &str, v: &mut [c_int; 4], v_min: c_int, v_max: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SliderInt4(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max) }
+}
+/// `ImGui::SliderInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn slider_int4_ex(label: &str, v: &mut [c_int; 4], v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_SliderInt4Ex(__label.as_ptr(), v.as_mut_ptr(), v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::VSliderFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn v_slider_float(label: &str, size: impl Into<ImVec2>, v: &mut f32, v_min: f32, v_max: f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_VSliderFloat(__label.as_ptr(), size.into(), v, v_min, v_max) }
+}
+/// `ImGui::VSliderFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn v_slider_float_ex(label: &str, size: impl Into<ImVec2>, v: &mut f32, v_min: f32, v_max: f32, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_VSliderFloatEx(__label.as_ptr(), size.into(), v, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::VSliderInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn v_slider_int(label: &str, size: impl Into<ImVec2>, v: &mut c_int, v_min: c_int, v_max: c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_VSliderInt(__label.as_ptr(), size.into(), v, v_min, v_max) }
+}
+/// `ImGui::VSliderInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn v_slider_int_ex(label: &str, size: impl Into<ImVec2>, v: &mut c_int, v_min: c_int, v_max: c_int, format: &str, flags: ImGuiSliderFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_VSliderIntEx(__label.as_ptr(), size.into(), v, v_min, v_max, __format.as_ptr(), flags) }
+}
+/// `ImGui::InputText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text(label: &str, buf: &mut String) -> bool {
+ let __label = crate::cs(label);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextEx(__label.as_ptr(), __buf.ptr(), __buf.capacity(), sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text_ex(label: &str, buf: &mut String, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextEx(__label.as_ptr(), __buf.ptr(), __buf.capacity(), flags | sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputTextMultiline`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text_multiline(label: &str, buf: &mut String) -> bool {
+ let __label = crate::cs(label);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextMultilineEx(__label.as_ptr(), __buf.ptr(), __buf.capacity(), ImVec2 { x: 0.0, y: 0.0 }, sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputTextMultiline`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text_multiline_ex(label: &str, buf: &mut String, size: impl Into<ImVec2>, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextMultilineEx(__label.as_ptr(), __buf.ptr(), __buf.capacity(), size.into(), flags | sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputTextWithHint`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text_with_hint(label: &str, hint: &str, buf: &mut String) -> bool {
+ let __label = crate::cs(label);
+ let __hint = crate::cs(hint);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextWithHintEx(__label.as_ptr(), __hint.as_ptr(), __buf.ptr(), __buf.capacity(), sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputTextWithHint`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_text_with_hint_ex(label: &str, hint: &str, buf: &mut String, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __hint = crate::cs(hint);
+ let mut __buf = crate::InputBuf::new(buf);
+ let __r = unsafe { sys::ImGui_InputTextWithHintEx(__label.as_ptr(), __hint.as_ptr(), __buf.ptr(), __buf.capacity(), flags | sys::ImGuiInputTextFlags_CallbackResize, Some(crate::input_text_resize), (&mut __buf) as *mut crate::InputBuf as *mut c_void) };
+ __buf.finish(buf);
+ __r
+}
+/// `ImGui::InputFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float(label: &str, v: &mut f32) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputFloat(__label.as_ptr(), v) }
+}
+/// `ImGui::InputFloat`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float_ex(label: &str, v: &mut f32, step: f32, step_fast: f32, format: &str, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_InputFloatEx(__label.as_ptr(), v, step, step_fast, __format.as_ptr(), flags) }
+}
+/// `ImGui::InputFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float2(label: &str, v: &mut [f32; 2]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputFloat2(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputFloat2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float2_ex(label: &str, v: &mut [f32; 2], format: &str, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_InputFloat2Ex(__label.as_ptr(), v.as_mut_ptr(), __format.as_ptr(), flags) }
+}
+/// `ImGui::InputFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float3(label: &str, v: &mut [f32; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputFloat3(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputFloat3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float3_ex(label: &str, v: &mut [f32; 3], format: &str, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_InputFloat3Ex(__label.as_ptr(), v.as_mut_ptr(), __format.as_ptr(), flags) }
+}
+/// `ImGui::InputFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float4(label: &str, v: &mut [f32; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputFloat4(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_float4_ex(label: &str, v: &mut [f32; 4], format: &str, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_InputFloat4Ex(__label.as_ptr(), v.as_mut_ptr(), __format.as_ptr(), flags) }
+}
+/// `ImGui::InputInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int(label: &str, v: &mut c_int) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt(__label.as_ptr(), v) }
+}
+/// `ImGui::InputInt`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int_ex(label: &str, v: &mut c_int, step: c_int, step_fast: c_int, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputIntEx(__label.as_ptr(), v, step, step_fast, flags) }
+}
+/// `ImGui::InputInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int2(label: &str, v: &mut [c_int; 2]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt2(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputInt2`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int2_ex(label: &str, v: &mut [c_int; 2], flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt2Ex(__label.as_ptr(), v.as_mut_ptr(), flags) }
+}
+/// `ImGui::InputInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int3(label: &str, v: &mut [c_int; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt3(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputInt3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int3_ex(label: &str, v: &mut [c_int; 3], flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt3Ex(__label.as_ptr(), v.as_mut_ptr(), flags) }
+}
+/// `ImGui::InputInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int4(label: &str, v: &mut [c_int; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt4(__label.as_ptr(), v.as_mut_ptr()) }
+}
+/// `ImGui::InputInt4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_int4_ex(label: &str, v: &mut [c_int; 4], flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputInt4Ex(__label.as_ptr(), v.as_mut_ptr(), flags) }
+}
+/// `ImGui::InputDouble`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_double(label: &str, v: &mut f64) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_InputDouble(__label.as_ptr(), v) }
+}
+/// `ImGui::InputDouble`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn input_double_ex(label: &str, v: &mut f64, step: f64, step_fast: f64, format: &str, flags: ImGuiInputTextFlags) -> bool {
+ let __label = crate::cs(label);
+ let __format = crate::cs(format);
+ unsafe { sys::ImGui_InputDoubleEx(__label.as_ptr(), v, step, step_fast, __format.as_ptr(), flags) }
+}
+/// `ImGui::ColorEdit3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_edit3(label: &str, col: &mut [f32; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorEdit3(__label.as_ptr(), col.as_mut_ptr()) }
+}
+/// `ImGui::ColorEdit3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_edit3_ex(label: &str, col: &mut [f32; 3], flags: ImGuiColorEditFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorEdit3Ex(__label.as_ptr(), col.as_mut_ptr(), flags) }
+}
+/// `ImGui::ColorEdit4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_edit4(label: &str, col: &mut [f32; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorEdit4(__label.as_ptr(), col.as_mut_ptr()) }
+}
+/// `ImGui::ColorEdit4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_edit4_ex(label: &str, col: &mut [f32; 4], flags: ImGuiColorEditFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorEdit4Ex(__label.as_ptr(), col.as_mut_ptr(), flags) }
+}
+/// `ImGui::ColorPicker3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_picker3(label: &str, col: &mut [f32; 3]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorPicker3(__label.as_ptr(), col.as_mut_ptr()) }
+}
+/// `ImGui::ColorPicker3`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_picker3_ex(label: &str, col: &mut [f32; 3], flags: ImGuiColorEditFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorPicker3Ex(__label.as_ptr(), col.as_mut_ptr(), flags) }
+}
+/// `ImGui::ColorPicker4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_picker4(label: &str, col: &mut [f32; 4]) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorPicker4(__label.as_ptr(), col.as_mut_ptr()) }
+}
+/// `ImGui::ColorPicker4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_picker4_ex(label: &str, col: &mut [f32; 4], flags: ImGuiColorEditFlags, ref_col: Option<&f32>) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_ColorPicker4Ex(__label.as_ptr(), col.as_mut_ptr(), flags, ref_col.map_or(core::ptr::null(), |r| r as *const f32)) }
+}
+/// `ImGui::ColorButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_button(desc_id: &str, col: impl Into<ImVec4>) -> bool {
+ let __desc_id = crate::cs(desc_id);
+ unsafe { sys::ImGui_ColorButton(__desc_id.as_ptr(), col.into()) }
+}
+/// `ImGui::ColorButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_button_ex(desc_id: &str, col: impl Into<ImVec4>, flags: ImGuiColorEditFlags, size: impl Into<ImVec2>) -> bool {
+ let __desc_id = crate::cs(desc_id);
+ unsafe { sys::ImGui_ColorButtonEx(__desc_id.as_ptr(), col.into(), flags, size.into()) }
+}
+/// `ImGui::TreeNode`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TreeNode(__label.as_ptr()) }
+}
+/// `ImGui::TreeNode`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_str(str_id: &str, text: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TreeNodeStr(__str_id.as_ptr(), c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::TreeNodeEx`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_ex(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TreeNodeEx(__label.as_ptr()) }
+}
+/// `ImGui::TreeNodeEx`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_ex_ex(label: &str, flags: ImGuiTreeNodeFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TreeNodeExEx(__label.as_ptr(), flags) }
+}
+/// `ImGui::TreeNodeEx`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_ex_str(str_id: &str, flags: ImGuiTreeNodeFlags, text: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_TreeNodeExStr(__str_id.as_ptr(), flags, c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::TreePush`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_push(str_id: &str) {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_TreePush(__str_id.as_ptr()) }
+}
+/// `ImGui::TreePop`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_pop() {
+ unsafe { sys::ImGui_TreePop() }
+}
+/// `ImGui::GetTreeNodeToLabelSpacing`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_tree_node_to_label_spacing() -> f32 {
+ unsafe { sys::ImGui_GetTreeNodeToLabelSpacing() }
+}
+/// `ImGui::CollapsingHeader`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn collapsing_header(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CollapsingHeader(__label.as_ptr()) }
+}
+/// `ImGui::CollapsingHeader`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn collapsing_header_ex(label: &str, flags: ImGuiTreeNodeFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CollapsingHeaderEx(__label.as_ptr(), flags) }
+}
+/// `ImGui::CollapsingHeader`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn collapsing_header_bool_ptr(label: &str, p_visible: &mut bool) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CollapsingHeaderBoolPtr(__label.as_ptr(), p_visible) }
+}
+/// `ImGui::CollapsingHeader`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn collapsing_header_bool_ptr_ex(label: &str, p_visible: &mut bool, flags: ImGuiTreeNodeFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_CollapsingHeaderBoolPtrEx(__label.as_ptr(), p_visible, flags) }
+}
+/// `ImGui::SetNextItemOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_open(is_open: bool) {
+ unsafe { sys::ImGui_SetNextItemOpen(is_open) }
+}
+/// `ImGui::SetNextItemOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_open_ex(is_open: bool, cond: ImGuiCond) {
+ unsafe { sys::ImGui_SetNextItemOpenEx(is_open, cond) }
+}
+/// `ImGui::SetNextItemStorageID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_storage_id(storage_id: ImGuiID) {
+ unsafe { sys::ImGui_SetNextItemStorageID(storage_id) }
+}
+/// `ImGui::TreeNodeGetOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_get_open(storage_id: ImGuiID) -> bool {
+ unsafe { sys::ImGui_TreeNodeGetOpen(storage_id) }
+}
+/// `ImGui::TreeNodeGetOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tree_node_get_open_ex(storage_id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool {
+ unsafe { sys::ImGui_TreeNodeGetOpenEx(storage_id, flags) }
+}
+/// `ImGui::Selectable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn selectable(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_Selectable(__label.as_ptr()) }
+}
+/// `ImGui::Selectable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn selectable_ex(label: &str, selected: bool, flags: ImGuiSelectableFlags, size: impl Into<ImVec2>) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SelectableEx(__label.as_ptr(), selected, flags, size.into()) }
+}
+/// `ImGui::Selectable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn selectable_bool_ptr(label: &str, p_selected: &mut bool) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SelectableBoolPtr(__label.as_ptr(), p_selected) }
+}
+/// `ImGui::Selectable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn selectable_bool_ptr_ex(label: &str, p_selected: &mut bool, flags: ImGuiSelectableFlags, size: impl Into<ImVec2>) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_SelectableBoolPtrEx(__label.as_ptr(), p_selected, flags, size.into()) }
+}
+/// `ImGui::BeginMultiSelect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_multi_select(flags: ImGuiMultiSelectFlags) -> Option<&'static mut ImGuiMultiSelectIO> {
+ unsafe { sys::ImGui_BeginMultiSelect(flags).as_mut() }
+}
+/// `ImGui::BeginMultiSelect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_multi_select_ex(flags: ImGuiMultiSelectFlags, selection_size: c_int, items_count: c_int) -> Option<&'static mut ImGuiMultiSelectIO> {
+ unsafe { sys::ImGui_BeginMultiSelectEx(flags, selection_size, items_count).as_mut() }
+}
+/// `ImGui::EndMultiSelect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_multi_select() -> Option<&'static mut ImGuiMultiSelectIO> {
+ unsafe { sys::ImGui_EndMultiSelect().as_mut() }
+}
+/// `ImGui::SetNextItemSelectionUserData`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_selection_user_data(selection_user_data: ImGuiSelectionUserData) {
+ unsafe { sys::ImGui_SetNextItemSelectionUserData(selection_user_data) }
+}
+/// `ImGui::IsItemToggledSelection`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_toggled_selection() -> bool {
+ unsafe { sys::ImGui_IsItemToggledSelection() }
+}
+/// `ImGui::BeginListBox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_list_box(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginListBox(__label.as_ptr()) }
+}
+/// `ImGui::BeginListBox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_list_box_ex(label: &str, size: impl Into<ImVec2>) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginListBoxEx(__label.as_ptr(), size.into()) }
+}
+/// `ImGui::EndListBox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_list_box() {
+ unsafe { sys::ImGui_EndListBox() }
+}
+/// `ImGui::ListBox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn list_box(label: &str, current_item: &mut c_int, items: &[&str]) -> bool {
+ let __label = crate::cs(label);
+ let __items_c: Vec<CString> = items.iter().map(|s| crate::cs(s)).collect();
+ let __items_p: Vec<*const c_char> = __items_c.iter().map(|s| s.as_ptr()).collect();
+ unsafe { sys::ImGui_ListBox(__label.as_ptr(), current_item, __items_p.as_ptr(), __items_p.len() as c_int) }
+}
+/// `ImGui::ListBox`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn list_box_ex(label: &str, current_item: &mut c_int, items: &[&str], height_in_items: c_int) -> bool {
+ let __label = crate::cs(label);
+ let __items_c: Vec<CString> = items.iter().map(|s| crate::cs(s)).collect();
+ let __items_p: Vec<*const c_char> = __items_c.iter().map(|s| s.as_ptr()).collect();
+ unsafe { sys::ImGui_ListBoxEx(__label.as_ptr(), current_item, __items_p.as_ptr(), __items_p.len() as c_int, height_in_items) }
+}
+/// `ImGui::PlotLines`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn plot_lines(label: &str, values: &[f32]) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_PlotLines(__label.as_ptr(), values.as_ptr(), values.len() as c_int) }
+}
+/// `ImGui::PlotLines`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn plot_lines_ex(label: &str, values: &[f32], values_offset: c_int, overlay_text: Option<&str>, scale_min: f32, scale_max: f32, graph_size: impl Into<ImVec2>, stride: c_int) {
+ let __label = crate::cs(label);
+ let __overlay_text = overlay_text.map(crate::cs);
+ unsafe { sys::ImGui_PlotLinesEx(__label.as_ptr(), values.as_ptr(), values.len() as c_int, values_offset, __overlay_text.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), scale_min, scale_max, graph_size.into(), stride) }
+}
+/// `ImGui::PlotHistogram`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn plot_histogram(label: &str, values: &[f32]) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_PlotHistogram(__label.as_ptr(), values.as_ptr(), values.len() as c_int) }
+}
+/// `ImGui::PlotHistogram`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn plot_histogram_ex(label: &str, values: &[f32], values_offset: c_int, overlay_text: Option<&str>, scale_min: f32, scale_max: f32, graph_size: impl Into<ImVec2>, stride: c_int) {
+ let __label = crate::cs(label);
+ let __overlay_text = overlay_text.map(crate::cs);
+ unsafe { sys::ImGui_PlotHistogramEx(__label.as_ptr(), values.as_ptr(), values.len() as c_int, values_offset, __overlay_text.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), scale_min, scale_max, graph_size.into(), stride) }
+}
+/// `ImGui::Value`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn value(prefix: &str, b: bool) {
+ let __prefix = crate::cs(prefix);
+ unsafe { sys::ImGui_Value(__prefix.as_ptr(), b) }
+}
+/// `ImGui::Value`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn value_int(prefix: &str, v: c_int) {
+ let __prefix = crate::cs(prefix);
+ unsafe { sys::ImGui_ValueInt(__prefix.as_ptr(), v) }
+}
+/// `ImGui::Value`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn value_u_int(prefix: &str, v: c_uint) {
+ let __prefix = crate::cs(prefix);
+ unsafe { sys::ImGui_ValueUInt(__prefix.as_ptr(), v) }
+}
+/// `ImGui::Value`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn value_float(prefix: &str, v: f32) {
+ let __prefix = crate::cs(prefix);
+ unsafe { sys::ImGui_ValueFloat(__prefix.as_ptr(), v) }
+}
+/// `ImGui::Value`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn value_float_ex(prefix: &str, v: f32, float_format: Option<&str>) {
+ let __prefix = crate::cs(prefix);
+ let __float_format = float_format.map(crate::cs);
+ unsafe { sys::ImGui_ValueFloatEx(__prefix.as_ptr(), v, __float_format.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+}
+/// `ImGui::BeginMenuBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_menu_bar() -> bool {
+ unsafe { sys::ImGui_BeginMenuBar() }
+}
+/// `ImGui::EndMenuBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_menu_bar() {
+ unsafe { sys::ImGui_EndMenuBar() }
+}
+/// `ImGui::BeginMainMenuBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_main_menu_bar() -> bool {
+ unsafe { sys::ImGui_BeginMainMenuBar() }
+}
+/// `ImGui::EndMainMenuBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_main_menu_bar() {
+ unsafe { sys::ImGui_EndMainMenuBar() }
+}
+/// `ImGui::BeginMenu`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_menu(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginMenu(__label.as_ptr()) }
+}
+/// `ImGui::BeginMenu`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_menu_ex(label: &str, enabled: bool) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginMenuEx(__label.as_ptr(), enabled) }
+}
+/// `ImGui::EndMenu`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_menu() {
+ unsafe { sys::ImGui_EndMenu() }
+}
+/// `ImGui::MenuItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn menu_item(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_MenuItem(__label.as_ptr()) }
+}
+/// `ImGui::MenuItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn menu_item_ex(label: &str, shortcut: Option<&str>, selected: bool, enabled: bool) -> bool {
+ let __label = crate::cs(label);
+ let __shortcut = shortcut.map(crate::cs);
+ unsafe { sys::ImGui_MenuItemEx(__label.as_ptr(), __shortcut.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), selected, enabled) }
+}
+/// `ImGui::MenuItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn menu_item_bool_ptr(label: &str, shortcut: &str, p_selected: &mut bool) -> bool {
+ let __label = crate::cs(label);
+ let __shortcut = crate::cs(shortcut);
+ unsafe { sys::ImGui_MenuItemBoolPtr(__label.as_ptr(), __shortcut.as_ptr(), p_selected) }
+}
+/// `ImGui::MenuItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn menu_item_bool_ptr_ex(label: &str, shortcut: &str, p_selected: &mut bool, enabled: bool) -> bool {
+ let __label = crate::cs(label);
+ let __shortcut = crate::cs(shortcut);
+ unsafe { sys::ImGui_MenuItemBoolPtrEx(__label.as_ptr(), __shortcut.as_ptr(), p_selected, enabled) }
+}
+/// `ImGui::BeginTooltip`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_tooltip() -> bool {
+ unsafe { sys::ImGui_BeginTooltip() }
+}
+/// `ImGui::EndTooltip`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_tooltip() {
+ unsafe { sys::ImGui_EndTooltip() }
+}
+/// `ImGui::SetTooltip`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_tooltip(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_SetTooltip(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::BeginItemTooltip`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_item_tooltip() -> bool {
+ unsafe { sys::ImGui_BeginItemTooltip() }
+}
+/// `ImGui::SetItemTooltip`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_item_tooltip(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_SetItemTooltip(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::BeginPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup(str_id: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginPopup(__str_id.as_ptr()) }
+}
+/// `ImGui::BeginPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_ex(str_id: &str, flags: ImGuiWindowFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginPopupEx(__str_id.as_ptr(), flags) }
+}
+/// `ImGui::BeginPopupModal`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_modal(name: &str) -> bool {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_BeginPopupModal(__name.as_ptr()) }
+}
+/// `ImGui::BeginPopupModal`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_modal_ex(name: &str, p_open: Option<&mut bool>, flags: ImGuiWindowFlags) -> bool {
+ let __name = crate::cs(name);
+ unsafe { sys::ImGui_BeginPopupModalEx(__name.as_ptr(), p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool), flags) }
+}
+/// `ImGui::EndPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_popup() {
+ unsafe { sys::ImGui_EndPopup() }
+}
+/// `ImGui::OpenPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup(str_id: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_OpenPopup(__str_id.as_ptr()) }
+}
+/// `ImGui::OpenPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup_ex(str_id: &str, popup_flags: ImGuiPopupFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_OpenPopupEx(__str_id.as_ptr(), popup_flags) }
+}
+/// `ImGui::OpenPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup_id(id: ImGuiID) -> bool {
+ unsafe { sys::ImGui_OpenPopupID(id) }
+}
+/// `ImGui::OpenPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup_id_ex(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool {
+ unsafe { sys::ImGui_OpenPopupIDEx(id, popup_flags) }
+}
+/// `ImGui::OpenPopupOnItemClick`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup_on_item_click() -> bool {
+ unsafe { sys::ImGui_OpenPopupOnItemClick() }
+}
+/// `ImGui::OpenPopupOnItemClick`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn open_popup_on_item_click_ex(str_id: Option<&str>, popup_flags: ImGuiPopupFlags) -> bool {
+ let __str_id = str_id.map(crate::cs);
+ unsafe { sys::ImGui_OpenPopupOnItemClickEx(__str_id.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), popup_flags) }
+}
+/// `ImGui::CloseCurrentPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn close_current_popup() {
+ unsafe { sys::ImGui_CloseCurrentPopup() }
+}
+/// `ImGui::BeginPopupContextItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_item() -> bool {
+ unsafe { sys::ImGui_BeginPopupContextItem() }
+}
+/// `ImGui::BeginPopupContextItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_item_ex(str_id: Option<&str>, popup_flags: ImGuiPopupFlags) -> bool {
+ let __str_id = str_id.map(crate::cs);
+ unsafe { sys::ImGui_BeginPopupContextItemEx(__str_id.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), popup_flags) }
+}
+/// `ImGui::BeginPopupContextWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_window() -> bool {
+ unsafe { sys::ImGui_BeginPopupContextWindow() }
+}
+/// `ImGui::BeginPopupContextWindow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_window_ex(str_id: Option<&str>, popup_flags: ImGuiPopupFlags) -> bool {
+ let __str_id = str_id.map(crate::cs);
+ unsafe { sys::ImGui_BeginPopupContextWindowEx(__str_id.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), popup_flags) }
+}
+/// `ImGui::BeginPopupContextVoid`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_void() -> bool {
+ unsafe { sys::ImGui_BeginPopupContextVoid() }
+}
+/// `ImGui::BeginPopupContextVoid`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_popup_context_void_ex(str_id: Option<&str>, popup_flags: ImGuiPopupFlags) -> bool {
+ let __str_id = str_id.map(crate::cs);
+ unsafe { sys::ImGui_BeginPopupContextVoidEx(__str_id.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), popup_flags) }
+}
+/// `ImGui::IsPopupOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_popup_open(str_id: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_IsPopupOpen(__str_id.as_ptr()) }
+}
+/// `ImGui::IsPopupOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_popup_open_ex(str_id: &str, flags: ImGuiPopupFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_IsPopupOpenEx(__str_id.as_ptr(), flags) }
+}
+/// `ImGui::BeginTable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_table(str_id: &str, columns: c_int) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginTable(__str_id.as_ptr(), columns) }
+}
+/// `ImGui::BeginTable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_table_ex(str_id: &str, columns: c_int, flags: ImGuiTableFlags, outer_size: impl Into<ImVec2>, inner_width: f32) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginTableEx(__str_id.as_ptr(), columns, flags, outer_size.into(), inner_width) }
+}
+/// `ImGui::EndTable`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_table() {
+ unsafe { sys::ImGui_EndTable() }
+}
+/// `ImGui::TableNextRow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_next_row() {
+ unsafe { sys::ImGui_TableNextRow() }
+}
+/// `ImGui::TableNextRow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_next_row_ex(row_flags: ImGuiTableRowFlags, min_row_height: f32) {
+ unsafe { sys::ImGui_TableNextRowEx(row_flags, min_row_height) }
+}
+/// `ImGui::TableNextColumn`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_next_column() -> bool {
+ unsafe { sys::ImGui_TableNextColumn() }
+}
+/// `ImGui::TableSetColumnIndex`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_set_column_index(column_n: c_int) -> bool {
+ unsafe { sys::ImGui_TableSetColumnIndex(column_n) }
+}
+/// `ImGui::TableSetupColumn`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_setup_column(label: &str) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TableSetupColumn(__label.as_ptr()) }
+}
+/// `ImGui::TableSetupColumn`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_setup_column_ex(label: &str, flags: ImGuiTableColumnFlags, init_width_or_weight: f32, user_data: ImGuiID) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TableSetupColumnEx(__label.as_ptr(), flags, init_width_or_weight, user_data) }
+}
+/// `ImGui::TableSetupScrollFreeze`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_setup_scroll_freeze(cols: c_int, rows: c_int) {
+ unsafe { sys::ImGui_TableSetupScrollFreeze(cols, rows) }
+}
+/// `ImGui::TableHeader`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_header(label: &str) {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TableHeader(__label.as_ptr()) }
+}
+/// `ImGui::TableHeadersRow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_headers_row() {
+ unsafe { sys::ImGui_TableHeadersRow() }
+}
+/// `ImGui::TableAngledHeadersRow`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_angled_headers_row() {
+ unsafe { sys::ImGui_TableAngledHeadersRow() }
+}
+/// `ImGui::TableGetSortSpecs`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_sort_specs() -> Option<&'static mut ImGuiTableSortSpecs> {
+ unsafe { sys::ImGui_TableGetSortSpecs().as_mut() }
+}
+/// `ImGui::TableGetColumnCount`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_count() -> c_int {
+ unsafe { sys::ImGui_TableGetColumnCount() }
+}
+/// `ImGui::TableGetColumnIndex`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_index() -> c_int {
+ unsafe { sys::ImGui_TableGetColumnIndex() }
+}
+/// `ImGui::TableGetRowIndex`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_row_index() -> c_int {
+ unsafe { sys::ImGui_TableGetRowIndex() }
+}
+/// `ImGui::TableGetColumnName`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_name() -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_TableGetColumnName()) }
+}
+/// `ImGui::TableGetColumnName`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_name_ex(column_n: c_int) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_TableGetColumnNameEx(column_n)) }
+}
+/// `ImGui::TableGetColumnFlags`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_flags() -> ImGuiTableColumnFlags {
+ unsafe { sys::ImGui_TableGetColumnFlags() }
+}
+/// `ImGui::TableGetColumnFlags`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_column_flags_ex(column_n: c_int) -> ImGuiTableColumnFlags {
+ unsafe { sys::ImGui_TableGetColumnFlagsEx(column_n) }
+}
+/// `ImGui::TableSetColumnEnabled`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_set_column_enabled(column_n: c_int, v: bool) {
+ unsafe { sys::ImGui_TableSetColumnEnabled(column_n, v) }
+}
+/// `ImGui::TableGetHoveredColumn`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_get_hovered_column() -> c_int {
+ unsafe { sys::ImGui_TableGetHoveredColumn() }
+}
+/// `ImGui::TableSetBgColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_set_bg_color(target: ImGuiTableBgTarget, color: ImU32) {
+ unsafe { sys::ImGui_TableSetBgColor(target, color) }
+}
+/// `ImGui::TableSetBgColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn table_set_bg_color_ex(target: ImGuiTableBgTarget, color: ImU32, column_n: c_int) {
+ unsafe { sys::ImGui_TableSetBgColorEx(target, color, column_n) }
+}
+/// `ImGui::Columns`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn columns() {
+ unsafe { sys::ImGui_Columns() }
+}
+/// `ImGui::Columns`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn columns_ex(count: c_int, id: Option<&str>, borders: bool) {
+ let __id = id.map(crate::cs);
+ unsafe { sys::ImGui_ColumnsEx(count, __id.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), borders) }
+}
+/// `ImGui::NextColumn`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn next_column() {
+ unsafe { sys::ImGui_NextColumn() }
+}
+/// `ImGui::GetColumnIndex`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_column_index() -> c_int {
+ unsafe { sys::ImGui_GetColumnIndex() }
+}
+/// `ImGui::GetColumnWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_column_width() -> f32 {
+ unsafe { sys::ImGui_GetColumnWidth() }
+}
+/// `ImGui::GetColumnWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_column_width_ex(column_index: c_int) -> f32 {
+ unsafe { sys::ImGui_GetColumnWidthEx(column_index) }
+}
+/// `ImGui::SetColumnWidth`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_column_width(column_index: c_int, width: f32) {
+ unsafe { sys::ImGui_SetColumnWidth(column_index, width) }
+}
+/// `ImGui::GetColumnOffset`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_column_offset() -> f32 {
+ unsafe { sys::ImGui_GetColumnOffset() }
+}
+/// `ImGui::GetColumnOffset`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_column_offset_ex(column_index: c_int) -> f32 {
+ unsafe { sys::ImGui_GetColumnOffsetEx(column_index) }
+}
+/// `ImGui::SetColumnOffset`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_column_offset(column_index: c_int, offset_x: f32) {
+ unsafe { sys::ImGui_SetColumnOffset(column_index, offset_x) }
+}
+/// `ImGui::GetColumnsCount`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_columns_count() -> c_int {
+ unsafe { sys::ImGui_GetColumnsCount() }
+}
+/// `ImGui::BeginTabBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_tab_bar(str_id: &str) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginTabBar(__str_id.as_ptr()) }
+}
+/// `ImGui::BeginTabBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_tab_bar_ex(str_id: &str, flags: ImGuiTabBarFlags) -> bool {
+ let __str_id = crate::cs(str_id);
+ unsafe { sys::ImGui_BeginTabBarEx(__str_id.as_ptr(), flags) }
+}
+/// `ImGui::EndTabBar`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_tab_bar() {
+ unsafe { sys::ImGui_EndTabBar() }
+}
+/// `ImGui::BeginTabItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_tab_item(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginTabItem(__label.as_ptr()) }
+}
+/// `ImGui::BeginTabItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_tab_item_ex(label: &str, p_open: Option<&mut bool>, flags: ImGuiTabItemFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_BeginTabItemEx(__label.as_ptr(), p_open.map_or(core::ptr::null_mut(), |r| r as *mut bool), flags) }
+}
+/// `ImGui::EndTabItem`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_tab_item() {
+ unsafe { sys::ImGui_EndTabItem() }
+}
+/// `ImGui::TabItemButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tab_item_button(label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TabItemButton(__label.as_ptr()) }
+}
+/// `ImGui::TabItemButton`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn tab_item_button_ex(label: &str, flags: ImGuiTabItemFlags) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGui_TabItemButtonEx(__label.as_ptr(), flags) }
+}
+/// `ImGui::SetTabItemClosed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_tab_item_closed(tab_or_docked_window_label: &str) {
+ let __tab_or_docked_window_label = crate::cs(tab_or_docked_window_label);
+ unsafe { sys::ImGui_SetTabItemClosed(__tab_or_docked_window_label.as_ptr()) }
+}
+/// `ImGui::LogToTTY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_tty() {
+ unsafe { sys::ImGui_LogToTTY() }
+}
+/// `ImGui::LogToTTY`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_tty_ex(auto_open_depth: c_int) {
+ unsafe { sys::ImGui_LogToTTYEx(auto_open_depth) }
+}
+/// `ImGui::LogToFile`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_file() {
+ unsafe { sys::ImGui_LogToFile() }
+}
+/// `ImGui::LogToFile`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_file_ex(auto_open_depth: c_int, filename: Option<&str>) {
+ let __filename = filename.map(crate::cs);
+ unsafe { sys::ImGui_LogToFileEx(auto_open_depth, __filename.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+}
+/// `ImGui::LogToClipboard`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_clipboard() {
+ unsafe { sys::ImGui_LogToClipboard() }
+}
+/// `ImGui::LogToClipboard`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_to_clipboard_ex(auto_open_depth: c_int) {
+ unsafe { sys::ImGui_LogToClipboardEx(auto_open_depth) }
+}
+/// `ImGui::LogFinish`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_finish() {
+ unsafe { sys::ImGui_LogFinish() }
+}
+/// `ImGui::LogButtons`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_buttons() {
+ unsafe { sys::ImGui_LogButtons() }
+}
+/// `ImGui::LogText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn log_text(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_LogText(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::BeginDragDropSource`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_drag_drop_source() -> bool {
+ unsafe { sys::ImGui_BeginDragDropSource() }
+}
+/// `ImGui::BeginDragDropSource`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_drag_drop_source_ex(flags: ImGuiDragDropFlags) -> bool {
+ unsafe { sys::ImGui_BeginDragDropSourceEx(flags) }
+}
+/// `ImGui::SetDragDropPayload`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_drag_drop_payload(r#type: &str, data: &[u8]) -> bool {
+ let __type = crate::cs(r#type);
+ unsafe { sys::ImGui_SetDragDropPayload(__type.as_ptr(), data.as_ptr() as *const c_void, data.len()) }
+}
+/// `ImGui::SetDragDropPayload`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_drag_drop_payload_ex(r#type: &str, data: &[u8], cond: ImGuiCond) -> bool {
+ let __type = crate::cs(r#type);
+ unsafe { sys::ImGui_SetDragDropPayloadEx(__type.as_ptr(), data.as_ptr() as *const c_void, data.len(), cond) }
+}
+/// `ImGui::EndDragDropSource`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_drag_drop_source() {
+ unsafe { sys::ImGui_EndDragDropSource() }
+}
+/// `ImGui::BeginDragDropTarget`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_drag_drop_target() -> bool {
+ unsafe { sys::ImGui_BeginDragDropTarget() }
+}
+/// `ImGui::AcceptDragDropPayload`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn accept_drag_drop_payload(r#type: &str) -> Option<&'static ImGuiPayload> {
+ let __type = crate::cs(r#type);
+ unsafe { sys::ImGui_AcceptDragDropPayload(__type.as_ptr()).as_ref() }
+}
+/// `ImGui::AcceptDragDropPayload`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn accept_drag_drop_payload_ex(r#type: &str, flags: ImGuiDragDropFlags) -> Option<&'static ImGuiPayload> {
+ let __type = crate::cs(r#type);
+ unsafe { sys::ImGui_AcceptDragDropPayloadEx(__type.as_ptr(), flags).as_ref() }
+}
+/// `ImGui::EndDragDropTarget`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_drag_drop_target() {
+ unsafe { sys::ImGui_EndDragDropTarget() }
+}
+/// `ImGui::GetDragDropPayload`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_drag_drop_payload() -> Option<&'static ImGuiPayload> {
+ unsafe { sys::ImGui_GetDragDropPayload().as_ref() }
+}
+/// `ImGui::BeginDisabled`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_disabled() {
+ unsafe { sys::ImGui_BeginDisabled() }
+}
+/// `ImGui::BeginDisabled`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn begin_disabled_ex(disabled: bool) {
+ unsafe { sys::ImGui_BeginDisabledEx(disabled) }
+}
+/// `ImGui::EndDisabled`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn end_disabled() {
+ unsafe { sys::ImGui_EndDisabled() }
+}
+/// `ImGui::PushClipRect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn push_clip_rect(clip_rect_min: impl Into<ImVec2>, clip_rect_max: impl Into<ImVec2>, intersect_with_current_clip_rect: bool) {
+ unsafe { sys::ImGui_PushClipRect(clip_rect_min.into(), clip_rect_max.into(), intersect_with_current_clip_rect) }
+}
+/// `ImGui::PopClipRect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn pop_clip_rect() {
+ unsafe { sys::ImGui_PopClipRect() }
+}
+/// `ImGui::SetItemDefaultFocus`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_item_default_focus() {
+ unsafe { sys::ImGui_SetItemDefaultFocus() }
+}
+/// `ImGui::SetKeyboardFocusHere`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_keyboard_focus_here() {
+ unsafe { sys::ImGui_SetKeyboardFocusHere() }
+}
+/// `ImGui::SetKeyboardFocusHere`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_keyboard_focus_here_ex(offset: c_int) {
+ unsafe { sys::ImGui_SetKeyboardFocusHereEx(offset) }
+}
+/// `ImGui::SetNavCursorVisible`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_nav_cursor_visible(visible: bool) {
+ unsafe { sys::ImGui_SetNavCursorVisible(visible) }
+}
+/// `ImGui::SetNextItemAllowOverlap`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_allow_overlap() {
+ unsafe { sys::ImGui_SetNextItemAllowOverlap() }
+}
+/// `ImGui::IsItemHovered`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_hovered() -> bool {
+ unsafe { sys::ImGui_IsItemHovered() }
+}
+/// `ImGui::IsItemHovered`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_hovered_ex(flags: ImGuiHoveredFlags) -> bool {
+ unsafe { sys::ImGui_IsItemHoveredEx(flags) }
+}
+/// `ImGui::IsItemActive`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_active() -> bool {
+ unsafe { sys::ImGui_IsItemActive() }
+}
+/// `ImGui::IsItemFocused`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_focused() -> bool {
+ unsafe { sys::ImGui_IsItemFocused() }
+}
+/// `ImGui::IsItemClicked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_clicked() -> bool {
+ unsafe { sys::ImGui_IsItemClicked() }
+}
+/// `ImGui::IsItemClicked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_clicked_ex(mouse_button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsItemClickedEx(mouse_button) }
+}
+/// `ImGui::IsItemVisible`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_visible() -> bool {
+ unsafe { sys::ImGui_IsItemVisible() }
+}
+/// `ImGui::IsItemEdited`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_edited() -> bool {
+ unsafe { sys::ImGui_IsItemEdited() }
+}
+/// `ImGui::IsItemActivated`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_activated() -> bool {
+ unsafe { sys::ImGui_IsItemActivated() }
+}
+/// `ImGui::IsItemDeactivated`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_deactivated() -> bool {
+ unsafe { sys::ImGui_IsItemDeactivated() }
+}
+/// `ImGui::IsItemDeactivatedAfterEdit`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_deactivated_after_edit() -> bool {
+ unsafe { sys::ImGui_IsItemDeactivatedAfterEdit() }
+}
+/// `ImGui::IsItemToggledOpen`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_item_toggled_open() -> bool {
+ unsafe { sys::ImGui_IsItemToggledOpen() }
+}
+/// `ImGui::IsAnyItemHovered`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_any_item_hovered() -> bool {
+ unsafe { sys::ImGui_IsAnyItemHovered() }
+}
+/// `ImGui::IsAnyItemActive`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_any_item_active() -> bool {
+ unsafe { sys::ImGui_IsAnyItemActive() }
+}
+/// `ImGui::IsAnyItemFocused`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_any_item_focused() -> bool {
+ unsafe { sys::ImGui_IsAnyItemFocused() }
+}
+/// `ImGui::GetItemID`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_id() -> ImGuiID {
+ unsafe { sys::ImGui_GetItemID() }
+}
+/// `ImGui::GetItemRectMin`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_rect_min() -> ImVec2 {
+ unsafe { sys::ImGui_GetItemRectMin() }
+}
+/// `ImGui::GetItemRectMax`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_rect_max() -> ImVec2 {
+ unsafe { sys::ImGui_GetItemRectMax() }
+}
+/// `ImGui::GetItemRectSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_rect_size() -> ImVec2 {
+ unsafe { sys::ImGui_GetItemRectSize() }
+}
+/// `ImGui::GetItemFlags`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_flags() -> ImGuiItemFlags {
+ unsafe { sys::ImGui_GetItemFlags() }
+}
+/// `ImGui::GetItemClickedCountWithSingleClickDelay`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_clicked_count_with_single_click_delay() -> c_int {
+ unsafe { sys::ImGui_GetItemClickedCountWithSingleClickDelay() }
+}
+/// `ImGui::GetItemClickedCountWithSingleClickDelay`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_item_clicked_count_with_single_click_delay_ex(mouse_button: ImGuiMouseButton, delay: f32) -> c_int {
+ unsafe { sys::ImGui_GetItemClickedCountWithSingleClickDelayEx(mouse_button, delay) }
+}
+/// `ImGui::GetMainViewport`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_main_viewport() -> Option<&'static mut ImGuiViewport> {
+ unsafe { sys::ImGui_GetMainViewport().as_mut() }
+}
+/// `ImGui::GetBackgroundDrawList`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_background_draw_list() -> Option<&'static mut ImDrawList> {
+ unsafe { sys::ImGui_GetBackgroundDrawList().as_mut() }
+}
+/// `ImGui::GetForegroundDrawList`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_foreground_draw_list() -> Option<&'static mut ImDrawList> {
+ unsafe { sys::ImGui_GetForegroundDrawList().as_mut() }
+}
+/// `ImGui::IsRectVisible`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_rect_visible(size: impl Into<ImVec2>) -> bool {
+ unsafe { sys::ImGui_IsRectVisible(size.into()) }
+}
+/// `ImGui::IsRectVisible`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_rect_visible_vec2(rect_min: impl Into<ImVec2>, rect_max: impl Into<ImVec2>) -> bool {
+ unsafe { sys::ImGui_IsRectVisibleVec2(rect_min.into(), rect_max.into()) }
+}
+/// `ImGui::GetTime`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_time() -> f64 {
+ unsafe { sys::ImGui_GetTime() }
+}
+/// `ImGui::GetFrameCount`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_frame_count() -> c_int {
+ unsafe { sys::ImGui_GetFrameCount() }
+}
+/// `ImGui::GetDrawListSharedData`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_draw_list_shared_data() -> Option<&'static mut ImDrawListSharedData> {
+ unsafe { sys::ImGui_GetDrawListSharedData().as_mut() }
+}
+/// `ImGui::GetStyleColorName`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_style_color_name(idx: ImGuiCol) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_GetStyleColorName(idx)) }
+}
+/// `ImGui::SetStateStorage`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_state_storage(storage: &mut ImGuiStorage) {
+ unsafe { sys::ImGui_SetStateStorage(storage as *mut ImGuiStorage) }
+}
+/// `ImGui::GetStateStorage`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_state_storage() -> Option<&'static mut ImGuiStorage> {
+ unsafe { sys::ImGui_GetStateStorage().as_mut() }
+}
+/// `ImGui::CalcTextSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn calc_text_size(text: &str) -> ImVec2 {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_CalcTextSize(__text.as_ptr()) }
+}
+/// `ImGui::CalcTextSize`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn calc_text_size_ex(text: &str, text_end: Option<&str>, hide_text_after_double_hash: bool, wrap_width: f32) -> ImVec2 {
+ let __text = crate::cs(text);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImGui_CalcTextSizeEx(__text.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), hide_text_after_double_hash, wrap_width) }
+}
+/// `ImGui::ColorConvertU32ToFloat4`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_convert_u32_to_float4(r#in: ImU32) -> ImVec4 {
+ unsafe { sys::ImGui_ColorConvertU32ToFloat4(r#in) }
+}
+/// `ImGui::ColorConvertFloat4ToU32`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_convert_float4_to_u32(r#in: impl Into<ImVec4>) -> ImU32 {
+ unsafe { sys::ImGui_ColorConvertFloat4ToU32(r#in.into()) }
+}
+/// `ImGui::ColorConvertRGBtoHSV`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_convert_rgb_to_hsv(r: f32, g: f32, b: f32, out_h: &mut f32, out_s: &mut f32, out_v: &mut f32) {
+ unsafe { sys::ImGui_ColorConvertRGBtoHSV(r, g, b, out_h, out_s, out_v) }
+}
+/// `ImGui::ColorConvertHSVtoRGB`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn color_convert_hsv_to_rgb(h: f32, s: f32, v: f32, out_r: &mut f32, out_g: &mut f32, out_b: &mut f32) {
+ unsafe { sys::ImGui_ColorConvertHSVtoRGB(h, s, v, out_r, out_g, out_b) }
+}
+/// `ImGui::IsKeyDown`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_key_down(key: ImGuiKey) -> bool {
+ unsafe { sys::ImGui_IsKeyDown(key) }
+}
+/// `ImGui::IsKeyPressed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_key_pressed(key: ImGuiKey) -> bool {
+ unsafe { sys::ImGui_IsKeyPressed(key) }
+}
+/// `ImGui::IsKeyPressed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_key_pressed_ex(key: ImGuiKey, repeat: bool) -> bool {
+ unsafe { sys::ImGui_IsKeyPressedEx(key, repeat) }
+}
+/// `ImGui::IsKeyReleased`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_key_released(key: ImGuiKey) -> bool {
+ unsafe { sys::ImGui_IsKeyReleased(key) }
+}
+/// `ImGui::IsKeyChordPressed`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_key_chord_pressed(key_chord: ImGuiKeyChord) -> bool {
+ unsafe { sys::ImGui_IsKeyChordPressed(key_chord) }
+}
+/// `ImGui::GetKeyPressedAmount`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_key_pressed_amount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> c_int {
+ unsafe { sys::ImGui_GetKeyPressedAmount(key, repeat_delay, rate) }
+}
+/// `ImGui::GetKeyName`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_key_name(key: ImGuiKey) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_GetKeyName(key)) }
+}
+/// `ImGui::SetNextFrameWantCaptureKeyboard`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_frame_want_capture_keyboard(want_capture_keyboard: bool) {
+ unsafe { sys::ImGui_SetNextFrameWantCaptureKeyboard(want_capture_keyboard) }
+}
+/// `ImGui::Shortcut`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn shortcut(key_chord: ImGuiKeyChord) -> bool {
+ unsafe { sys::ImGui_Shortcut(key_chord) }
+}
+/// `ImGui::Shortcut`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn shortcut_ex(key_chord: ImGuiKeyChord, flags: ImGuiInputFlags) -> bool {
+ unsafe { sys::ImGui_ShortcutEx(key_chord, flags) }
+}
+/// `ImGui::SetNextItemShortcut`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_shortcut(key_chord: ImGuiKeyChord) {
+ unsafe { sys::ImGui_SetNextItemShortcut(key_chord) }
+}
+/// `ImGui::SetNextItemShortcut`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_item_shortcut_ex(key_chord: ImGuiKeyChord, flags: ImGuiInputFlags) {
+ unsafe { sys::ImGui_SetNextItemShortcutEx(key_chord, flags) }
+}
+/// `ImGui::SetItemKeyOwner`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_item_key_owner(key: ImGuiKey) -> bool {
+ unsafe { sys::ImGui_SetItemKeyOwner(key) }
+}
+/// `ImGui::IsMouseDown`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_down(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseDown(button) }
+}
+/// `ImGui::IsMouseClicked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_clicked(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseClicked(button) }
+}
+/// `ImGui::IsMouseClicked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_clicked_ex(button: ImGuiMouseButton, repeat: bool) -> bool {
+ unsafe { sys::ImGui_IsMouseClickedEx(button, repeat) }
+}
+/// `ImGui::IsMouseReleased`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_released(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseReleased(button) }
+}
+/// `ImGui::IsMouseDoubleClicked`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_double_clicked(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseDoubleClicked(button) }
+}
+/// `ImGui::IsMouseReleasedWithDelay`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_released_with_delay(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseReleasedWithDelay(button) }
+}
+/// `ImGui::IsMouseReleasedWithDelay`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_released_with_delay_ex(button: ImGuiMouseButton, delay: f32) -> bool {
+ unsafe { sys::ImGui_IsMouseReleasedWithDelayEx(button, delay) }
+}
+/// `ImGui::GetMouseClickedCount`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_clicked_count(button: ImGuiMouseButton) -> c_int {
+ unsafe { sys::ImGui_GetMouseClickedCount(button) }
+}
+/// `ImGui::IsMouseHoveringRect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_hovering_rect(r_min: impl Into<ImVec2>, r_max: impl Into<ImVec2>) -> bool {
+ unsafe { sys::ImGui_IsMouseHoveringRect(r_min.into(), r_max.into()) }
+}
+/// `ImGui::IsMouseHoveringRect`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_hovering_rect_ex(r_min: impl Into<ImVec2>, r_max: impl Into<ImVec2>, clip: bool) -> bool {
+ unsafe { sys::ImGui_IsMouseHoveringRectEx(r_min.into(), r_max.into(), clip) }
+}
+/// `ImGui::IsMousePosValid`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_pos_valid() -> bool {
+ unsafe { sys::ImGui_IsMousePosValid() }
+}
+/// `ImGui::IsMousePosValid`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_pos_valid_ex(mouse_pos: Option<&ImVec2>) -> bool {
+ unsafe { sys::ImGui_IsMousePosValidEx(mouse_pos.map_or(core::ptr::null(), |r| r as *const ImVec2)) }
+}
+/// `ImGui::IsAnyMouseDown`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_any_mouse_down() -> bool {
+ unsafe { sys::ImGui_IsAnyMouseDown() }
+}
+/// `ImGui::GetMousePos`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_pos() -> ImVec2 {
+ unsafe { sys::ImGui_GetMousePos() }
+}
+/// `ImGui::GetMousePosOnOpeningCurrentPopup`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_pos_on_opening_current_popup() -> ImVec2 {
+ unsafe { sys::ImGui_GetMousePosOnOpeningCurrentPopup() }
+}
+/// `ImGui::IsMouseDragging`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_dragging(button: ImGuiMouseButton) -> bool {
+ unsafe { sys::ImGui_IsMouseDragging(button) }
+}
+/// `ImGui::IsMouseDragging`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn is_mouse_dragging_ex(button: ImGuiMouseButton, lock_threshold: f32) -> bool {
+ unsafe { sys::ImGui_IsMouseDraggingEx(button, lock_threshold) }
+}
+/// `ImGui::GetMouseDragDelta`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_drag_delta() -> ImVec2 {
+ unsafe { sys::ImGui_GetMouseDragDelta() }
+}
+/// `ImGui::GetMouseDragDelta`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_drag_delta_ex(button: ImGuiMouseButton, lock_threshold: f32) -> ImVec2 {
+ unsafe { sys::ImGui_GetMouseDragDeltaEx(button, lock_threshold) }
+}
+/// `ImGui::ResetMouseDragDelta`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn reset_mouse_drag_delta() {
+ unsafe { sys::ImGui_ResetMouseDragDelta() }
+}
+/// `ImGui::ResetMouseDragDelta`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn reset_mouse_drag_delta_ex(button: ImGuiMouseButton) {
+ unsafe { sys::ImGui_ResetMouseDragDeltaEx(button) }
+}
+/// `ImGui::GetMouseCursor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_mouse_cursor() -> ImGuiMouseCursor {
+ unsafe { sys::ImGui_GetMouseCursor() }
+}
+/// `ImGui::SetMouseCursor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_mouse_cursor(cursor_type: ImGuiMouseCursor) {
+ unsafe { sys::ImGui_SetMouseCursor(cursor_type) }
+}
+/// `ImGui::SetNextFrameWantCaptureMouse`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_next_frame_want_capture_mouse(want_capture_mouse: bool) {
+ unsafe { sys::ImGui_SetNextFrameWantCaptureMouse(want_capture_mouse) }
+}
+/// `ImGui::GetClipboardText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn get_clipboard_text() -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_GetClipboardText()) }
+}
+/// `ImGui::SetClipboardText`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn set_clipboard_text(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_SetClipboardText(__text.as_ptr()) }
+}
+/// `ImGui::LoadIniSettingsFromDisk`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn load_ini_settings_from_disk(ini_filename: &str) {
+ let __ini_filename = crate::cs(ini_filename);
+ unsafe { sys::ImGui_LoadIniSettingsFromDisk(__ini_filename.as_ptr()) }
+}
+/// `ImGui::LoadIniSettingsFromMemory`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn load_ini_settings_from_memory(ini_data: &str) {
+ let __ini_data = crate::cs(ini_data);
+ unsafe { sys::ImGui_LoadIniSettingsFromMemory(__ini_data.as_ptr()) }
+}
+/// `ImGui::LoadIniSettingsFromMemory`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn load_ini_settings_from_memory_ex(ini_data: &str, ini_size: usize) {
+ let __ini_data = crate::cs(ini_data);
+ unsafe { sys::ImGui_LoadIniSettingsFromMemoryEx(__ini_data.as_ptr(), ini_size) }
+}
+/// `ImGui::SaveIniSettingsToDisk`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn save_ini_settings_to_disk(ini_filename: &str) {
+ let __ini_filename = crate::cs(ini_filename);
+ unsafe { sys::ImGui_SaveIniSettingsToDisk(__ini_filename.as_ptr()) }
+}
+/// `ImGui::SaveIniSettingsToMemory`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn save_ini_settings_to_memory() -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_SaveIniSettingsToMemory()) }
+}
+/// `ImGui::SaveIniSettingsToMemory`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn save_ini_settings_to_memory_ex(out_ini_size: Option<&mut usize>) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGui_SaveIniSettingsToMemoryEx(out_ini_size.map_or(core::ptr::null_mut(), |r| r as *mut usize))) }
+}
+/// `ImGui::DebugTextEncoding`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn debug_text_encoding(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_DebugTextEncoding(__text.as_ptr()) }
+}
+/// `ImGui::DebugFlashStyleColor`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn debug_flash_style_color(idx: ImGuiCol) {
+ unsafe { sys::ImGui_DebugFlashStyleColor(idx) }
+}
+/// `ImGui::DebugStartItemPicker`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn debug_start_item_picker() {
+ unsafe { sys::ImGui_DebugStartItemPicker() }
+}
+/// `ImGui::DebugCheckVersionAndDataLayout`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn debug_check_version_and_data_layout(version_str: &str, sz_io: usize, sz_style: usize, sz_vec2: usize, sz_vec4: usize, sz_drawvert: usize, sz_drawidx: usize) -> bool {
+ let __version_str = crate::cs(version_str);
+ unsafe { sys::ImGui_DebugCheckVersionAndDataLayout(__version_str.as_ptr(), sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx) }
+}
+/// `ImGui::DebugLog`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn debug_log(text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGui_DebugLog(c"%s".as_ptr(), __text.as_ptr()) }
+}
+/// `ImGui::MemAlloc`
+#[allow(clippy::too_many_arguments, unused_unsafe)]
+pub fn mem_alloc(size: usize) -> *mut c_void {
+ unsafe { sys::ImGui_MemAlloc(size) }
+}
+impl ImVec2 {
+ /// `ImVec2::ImVec2`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImVec2> {
+ unsafe { crate::Owned::from_raw(sys::ImVec2_New()) }
+ }
+ /// `ImVec2::ImVec2`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_float(_x: f32, _y: f32) -> crate::Owned<ImVec2> {
+ unsafe { crate::Owned::from_raw(sys::ImVec2_NewFloat(_x, _y)) }
+ }
+}
+impl crate::Delete for ImVec2 {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImVec2_Delete(p) } }
+}
+impl ImVec4 {
+ /// `ImVec4::ImVec4`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImVec4> {
+ unsafe { crate::Owned::from_raw(sys::ImVec4_New()) }
+ }
+ /// `ImVec4::ImVec4`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_float(_x: f32, _y: f32, _z: f32, _w: f32) -> crate::Owned<ImVec4> {
+ unsafe { crate::Owned::from_raw(sys::ImVec4_NewFloat(_x, _y, _z, _w)) }
+ }
+}
+impl crate::Delete for ImVec4 {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImVec4_Delete(p) } }
+}
+impl ImTextureRef {
+ /// `ImTextureRef::ImTextureRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImTextureRef> {
+ unsafe { crate::Owned::from_raw(sys::ImTextureRef_New()) }
+ }
+ /// `ImTextureRef::ImTextureRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_texture_id(tex_id: ImTextureID) -> crate::Owned<ImTextureRef> {
+ unsafe { crate::Owned::from_raw(sys::ImTextureRef_NewTextureID(tex_id)) }
+ }
+ /// `ImTextureRef::GetTexID`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_tex_id(&self) -> ImTextureID {
+ unsafe { sys::ImTextureRef_GetTexID(self as *const Self) }
+ }
+}
+impl crate::Delete for ImTextureRef {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImTextureRef_Delete(p) } }
+}
+impl ImGuiTableSortSpecs {
+ /// `ImGuiTableSortSpecs::ImGuiTableSortSpecs`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiTableSortSpecs> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiTableSortSpecs_New()) }
+ }
+}
+impl crate::Delete for ImGuiTableSortSpecs {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiTableSortSpecs_Delete(p) } }
+}
+impl ImGuiTableColumnSortSpecs {
+ /// `ImGuiTableColumnSortSpecs::ImGuiTableColumnSortSpecs`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiTableColumnSortSpecs> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiTableColumnSortSpecs_New()) }
+ }
+}
+impl crate::Delete for ImGuiTableColumnSortSpecs {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiTableColumnSortSpecs_Delete(p) } }
+}
+impl ImGuiStyle {
+ /// `ImGuiStyle::ImGuiStyle`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiStyle> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiStyle_New()) }
+ }
+ /// `ImGuiStyle::ScaleAllSizes`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn scale_all_sizes(&mut self, scale_factor: f32) {
+ unsafe { sys::ImGuiStyle_ScaleAllSizes(self as *mut Self, scale_factor) }
+ }
+}
+impl crate::Delete for ImGuiStyle {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiStyle_Delete(p) } }
+}
+impl ImGuiKeyData {
+ /// `ImGuiKeyData::ImGuiKeyData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiKeyData> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiKeyData_New()) }
+ }
+}
+impl crate::Delete for ImGuiKeyData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiKeyData_Delete(p) } }
+}
+impl ImGuiIO {
+ /// `ImGuiIO::ImGuiIO`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiIO> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiIO_New()) }
+ }
+ /// `ImGuiIO::AddKeyEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_key_event(&mut self, key: ImGuiKey, down: bool) {
+ unsafe { sys::ImGuiIO_AddKeyEvent(self as *mut Self, key, down) }
+ }
+ /// `ImGuiIO::AddKeyAnalogEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_key_analog_event(&mut self, key: ImGuiKey, down: bool, v: f32) {
+ unsafe { sys::ImGuiIO_AddKeyAnalogEvent(self as *mut Self, key, down, v) }
+ }
+ /// `ImGuiIO::AddMousePosEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_mouse_pos_event(&mut self, x: f32, y: f32) {
+ unsafe { sys::ImGuiIO_AddMousePosEvent(self as *mut Self, x, y) }
+ }
+ /// `ImGuiIO::AddMouseButtonEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_mouse_button_event(&mut self, button: c_int, down: bool) {
+ unsafe { sys::ImGuiIO_AddMouseButtonEvent(self as *mut Self, button, down) }
+ }
+ /// `ImGuiIO::AddMouseWheelEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_mouse_wheel_event(&mut self, wheel_x: f32, wheel_y: f32) {
+ unsafe { sys::ImGuiIO_AddMouseWheelEvent(self as *mut Self, wheel_x, wheel_y) }
+ }
+ /// `ImGuiIO::AddMouseSourceEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_mouse_source_event(&mut self, source: ImGuiMouseSource) {
+ unsafe { sys::ImGuiIO_AddMouseSourceEvent(self as *mut Self, source) }
+ }
+ /// `ImGuiIO::AddFocusEvent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_focus_event(&mut self, focused: bool) {
+ unsafe { sys::ImGuiIO_AddFocusEvent(self as *mut Self, focused) }
+ }
+ /// `ImGuiIO::AddInputCharacter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_input_character(&mut self, c: c_uint) {
+ unsafe { sys::ImGuiIO_AddInputCharacter(self as *mut Self, c) }
+ }
+ /// `ImGuiIO::AddInputCharacterUTF16`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_input_character_utf16(&mut self, c: ImWchar16) {
+ unsafe { sys::ImGuiIO_AddInputCharacterUTF16(self as *mut Self, c) }
+ }
+ /// `ImGuiIO::AddInputCharactersUTF8`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_input_characters_utf8(&mut self, str: &str) {
+ let __str = crate::cs(str);
+ unsafe { sys::ImGuiIO_AddInputCharactersUTF8(self as *mut Self, __str.as_ptr()) }
+ }
+ /// `ImGuiIO::SetKeyEventNativeData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_key_event_native_data(&mut self, key: ImGuiKey, native_keycode: c_int, native_scancode: c_int) {
+ unsafe { sys::ImGuiIO_SetKeyEventNativeData(self as *mut Self, key, native_keycode, native_scancode) }
+ }
+ /// `ImGuiIO::SetKeyEventNativeData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_key_event_native_data_ex(&mut self, key: ImGuiKey, native_keycode: c_int, native_scancode: c_int, native_legacy_index: c_int) {
+ unsafe { sys::ImGuiIO_SetKeyEventNativeDataEx(self as *mut Self, key, native_keycode, native_scancode, native_legacy_index) }
+ }
+ /// `ImGuiIO::SetAppAcceptingEvents`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_app_accepting_events(&mut self, accepting_events: bool) {
+ unsafe { sys::ImGuiIO_SetAppAcceptingEvents(self as *mut Self, accepting_events) }
+ }
+ /// `ImGuiIO::ClearEventsQueue`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_events_queue(&mut self) {
+ unsafe { sys::ImGuiIO_ClearEventsQueue(self as *mut Self) }
+ }
+ /// `ImGuiIO::ClearInputKeys`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_input_keys(&mut self) {
+ unsafe { sys::ImGuiIO_ClearInputKeys(self as *mut Self) }
+ }
+ /// `ImGuiIO::ClearInputMouse`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_input_mouse(&mut self) {
+ unsafe { sys::ImGuiIO_ClearInputMouse(self as *mut Self) }
+ }
+}
+impl crate::Delete for ImGuiIO {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiIO_Delete(p) } }
+}
+impl ImGuiInputTextCallbackData {
+ /// `ImGuiInputTextCallbackData::ImGuiInputTextCallbackData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiInputTextCallbackData> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiInputTextCallbackData_New()) }
+ }
+ /// `ImGuiInputTextCallbackData::DeleteChars`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn delete_chars(&mut self, pos: c_int, bytes_count: c_int) {
+ unsafe { sys::ImGuiInputTextCallbackData_DeleteChars(self as *mut Self, pos, bytes_count) }
+ }
+ /// `ImGuiInputTextCallbackData::InsertChars`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn insert_chars(&mut self, pos: c_int, text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGuiInputTextCallbackData_InsertChars(self as *mut Self, pos, __text.as_ptr()) }
+ }
+ /// `ImGuiInputTextCallbackData::InsertChars`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn insert_chars_ex(&mut self, pos: c_int, text: &str, text_end: Option<&str>) {
+ let __text = crate::cs(text);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImGuiInputTextCallbackData_InsertCharsEx(self as *mut Self, pos, __text.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+ }
+ /// `ImGuiInputTextCallbackData::SelectAll`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn select_all(&mut self) {
+ unsafe { sys::ImGuiInputTextCallbackData_SelectAll(self as *mut Self) }
+ }
+ /// `ImGuiInputTextCallbackData::SetSelection`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_selection(&mut self, s: c_int, e: c_int) {
+ unsafe { sys::ImGuiInputTextCallbackData_SetSelection(self as *mut Self, s, e) }
+ }
+ /// `ImGuiInputTextCallbackData::ClearSelection`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_selection(&mut self) {
+ unsafe { sys::ImGuiInputTextCallbackData_ClearSelection(self as *mut Self) }
+ }
+ /// `ImGuiInputTextCallbackData::HasSelection`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn has_selection(&self) -> bool {
+ unsafe { sys::ImGuiInputTextCallbackData_HasSelection(self as *const Self) }
+ }
+}
+impl crate::Delete for ImGuiInputTextCallbackData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiInputTextCallbackData_Delete(p) } }
+}
+impl ImGuiSizeCallbackData {
+ /// `ImGuiSizeCallbackData::ImGuiSizeCallbackData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiSizeCallbackData> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiSizeCallbackData_New()) }
+ }
+}
+impl crate::Delete for ImGuiSizeCallbackData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiSizeCallbackData_Delete(p) } }
+}
+impl ImGuiPayload {
+ /// `ImGuiPayload::ImGuiPayload`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiPayload> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiPayload_New()) }
+ }
+ /// `ImGuiPayload::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImGuiPayload_Clear(self as *mut Self) }
+ }
+ /// `ImGuiPayload::IsDataType`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_data_type(&self, r#type: &str) -> bool {
+ let __type = crate::cs(r#type);
+ unsafe { sys::ImGuiPayload_IsDataType(self as *const Self, __type.as_ptr()) }
+ }
+ /// `ImGuiPayload::IsPreview`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_preview(&self) -> bool {
+ unsafe { sys::ImGuiPayload_IsPreview(self as *const Self) }
+ }
+ /// `ImGuiPayload::IsDelivery`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_delivery(&self) -> bool {
+ unsafe { sys::ImGuiPayload_IsDelivery(self as *const Self) }
+ }
+}
+impl crate::Delete for ImGuiPayload {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiPayload_Delete(p) } }
+}
+impl ImGuiOnceUponAFrame {
+ /// `ImGuiOnceUponAFrame::ImGuiOnceUponAFrame`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiOnceUponAFrame> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiOnceUponAFrame_New()) }
+ }
+}
+impl crate::Delete for ImGuiOnceUponAFrame {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiOnceUponAFrame_Delete(p) } }
+}
+impl ImGuiTextFilter {
+ /// `ImGuiTextFilter::ImGuiTextFilter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiTextFilter> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiTextFilter_New()) }
+ }
+ /// `ImGuiTextFilter::ImGuiTextFilter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_ex(default_filter: &str) -> crate::Owned<ImGuiTextFilter> {
+ let __default_filter = crate::cs(default_filter);
+ unsafe { crate::Owned::from_raw(sys::ImGuiTextFilter_NewEx(__default_filter.as_ptr())) }
+ }
+ /// `ImGuiTextFilter::PassFilter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn pass_filter(&self, text: &str) -> bool {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGuiTextFilter_PassFilter(self as *const Self, __text.as_ptr()) }
+ }
+ /// `ImGuiTextFilter::PassFilter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn pass_filter_ex(&self, text: &str, text_end: Option<&str>) -> bool {
+ let __text = crate::cs(text);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImGuiTextFilter_PassFilterEx(self as *const Self, __text.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+ }
+ /// `ImGuiTextFilter::Build`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn build(&mut self) {
+ unsafe { sys::ImGuiTextFilter_Build(self as *mut Self) }
+ }
+ /// `ImGuiTextFilter::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImGuiTextFilter_Clear(self as *mut Self) }
+ }
+ /// `ImGuiTextFilter::IsActive`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_active(&self) -> bool {
+ unsafe { sys::ImGuiTextFilter_IsActive(self as *const Self) }
+ }
+ /// `ImGuiTextFilter::Draw`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn draw(&mut self) -> bool {
+ unsafe { sys::ImGuiTextFilter_Draw(self as *mut Self) }
+ }
+ /// `ImGuiTextFilter::Draw`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn draw_ex(&mut self, label: &str) -> bool {
+ let __label = crate::cs(label);
+ unsafe { sys::ImGuiTextFilter_DrawEx(self as *mut Self, __label.as_ptr()) }
+ }
+ /// `ImGuiTextFilter::DrawWithHint`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn draw_with_hint(&mut self) -> bool {
+ unsafe { sys::ImGuiTextFilter_DrawWithHint(self as *mut Self) }
+ }
+ /// `ImGuiTextFilter::DrawWithHint`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn draw_with_hint_ex(&mut self, label: &str, hint: &str) -> bool {
+ let __label = crate::cs(label);
+ let __hint = crate::cs(hint);
+ unsafe { sys::ImGuiTextFilter_DrawWithHintEx(self as *mut Self, __label.as_ptr(), __hint.as_ptr()) }
+ }
+}
+impl crate::Delete for ImGuiTextFilter {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiTextFilter_Delete(p) } }
+}
+impl ImGuiTextBuffer {
+ /// `ImGuiTextBuffer::ImGuiTextBuffer`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiTextBuffer> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiTextBuffer_New()) }
+ }
+ /// `ImGuiTextBuffer::begin`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn begin(&self) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGuiTextBuffer_begin(self as *const Self)) }
+ }
+ /// `ImGuiTextBuffer::end`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn end(&self) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGuiTextBuffer_end(self as *const Self)) }
+ }
+ /// `ImGuiTextBuffer::size`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn size(&self) -> c_int {
+ unsafe { sys::ImGuiTextBuffer_size(self as *const Self) }
+ }
+ /// `ImGuiTextBuffer::empty`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn empty(&self) -> bool {
+ unsafe { sys::ImGuiTextBuffer_empty(self as *const Self) }
+ }
+ /// `ImGuiTextBuffer::clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImGuiTextBuffer_clear(self as *mut Self) }
+ }
+ /// `ImGuiTextBuffer::resize`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn resize(&mut self, size: c_int) {
+ unsafe { sys::ImGuiTextBuffer_resize(self as *mut Self, size) }
+ }
+ /// `ImGuiTextBuffer::reserve`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn reserve(&mut self, capacity: c_int) {
+ unsafe { sys::ImGuiTextBuffer_reserve(self as *mut Self, capacity) }
+ }
+ /// `ImGuiTextBuffer::c_str`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn c_str(&self) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImGuiTextBuffer_c_str(self as *const Self)) }
+ }
+ /// `ImGuiTextBuffer::append`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn append(&mut self, str: &str) {
+ let __str = crate::cs(str);
+ unsafe { sys::ImGuiTextBuffer_append(self as *mut Self, __str.as_ptr()) }
+ }
+ /// `ImGuiTextBuffer::append`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn append_ex(&mut self, str: &str, str_end: Option<&str>) {
+ let __str = crate::cs(str);
+ let __str_end = str_end.map(crate::cs);
+ unsafe { sys::ImGuiTextBuffer_appendEx(self as *mut Self, __str.as_ptr(), __str_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+ }
+ /// `ImGuiTextBuffer::appendf`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn appendf(&mut self, text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImGuiTextBuffer_appendf(self as *mut Self, c"%s".as_ptr(), __text.as_ptr()) }
+ }
+}
+impl crate::Delete for ImGuiTextBuffer {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiTextBuffer_Delete(p) } }
+}
+impl ImGuiStoragePair {
+ /// `ImGuiStoragePair::ImGuiStoragePair`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new(_key: ImGuiID, _val: c_int) -> crate::Owned<ImGuiStoragePair> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiStoragePair_New(_key, _val)) }
+ }
+ /// `ImGuiStoragePair::ImGuiStoragePair`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_float(_key: ImGuiID, _val: f32) -> crate::Owned<ImGuiStoragePair> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiStoragePair_NewFloat(_key, _val)) }
+ }
+}
+impl crate::Delete for ImGuiStoragePair {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiStoragePair_Delete(p) } }
+}
+impl ImGuiStorage {
+ /// `ImGuiStorage::ImGuiStorage`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiStorage> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiStorage_New()) }
+ }
+ /// `ImGuiStorage::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImGuiStorage_Clear(self as *mut Self) }
+ }
+ /// `ImGuiStorage::GetInt`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_int(&self, key: ImGuiID) -> c_int {
+ unsafe { sys::ImGuiStorage_GetInt(self as *const Self, key) }
+ }
+ /// `ImGuiStorage::GetInt`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_int_ex(&self, key: ImGuiID, default_val: c_int) -> c_int {
+ unsafe { sys::ImGuiStorage_GetIntEx(self as *const Self, key, default_val) }
+ }
+ /// `ImGuiStorage::SetInt`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_int(&mut self, key: ImGuiID, val: c_int) {
+ unsafe { sys::ImGuiStorage_SetInt(self as *mut Self, key, val) }
+ }
+ /// `ImGuiStorage::GetBool`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_bool(&self, key: ImGuiID) -> bool {
+ unsafe { sys::ImGuiStorage_GetBool(self as *const Self, key) }
+ }
+ /// `ImGuiStorage::GetBool`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_bool_ex(&self, key: ImGuiID, default_val: bool) -> bool {
+ unsafe { sys::ImGuiStorage_GetBoolEx(self as *const Self, key, default_val) }
+ }
+ /// `ImGuiStorage::SetBool`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_bool(&mut self, key: ImGuiID, val: bool) {
+ unsafe { sys::ImGuiStorage_SetBool(self as *mut Self, key, val) }
+ }
+ /// `ImGuiStorage::GetFloat`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_float(&self, key: ImGuiID) -> f32 {
+ unsafe { sys::ImGuiStorage_GetFloat(self as *const Self, key) }
+ }
+ /// `ImGuiStorage::GetFloat`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_float_ex(&self, key: ImGuiID, default_val: f32) -> f32 {
+ unsafe { sys::ImGuiStorage_GetFloatEx(self as *const Self, key, default_val) }
+ }
+ /// `ImGuiStorage::SetFloat`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_float(&mut self, key: ImGuiID, val: f32) {
+ unsafe { sys::ImGuiStorage_SetFloat(self as *mut Self, key, val) }
+ }
+ /// `ImGuiStorage::GetVoidPtr`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_void_ptr(&self, key: ImGuiID) -> *mut c_void {
+ unsafe { sys::ImGuiStorage_GetVoidPtr(self as *const Self, key) }
+ }
+ /// `ImGuiStorage::GetIntRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_int_ref(&mut self, key: ImGuiID) -> *mut c_int {
+ unsafe { sys::ImGuiStorage_GetIntRef(self as *mut Self, key) }
+ }
+ /// `ImGuiStorage::GetIntRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_int_ref_ex(&mut self, key: ImGuiID, default_val: c_int) -> *mut c_int {
+ unsafe { sys::ImGuiStorage_GetIntRefEx(self as *mut Self, key, default_val) }
+ }
+ /// `ImGuiStorage::GetBoolRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_bool_ref(&mut self, key: ImGuiID) -> *mut bool {
+ unsafe { sys::ImGuiStorage_GetBoolRef(self as *mut Self, key) }
+ }
+ /// `ImGuiStorage::GetBoolRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_bool_ref_ex(&mut self, key: ImGuiID, default_val: bool) -> *mut bool {
+ unsafe { sys::ImGuiStorage_GetBoolRefEx(self as *mut Self, key, default_val) }
+ }
+ /// `ImGuiStorage::GetFloatRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_float_ref(&mut self, key: ImGuiID) -> *mut f32 {
+ unsafe { sys::ImGuiStorage_GetFloatRef(self as *mut Self, key) }
+ }
+ /// `ImGuiStorage::GetFloatRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_float_ref_ex(&mut self, key: ImGuiID, default_val: f32) -> *mut f32 {
+ unsafe { sys::ImGuiStorage_GetFloatRefEx(self as *mut Self, key, default_val) }
+ }
+ /// `ImGuiStorage::GetVoidPtrRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_void_ptr_ref(&mut self, key: ImGuiID) -> *mut *mut c_void {
+ unsafe { sys::ImGuiStorage_GetVoidPtrRef(self as *mut Self, key) }
+ }
+ /// `ImGuiStorage::GetVoidPtrRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_void_ptr_ref_ex(&mut self, key: ImGuiID) -> *mut *mut c_void {
+ unsafe { sys::ImGuiStorage_GetVoidPtrRefEx(self as *mut Self, key, core::ptr::null_mut()) }
+ }
+ /// `ImGuiStorage::BuildSortByKey`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn build_sort_by_key(&mut self) {
+ unsafe { sys::ImGuiStorage_BuildSortByKey(self as *mut Self) }
+ }
+ /// `ImGuiStorage::SetAllInt`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_all_int(&mut self, val: c_int) {
+ unsafe { sys::ImGuiStorage_SetAllInt(self as *mut Self, val) }
+ }
+}
+impl crate::Delete for ImGuiStorage {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiStorage_Delete(p) } }
+}
+impl ImGuiListClipper {
+ /// `ImGuiListClipper::ImGuiListClipper`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiListClipper> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiListClipper_New()) }
+ }
+ /// `ImGuiListClipper::Begin`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn begin(&mut self, items_count: c_int) {
+ unsafe { sys::ImGuiListClipper_Begin(self as *mut Self, items_count) }
+ }
+ /// `ImGuiListClipper::Begin`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn begin_ex(&mut self, items_count: c_int, items_height: f32) {
+ unsafe { sys::ImGuiListClipper_BeginEx(self as *mut Self, items_count, items_height) }
+ }
+ /// `ImGuiListClipper::End`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn end(&mut self) {
+ unsafe { sys::ImGuiListClipper_End(self as *mut Self) }
+ }
+ /// `ImGuiListClipper::Step`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn step(&mut self) -> bool {
+ unsafe { sys::ImGuiListClipper_Step(self as *mut Self) }
+ }
+ /// `ImGuiListClipper::IncludeItemByIndex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn include_item_by_index(&mut self, item_index: c_int) {
+ unsafe { sys::ImGuiListClipper_IncludeItemByIndex(self as *mut Self, item_index) }
+ }
+ /// `ImGuiListClipper::IncludeItemsByIndex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn include_items_by_index(&mut self, item_begin: c_int, item_end: c_int) {
+ unsafe { sys::ImGuiListClipper_IncludeItemsByIndex(self as *mut Self, item_begin, item_end) }
+ }
+ /// `ImGuiListClipper::SeekCursorForItem`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn seek_cursor_for_item(&mut self, item_index: c_int) {
+ unsafe { sys::ImGuiListClipper_SeekCursorForItem(self as *mut Self, item_index) }
+ }
+}
+impl crate::Delete for ImGuiListClipper {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiListClipper_Delete(p) } }
+}
+impl ImColor {
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_New()) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_float(r: f32, g: f32, b: f32) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewFloat(r, g, b)) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_float_ex(r: f32, g: f32, b: f32, a: f32) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewFloatEx(r, g, b, a)) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_vec4(col: impl Into<ImVec4>) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewVec4(col.into())) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_int(r: c_int, g: c_int, b: c_int) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewInt(r, g, b)) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_int_ex(r: c_int, g: c_int, b: c_int, a: c_int) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewIntEx(r, g, b, a)) }
+ }
+ /// `ImColor::ImColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new_u32(rgba: ImU32) -> crate::Owned<ImColor> {
+ unsafe { crate::Owned::from_raw(sys::ImColor_NewU32(rgba)) }
+ }
+ /// `ImColor::SetHSV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_hsv(&mut self, h: f32, s: f32, v: f32) {
+ unsafe { sys::ImColor_SetHSV(self as *mut Self, h, s, v) }
+ }
+ /// `ImColor::SetHSV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_hsv_ex(&mut self, h: f32, s: f32, v: f32, a: f32) {
+ unsafe { sys::ImColor_SetHSVEx(self as *mut Self, h, s, v, a) }
+ }
+ /// `ImColor::HSV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn hsv(h: f32, s: f32, v: f32) -> ImColor {
+ unsafe { sys::ImColor_HSV(h, s, v) }
+ }
+ /// `ImColor::HSV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn hsv_ex(h: f32, s: f32, v: f32, a: f32) -> ImColor {
+ unsafe { sys::ImColor_HSVEx(h, s, v, a) }
+ }
+}
+impl crate::Delete for ImColor {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImColor_Delete(p) } }
+}
+impl ImGuiMultiSelectIO {
+ /// `ImGuiMultiSelectIO::ImGuiMultiSelectIO`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiMultiSelectIO> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiMultiSelectIO_New()) }
+ }
+}
+impl crate::Delete for ImGuiMultiSelectIO {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiMultiSelectIO_Delete(p) } }
+}
+impl ImGuiSelectionRequest {
+ /// `ImGuiSelectionRequest::ImGuiSelectionRequest`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiSelectionRequest> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiSelectionRequest_New()) }
+ }
+}
+impl crate::Delete for ImGuiSelectionRequest {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiSelectionRequest_Delete(p) } }
+}
+impl ImGuiSelectionBasicStorage {
+ /// `ImGuiSelectionBasicStorage::ImGuiSelectionBasicStorage`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiSelectionBasicStorage> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiSelectionBasicStorage_New()) }
+ }
+ /// `ImGuiSelectionBasicStorage::ApplyRequests`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn apply_requests(&mut self, ms_io: &mut ImGuiMultiSelectIO) {
+ unsafe { sys::ImGuiSelectionBasicStorage_ApplyRequests(self as *mut Self, ms_io as *mut ImGuiMultiSelectIO) }
+ }
+ /// `ImGuiSelectionBasicStorage::Contains`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn contains(&self, id: ImGuiID) -> bool {
+ unsafe { sys::ImGuiSelectionBasicStorage_Contains(self as *const Self, id) }
+ }
+ /// `ImGuiSelectionBasicStorage::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImGuiSelectionBasicStorage_Clear(self as *mut Self) }
+ }
+ /// `ImGuiSelectionBasicStorage::Swap`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn swap(&mut self, r: &mut ImGuiSelectionBasicStorage) {
+ unsafe { sys::ImGuiSelectionBasicStorage_Swap(self as *mut Self, r as *mut ImGuiSelectionBasicStorage) }
+ }
+ /// `ImGuiSelectionBasicStorage::SetItemSelected`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_item_selected(&mut self, id: ImGuiID, selected: bool) {
+ unsafe { sys::ImGuiSelectionBasicStorage_SetItemSelected(self as *mut Self, id, selected) }
+ }
+ /// `ImGuiSelectionBasicStorage::GetStorageIdFromIndex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_storage_id_from_index(&mut self, idx: c_int) -> ImGuiID {
+ unsafe { sys::ImGuiSelectionBasicStorage_GetStorageIdFromIndex(self as *mut Self, idx) }
+ }
+}
+impl crate::Delete for ImGuiSelectionBasicStorage {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiSelectionBasicStorage_Delete(p) } }
+}
+impl ImGuiSelectionExternalStorage {
+ /// `ImGuiSelectionExternalStorage::ImGuiSelectionExternalStorage`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiSelectionExternalStorage> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiSelectionExternalStorage_New()) }
+ }
+ /// `ImGuiSelectionExternalStorage::ApplyRequests`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn apply_requests(&mut self, ms_io: &mut ImGuiMultiSelectIO) {
+ unsafe { sys::ImGuiSelectionExternalStorage_ApplyRequests(self as *mut Self, ms_io as *mut ImGuiMultiSelectIO) }
+ }
+}
+impl crate::Delete for ImGuiSelectionExternalStorage {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiSelectionExternalStorage_Delete(p) } }
+}
+impl ImDrawCmd {
+ /// `ImDrawCmd::ImDrawCmd`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawCmd> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawCmd_New()) }
+ }
+ /// `ImDrawCmd::GetTexID`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_tex_id(&self) -> ImTextureID {
+ unsafe { sys::ImDrawCmd_GetTexID(self as *const Self) }
+ }
+}
+impl crate::Delete for ImDrawCmd {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawCmd_Delete(p) } }
+}
+impl ImDrawVert {
+ /// `ImDrawVert::ImDrawVert`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawVert> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawVert_New()) }
+ }
+}
+impl crate::Delete for ImDrawVert {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawVert_Delete(p) } }
+}
+impl ImDrawCmdHeader {
+ /// `ImDrawCmdHeader::ImDrawCmdHeader`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawCmdHeader> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawCmdHeader_New()) }
+ }
+}
+impl crate::Delete for ImDrawCmdHeader {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawCmdHeader_Delete(p) } }
+}
+impl ImDrawChannel {
+ /// `ImDrawChannel::ImDrawChannel`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawChannel> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawChannel_New()) }
+ }
+}
+impl crate::Delete for ImDrawChannel {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawChannel_Delete(p) } }
+}
+impl ImDrawListSplitter {
+ /// `ImDrawListSplitter::ImDrawListSplitter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawListSplitter> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawListSplitter_New()) }
+ }
+ /// `ImDrawListSplitter::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImDrawListSplitter_Clear(self as *mut Self) }
+ }
+ /// `ImDrawListSplitter::ClearFreeMemory`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_free_memory(&mut self) {
+ unsafe { sys::ImDrawListSplitter_ClearFreeMemory(self as *mut Self) }
+ }
+ /// `ImDrawListSplitter::Split`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn split(&mut self, draw_list: &mut ImDrawList, count: c_int) {
+ unsafe { sys::ImDrawListSplitter_Split(self as *mut Self, draw_list as *mut ImDrawList, count) }
+ }
+ /// `ImDrawListSplitter::Merge`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn merge(&mut self, draw_list: &mut ImDrawList) {
+ unsafe { sys::ImDrawListSplitter_Merge(self as *mut Self, draw_list as *mut ImDrawList) }
+ }
+ /// `ImDrawListSplitter::SetCurrentChannel`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_current_channel(&mut self, draw_list: &mut ImDrawList, channel_idx: c_int) {
+ unsafe { sys::ImDrawListSplitter_SetCurrentChannel(self as *mut Self, draw_list as *mut ImDrawList, channel_idx) }
+ }
+}
+impl crate::Delete for ImDrawListSplitter {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawListSplitter_Delete(p) } }
+}
+impl ImDrawList {
+ /// `ImDrawList::ImDrawList`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new(shared_data: &mut ImDrawListSharedData) -> crate::Owned<ImDrawList> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawList_New(shared_data as *mut ImDrawListSharedData)) }
+ }
+ /// `ImDrawList::PushClipRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn push_clip_rect(&mut self, clip_rect_min: impl Into<ImVec2>, clip_rect_max: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PushClipRect(self as *mut Self, clip_rect_min.into(), clip_rect_max.into()) }
+ }
+ /// `ImDrawList::PushClipRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn push_clip_rect_ex(&mut self, clip_rect_min: impl Into<ImVec2>, clip_rect_max: impl Into<ImVec2>, intersect_with_current_clip_rect: bool) {
+ unsafe { sys::ImDrawList_PushClipRectEx(self as *mut Self, clip_rect_min.into(), clip_rect_max.into(), intersect_with_current_clip_rect) }
+ }
+ /// `ImDrawList::PushClipRectFullScreen`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn push_clip_rect_full_screen(&mut self) {
+ unsafe { sys::ImDrawList_PushClipRectFullScreen(self as *mut Self) }
+ }
+ /// `ImDrawList::PopClipRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn pop_clip_rect(&mut self) {
+ unsafe { sys::ImDrawList_PopClipRect(self as *mut Self) }
+ }
+ /// `ImDrawList::PushTexture`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn push_texture(&mut self, tex_ref: impl Into<ImTextureRef>) {
+ unsafe { sys::ImDrawList_PushTexture(self as *mut Self, tex_ref.into()) }
+ }
+ /// `ImDrawList::PopTexture`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn pop_texture(&mut self) {
+ unsafe { sys::ImDrawList_PopTexture(self as *mut Self) }
+ }
+ /// `ImDrawList::PushDrawFlag`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn push_draw_flag(&mut self, flags: ImDrawFlags, enabled: bool) {
+ unsafe { sys::ImDrawList_PushDrawFlag(self as *mut Self, flags, enabled) }
+ }
+ /// `ImDrawList::PopDrawFlag`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn pop_draw_flag(&mut self) {
+ unsafe { sys::ImDrawList_PopDrawFlag(self as *mut Self) }
+ }
+ /// `ImDrawList::GetClipRectMin`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_clip_rect_min(&self) -> ImVec2 {
+ unsafe { sys::ImDrawList_GetClipRectMin(self as *const Self) }
+ }
+ /// `ImDrawList::GetClipRectMax`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_clip_rect_max(&self) -> ImVec2 {
+ unsafe { sys::ImDrawList_GetClipRectMax(self as *const Self) }
+ }
+ /// `ImDrawList::AddLine`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddLine(self as *mut Self, p1.into(), p2.into(), col) }
+ }
+ /// `ImDrawList::AddLine`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line_ex(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddLineEx(self as *mut Self, p1.into(), p2.into(), col, thickness, flags) }
+ }
+ /// `ImDrawList::AddLineH`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line_h(&mut self, min_x: f32, max_x: f32, y: f32, col: ImU32) {
+ unsafe { sys::ImDrawList_AddLineH(self as *mut Self, min_x, max_x, y, col) }
+ }
+ /// `ImDrawList::AddLineH`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line_h_ex(&mut self, min_x: f32, max_x: f32, y: f32, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddLineHEx(self as *mut Self, min_x, max_x, y, col, thickness, flags) }
+ }
+ /// `ImDrawList::AddLineV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line_v(&mut self, x: f32, min_y: f32, max_y: f32, col: ImU32) {
+ unsafe { sys::ImDrawList_AddLineV(self as *mut Self, x, min_y, max_y, col) }
+ }
+ /// `ImDrawList::AddLineV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_line_v_ex(&mut self, x: f32, min_y: f32, max_y: f32, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddLineVEx(self as *mut Self, x, min_y, max_y, col, thickness, flags) }
+ }
+ /// `ImDrawList::AddRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_rect(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddRect(self as *mut Self, p_min.into(), p_max.into(), col) }
+ }
+ /// `ImDrawList::AddRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_rect_ex(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32, rounding: f32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddRectEx(self as *mut Self, p_min.into(), p_max.into(), col, rounding, thickness, flags) }
+ }
+ /// `ImDrawList::AddRectFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_rect_filled(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddRectFilled(self as *mut Self, p_min.into(), p_max.into(), col) }
+ }
+ /// `ImDrawList::AddRectFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_rect_filled_ex(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32, rounding: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddRectFilledEx(self as *mut Self, p_min.into(), p_max.into(), col, rounding, flags) }
+ }
+ /// `ImDrawList::AddRectFilledMultiColor`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_rect_filled_multi_color(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col_upr_left: ImU32, col_upr_right: ImU32, col_bot_right: ImU32, col_bot_left: ImU32) {
+ unsafe { sys::ImDrawList_AddRectFilledMultiColor(self as *mut Self, p_min.into(), p_max.into(), col_upr_left, col_upr_right, col_bot_right, col_bot_left) }
+ }
+ /// `ImDrawList::AddQuad`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_quad(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddQuad(self as *mut Self, p1.into(), p2.into(), p3.into(), p4.into(), col) }
+ }
+ /// `ImDrawList::AddQuad`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_quad_ex(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddQuadEx(self as *mut Self, p1.into(), p2.into(), p3.into(), p4.into(), col, thickness, flags) }
+ }
+ /// `ImDrawList::AddQuadFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_quad_filled(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddQuadFilled(self as *mut Self, p1.into(), p2.into(), p3.into(), p4.into(), col) }
+ }
+ /// `ImDrawList::AddTriangle`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_triangle(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddTriangle(self as *mut Self, p1.into(), p2.into(), p3.into(), col) }
+ }
+ /// `ImDrawList::AddTriangle`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_triangle_ex(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddTriangleEx(self as *mut Self, p1.into(), p2.into(), p3.into(), col, thickness, flags) }
+ }
+ /// `ImDrawList::AddTriangleFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_triangle_filled(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddTriangleFilled(self as *mut Self, p1.into(), p2.into(), p3.into(), col) }
+ }
+ /// `ImDrawList::AddCircle`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_circle(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32) {
+ unsafe { sys::ImDrawList_AddCircle(self as *mut Self, center.into(), radius, col) }
+ }
+ /// `ImDrawList::AddCircle`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_circle_ex(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddCircleEx(self as *mut Self, center.into(), radius, col, num_segments, thickness, flags) }
+ }
+ /// `ImDrawList::AddCircleFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_circle_filled(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32) {
+ unsafe { sys::ImDrawList_AddCircleFilled(self as *mut Self, center.into(), radius, col) }
+ }
+ /// `ImDrawList::AddCircleFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_circle_filled_ex(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_AddCircleFilledEx(self as *mut Self, center.into(), radius, col, num_segments) }
+ }
+ /// `ImDrawList::AddNgon`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ngon(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_AddNgon(self as *mut Self, center.into(), radius, col, num_segments) }
+ }
+ /// `ImDrawList::AddNgon`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ngon_ex(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddNgonEx(self as *mut Self, center.into(), radius, col, num_segments, thickness, flags) }
+ }
+ /// `ImDrawList::AddNgonFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ngon_filled(&mut self, center: impl Into<ImVec2>, radius: f32, col: ImU32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_AddNgonFilled(self as *mut Self, center.into(), radius, col, num_segments) }
+ }
+ /// `ImDrawList::AddEllipse`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ellipse(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddEllipse(self as *mut Self, center.into(), radius.into(), col) }
+ }
+ /// `ImDrawList::AddEllipse`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ellipse_ex(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, col: ImU32, rot: f32, num_segments: c_int, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddEllipseEx(self as *mut Self, center.into(), radius.into(), col, rot, num_segments, thickness, flags) }
+ }
+ /// `ImDrawList::AddEllipseFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ellipse_filled(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddEllipseFilled(self as *mut Self, center.into(), radius.into(), col) }
+ }
+ /// `ImDrawList::AddEllipseFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_ellipse_filled_ex(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, col: ImU32, rot: f32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_AddEllipseFilledEx(self as *mut Self, center.into(), radius.into(), col, rot, num_segments) }
+ }
+ /// `ImDrawList::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text(&mut self, pos: impl Into<ImVec2>, col: ImU32, text_begin: &str) {
+ let __text_begin = crate::cs(text_begin);
+ unsafe { sys::ImDrawList_AddText(self as *mut Self, pos.into(), col, __text_begin.as_ptr()) }
+ }
+ /// `ImDrawList::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text_ex(&mut self, pos: impl Into<ImVec2>, col: ImU32, text_begin: &str, text_end: Option<&str>) {
+ let __text_begin = crate::cs(text_begin);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImDrawList_AddTextEx(self as *mut Self, pos.into(), col, __text_begin.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+ }
+ /// `ImDrawList::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text_font_ptr(&mut self, font: &mut ImFont, font_size: f32, pos: impl Into<ImVec2>, col: ImU32, text_begin: &str) {
+ let __text_begin = crate::cs(text_begin);
+ unsafe { sys::ImDrawList_AddTextFontPtr(self as *mut Self, font as *mut ImFont, font_size, pos.into(), col, __text_begin.as_ptr()) }
+ }
+ /// `ImDrawList::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text_font_ptr_ex(&mut self, font: &mut ImFont, font_size: f32, pos: impl Into<ImVec2>, col: ImU32, text_begin: &str, text_end: Option<&str>, wrap_width: f32, cpu_fine_clip_rect: Option<&ImVec4>) {
+ let __text_begin = crate::cs(text_begin);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImDrawList_AddTextFontPtrEx(self as *mut Self, font as *mut ImFont, font_size, pos.into(), col, __text_begin.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), wrap_width, cpu_fine_clip_rect.map_or(core::ptr::null(), |r| r as *const ImVec4)) }
+ }
+ /// `ImDrawList::AddBezierCubic`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_bezier_cubic(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, col: ImU32, thickness: f32) {
+ unsafe { sys::ImDrawList_AddBezierCubic(self as *mut Self, p1.into(), p2.into(), p3.into(), p4.into(), col, thickness) }
+ }
+ /// `ImDrawList::AddBezierCubic`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_bezier_cubic_ex(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, col: ImU32, thickness: f32, num_segments: c_int, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddBezierCubicEx(self as *mut Self, p1.into(), p2.into(), p3.into(), p4.into(), col, thickness, num_segments, flags) }
+ }
+ /// `ImDrawList::AddBezierQuadratic`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_bezier_quadratic(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, col: ImU32, thickness: f32) {
+ unsafe { sys::ImDrawList_AddBezierQuadratic(self as *mut Self, p1.into(), p2.into(), p3.into(), col, thickness) }
+ }
+ /// `ImDrawList::AddBezierQuadratic`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_bezier_quadratic_ex(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, col: ImU32, thickness: f32, num_segments: c_int, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddBezierQuadraticEx(self as *mut Self, p1.into(), p2.into(), p3.into(), col, thickness, num_segments, flags) }
+ }
+ /// `ImDrawList::AddPolyline`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_polyline(&mut self, points: &[ImVec2], col: ImU32, thickness: f32) {
+ unsafe { sys::ImDrawList_AddPolyline(self as *mut Self, points.as_ptr(), points.len() as c_int, col, thickness) }
+ }
+ /// `ImDrawList::AddPolyline`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_polyline_ex(&mut self, points: &[ImVec2], col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddPolylineEx(self as *mut Self, points.as_ptr(), points.len() as c_int, col, thickness, flags) }
+ }
+ /// `ImDrawList::AddConvexPolyFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_convex_poly_filled(&mut self, points: &[ImVec2], col: ImU32) {
+ unsafe { sys::ImDrawList_AddConvexPolyFilled(self as *mut Self, points.as_ptr(), points.len() as c_int, col) }
+ }
+ /// `ImDrawList::AddConvexPolyFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_convex_poly_filled_ex(&mut self, points: &[ImVec2], col: ImU32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddConvexPolyFilledEx(self as *mut Self, points.as_ptr(), points.len() as c_int, col, flags) }
+ }
+ /// `ImDrawList::AddConcavePolyFilled`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_concave_poly_filled(&mut self, points: &[ImVec2], col: ImU32) {
+ unsafe { sys::ImDrawList_AddConcavePolyFilled(self as *mut Self, points.as_ptr(), points.len() as c_int, col) }
+ }
+ /// `ImDrawList::AddImage`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image(&mut self, tex_ref: impl Into<ImTextureRef>, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_AddImage(self as *mut Self, tex_ref.into(), p_min.into(), p_max.into()) }
+ }
+ /// `ImDrawList::AddImage`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image_ex(&mut self, tex_ref: impl Into<ImTextureRef>, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, uv_min: impl Into<ImVec2>, uv_max: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddImageEx(self as *mut Self, tex_ref.into(), p_min.into(), p_max.into(), uv_min.into(), uv_max.into(), col) }
+ }
+ /// `ImDrawList::AddImageQuad`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image_quad(&mut self, tex_ref: impl Into<ImTextureRef>, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_AddImageQuad(self as *mut Self, tex_ref.into(), p1.into(), p2.into(), p3.into(), p4.into()) }
+ }
+ /// `ImDrawList::AddImageQuad`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image_quad_ex(&mut self, tex_ref: impl Into<ImTextureRef>, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, uv1: impl Into<ImVec2>, uv2: impl Into<ImVec2>, uv3: impl Into<ImVec2>, uv4: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_AddImageQuadEx(self as *mut Self, tex_ref.into(), p1.into(), p2.into(), p3.into(), p4.into(), uv1.into(), uv2.into(), uv3.into(), uv4.into(), col) }
+ }
+ /// `ImDrawList::AddImageRounded`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image_rounded(&mut self, tex_ref: impl Into<ImTextureRef>, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, uv_min: impl Into<ImVec2>, uv_max: impl Into<ImVec2>, col: ImU32, rounding: f32) {
+ unsafe { sys::ImDrawList_AddImageRounded(self as *mut Self, tex_ref.into(), p_min.into(), p_max.into(), uv_min.into(), uv_max.into(), col, rounding) }
+ }
+ /// `ImDrawList::AddImageRounded`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_image_rounded_ex(&mut self, tex_ref: impl Into<ImTextureRef>, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, uv_min: impl Into<ImVec2>, uv_max: impl Into<ImVec2>, col: ImU32, rounding: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_AddImageRoundedEx(self as *mut Self, tex_ref.into(), p_min.into(), p_max.into(), uv_min.into(), uv_max.into(), col, rounding, flags) }
+ }
+ /// `ImDrawList::PathClear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_clear(&mut self) {
+ unsafe { sys::ImDrawList_PathClear(self as *mut Self) }
+ }
+ /// `ImDrawList::PathLineTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_line_to(&mut self, pos: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PathLineTo(self as *mut Self, pos.into()) }
+ }
+ /// `ImDrawList::PathLineToMergeDuplicate`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_line_to_merge_duplicate(&mut self, pos: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PathLineToMergeDuplicate(self as *mut Self, pos.into()) }
+ }
+ /// `ImDrawList::PathFillConvex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_fill_convex(&mut self, col: ImU32) {
+ unsafe { sys::ImDrawList_PathFillConvex(self as *mut Self, col) }
+ }
+ /// `ImDrawList::PathFillConvex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_fill_convex_ex(&mut self, col: ImU32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_PathFillConvexEx(self as *mut Self, col, flags) }
+ }
+ /// `ImDrawList::PathFillConcave`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_fill_concave(&mut self, col: ImU32) {
+ unsafe { sys::ImDrawList_PathFillConcave(self as *mut Self, col) }
+ }
+ /// `ImDrawList::PathStroke`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_stroke(&mut self, col: ImU32) {
+ unsafe { sys::ImDrawList_PathStroke(self as *mut Self, col) }
+ }
+ /// `ImDrawList::PathStroke`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_stroke_ex(&mut self, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_PathStrokeEx(self as *mut Self, col, thickness, flags) }
+ }
+ /// `ImDrawList::PathArcTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_arc_to(&mut self, center: impl Into<ImVec2>, radius: f32, a_min: f32, a_max: f32) {
+ unsafe { sys::ImDrawList_PathArcTo(self as *mut Self, center.into(), radius, a_min, a_max) }
+ }
+ /// `ImDrawList::PathArcTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_arc_to_ex(&mut self, center: impl Into<ImVec2>, radius: f32, a_min: f32, a_max: f32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_PathArcToEx(self as *mut Self, center.into(), radius, a_min, a_max, num_segments) }
+ }
+ /// `ImDrawList::PathArcToFast`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_arc_to_fast(&mut self, center: impl Into<ImVec2>, radius: f32, a_min_of_12: c_int, a_max_of_12: c_int) {
+ unsafe { sys::ImDrawList_PathArcToFast(self as *mut Self, center.into(), radius, a_min_of_12, a_max_of_12) }
+ }
+ /// `ImDrawList::PathEllipticalArcTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_elliptical_arc_to(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, rot: f32, a_min: f32, a_max: f32) {
+ unsafe { sys::ImDrawList_PathEllipticalArcTo(self as *mut Self, center.into(), radius.into(), rot, a_min, a_max) }
+ }
+ /// `ImDrawList::PathEllipticalArcTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_elliptical_arc_to_ex(&mut self, center: impl Into<ImVec2>, radius: impl Into<ImVec2>, rot: f32, a_min: f32, a_max: f32, num_segments: c_int) {
+ unsafe { sys::ImDrawList_PathEllipticalArcToEx(self as *mut Self, center.into(), radius.into(), rot, a_min, a_max, num_segments) }
+ }
+ /// `ImDrawList::PathBezierCubicCurveTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_bezier_cubic_curve_to(&mut self, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PathBezierCubicCurveTo(self as *mut Self, p2.into(), p3.into(), p4.into()) }
+ }
+ /// `ImDrawList::PathBezierCubicCurveTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_bezier_cubic_curve_to_ex(&mut self, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, p4: impl Into<ImVec2>, num_segments: c_int) {
+ unsafe { sys::ImDrawList_PathBezierCubicCurveToEx(self as *mut Self, p2.into(), p3.into(), p4.into(), num_segments) }
+ }
+ /// `ImDrawList::PathBezierQuadraticCurveTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_bezier_quadratic_curve_to(&mut self, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PathBezierQuadraticCurveTo(self as *mut Self, p2.into(), p3.into()) }
+ }
+ /// `ImDrawList::PathBezierQuadraticCurveTo`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_bezier_quadratic_curve_to_ex(&mut self, p2: impl Into<ImVec2>, p3: impl Into<ImVec2>, num_segments: c_int) {
+ unsafe { sys::ImDrawList_PathBezierQuadraticCurveToEx(self as *mut Self, p2.into(), p3.into(), num_segments) }
+ }
+ /// `ImDrawList::PathRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_rect(&mut self, rect_min: impl Into<ImVec2>, rect_max: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawList_PathRect(self as *mut Self, rect_min.into(), rect_max.into()) }
+ }
+ /// `ImDrawList::PathRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn path_rect_ex(&mut self, rect_min: impl Into<ImVec2>, rect_max: impl Into<ImVec2>, rounding: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList_PathRectEx(self as *mut Self, rect_min.into(), rect_max.into(), rounding, flags) }
+ }
+ /// `ImDrawList::AddDrawCmd`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_draw_cmd(&mut self) {
+ unsafe { sys::ImDrawList_AddDrawCmd(self as *mut Self) }
+ }
+ /// `ImDrawList::CloneOutput`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clone_output(&self) -> Option<&'static mut ImDrawList> {
+ unsafe { sys::ImDrawList_CloneOutput(self as *const Self).as_mut() }
+ }
+ /// `ImDrawList::ChannelsSplit`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn channels_split(&mut self, count: c_int) {
+ unsafe { sys::ImDrawList_ChannelsSplit(self as *mut Self, count) }
+ }
+ /// `ImDrawList::ChannelsMerge`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn channels_merge(&mut self) {
+ unsafe { sys::ImDrawList_ChannelsMerge(self as *mut Self) }
+ }
+ /// `ImDrawList::ChannelsSetCurrent`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn channels_set_current(&mut self, n: c_int) {
+ unsafe { sys::ImDrawList_ChannelsSetCurrent(self as *mut Self, n) }
+ }
+ /// `ImDrawList::PrimReserve`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_reserve(&mut self, idx_count: c_int, vtx_count: c_int) {
+ unsafe { sys::ImDrawList_PrimReserve(self as *mut Self, idx_count, vtx_count) }
+ }
+ /// `ImDrawList::PrimUnreserve`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_unreserve(&mut self, idx_count: c_int, vtx_count: c_int) {
+ unsafe { sys::ImDrawList_PrimUnreserve(self as *mut Self, idx_count, vtx_count) }
+ }
+ /// `ImDrawList::PrimRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_rect(&mut self, a: impl Into<ImVec2>, b: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_PrimRect(self as *mut Self, a.into(), b.into(), col) }
+ }
+ /// `ImDrawList::PrimRectUV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_rect_uv(&mut self, a: impl Into<ImVec2>, b: impl Into<ImVec2>, uv_a: impl Into<ImVec2>, uv_b: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_PrimRectUV(self as *mut Self, a.into(), b.into(), uv_a.into(), uv_b.into(), col) }
+ }
+ /// `ImDrawList::PrimQuadUV`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_quad_uv(&mut self, a: impl Into<ImVec2>, b: impl Into<ImVec2>, c: impl Into<ImVec2>, d: impl Into<ImVec2>, uv_a: impl Into<ImVec2>, uv_b: impl Into<ImVec2>, uv_c: impl Into<ImVec2>, uv_d: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_PrimQuadUV(self as *mut Self, a.into(), b.into(), c.into(), d.into(), uv_a.into(), uv_b.into(), uv_c.into(), uv_d.into(), col) }
+ }
+ /// `ImDrawList::PrimWriteVtx`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_write_vtx(&mut self, pos: impl Into<ImVec2>, uv: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_PrimWriteVtx(self as *mut Self, pos.into(), uv.into(), col) }
+ }
+ /// `ImDrawList::PrimWriteIdx`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_write_idx(&mut self, idx: ImDrawIdx) {
+ unsafe { sys::ImDrawList_PrimWriteIdx(self as *mut Self, idx) }
+ }
+ /// `ImDrawList::PrimVtx`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn prim_vtx(&mut self, pos: impl Into<ImVec2>, uv: impl Into<ImVec2>, col: ImU32) {
+ unsafe { sys::ImDrawList_PrimVtx(self as *mut Self, pos.into(), uv.into(), col) }
+ }
+ /// `ImDrawList::_SetDrawListSharedData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _set_draw_list_shared_data(&mut self, data: &mut ImDrawListSharedData) {
+ unsafe { sys::ImDrawList__SetDrawListSharedData(self as *mut Self, data as *mut ImDrawListSharedData) }
+ }
+ /// `ImDrawList::_ResetForNewFrame`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _reset_for_new_frame(&mut self) {
+ unsafe { sys::ImDrawList__ResetForNewFrame(self as *mut Self) }
+ }
+ /// `ImDrawList::_SetPixelDensity`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _set_pixel_density(&mut self, pixel_density: f32) {
+ unsafe { sys::ImDrawList__SetPixelDensity(self as *mut Self, pixel_density) }
+ }
+ /// `ImDrawList::_ClearFreeMemory`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _clear_free_memory(&mut self) {
+ unsafe { sys::ImDrawList__ClearFreeMemory(self as *mut Self) }
+ }
+ /// `ImDrawList::_PopUnusedDrawCmd`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _pop_unused_draw_cmd(&mut self) {
+ unsafe { sys::ImDrawList__PopUnusedDrawCmd(self as *mut Self) }
+ }
+ /// `ImDrawList::_TryMergeDrawCmds`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _try_merge_draw_cmds(&mut self) {
+ unsafe { sys::ImDrawList__TryMergeDrawCmds(self as *mut Self) }
+ }
+ /// `ImDrawList::_OnChangedClipRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _on_changed_clip_rect(&mut self) {
+ unsafe { sys::ImDrawList__OnChangedClipRect(self as *mut Self) }
+ }
+ /// `ImDrawList::_OnChangedTexture`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _on_changed_texture(&mut self) {
+ unsafe { sys::ImDrawList__OnChangedTexture(self as *mut Self) }
+ }
+ /// `ImDrawList::_OnChangedVtxOffset`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _on_changed_vtx_offset(&mut self) {
+ unsafe { sys::ImDrawList__OnChangedVtxOffset(self as *mut Self) }
+ }
+ /// `ImDrawList::_SetTexture`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _set_texture(&mut self, tex_ref: impl Into<ImTextureRef>) {
+ unsafe { sys::ImDrawList__SetTexture(self as *mut Self, tex_ref.into()) }
+ }
+ /// `ImDrawList::_CalcCircleAutoSegmentCount`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _calc_circle_auto_segment_count(&self, radius: f32) -> c_int {
+ unsafe { sys::ImDrawList__CalcCircleAutoSegmentCount(self as *const Self, radius) }
+ }
+ /// `ImDrawList::_PathArcToFastEx`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _path_arc_to_fast_ex(&mut self, center: impl Into<ImVec2>, radius: f32, a_min_sample: c_int, a_max_sample: c_int, a_step: c_int) {
+ unsafe { sys::ImDrawList__PathArcToFastEx(self as *mut Self, center.into(), radius, a_min_sample, a_max_sample, a_step) }
+ }
+ /// `ImDrawList::_PathArcToN`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _path_arc_to_n(&mut self, center: impl Into<ImVec2>, radius: f32, a_min: f32, a_max: f32, num_segments: c_int) {
+ unsafe { sys::ImDrawList__PathArcToN(self as *mut Self, center.into(), radius, a_min, a_max, num_segments) }
+ }
+ /// `ImDrawList::_AddRectFilledBaked`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _add_rect_filled_baked(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32, r: f32, tex_uvs: impl Into<ImVec4>, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList__AddRectFilledBaked(self as *mut Self, p_min.into(), p_max.into(), col, r, tex_uvs.into(), flags) }
+ }
+ /// `ImDrawList::_AddRectBaked`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _add_rect_baked(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32, r: f32, t: f32, tex_uvs: impl Into<ImVec4>, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList__AddRectBaked(self as *mut Self, p_min.into(), p_max.into(), col, r, t, tex_uvs.into(), flags) }
+ }
+ /// `ImDrawList::_AddLine`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _add_line(&mut self, p1: impl Into<ImVec2>, p2: impl Into<ImVec2>, col: ImU32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList__AddLine(self as *mut Self, p1.into(), p2.into(), col, thickness, flags) }
+ }
+ /// `ImDrawList::_AddRectTinyRounding`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _add_rect_tiny_rounding(&mut self, p_min: impl Into<ImVec2>, p_max: impl Into<ImVec2>, col: ImU32, rounding: f32, thickness: f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList__AddRectTinyRounding(self as *mut Self, p_min.into(), p_max.into(), col, rounding, thickness, flags) }
+ }
+ /// `ImDrawList::_SelectLineTexture`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _select_line_texture(&mut self, screen_thickness: f32, out_uv0: &mut ImVec2, out_uv1: &mut ImVec2, out_fringe: &mut f32, flags: ImDrawFlags) {
+ unsafe { sys::ImDrawList__SelectLineTexture(self as *mut Self, screen_thickness, out_uv0, out_uv1, out_fringe, flags) }
+ }
+ /// `ImDrawList::_CalculateCenterBiasedOffset`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _calculate_center_biased_offset(&mut self, thickness: f32) -> f32 {
+ unsafe { sys::ImDrawList__CalculateCenterBiasedOffset(self as *mut Self, thickness) }
+ }
+ /// `ImDrawList::_AddPolyline`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn _add_polyline(&mut self, points: &[ImVec2], col: ImU32, thickness: f32, flags: ImDrawFlags, max_inner_offset: f32) {
+ unsafe { sys::ImDrawList__AddPolyline(self as *mut Self, points.as_ptr(), points.len() as c_int, col, thickness, flags, max_inner_offset) }
+ }
+}
+impl crate::Delete for ImDrawList {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawList_Delete(p) } }
+}
+impl ImDrawData {
+ /// `ImDrawData::ImDrawData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImDrawData> {
+ unsafe { crate::Owned::from_raw(sys::ImDrawData_New()) }
+ }
+ /// `ImDrawData::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImDrawData_Clear(self as *mut Self) }
+ }
+ /// `ImDrawData::AddDrawList`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_draw_list(&mut self, draw_list: &mut ImDrawList) {
+ unsafe { sys::ImDrawData_AddDrawList(self as *mut Self, draw_list as *mut ImDrawList) }
+ }
+ /// `ImDrawData::DeIndexAllBuffers`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn de_index_all_buffers(&mut self) {
+ unsafe { sys::ImDrawData_DeIndexAllBuffers(self as *mut Self) }
+ }
+ /// `ImDrawData::ScaleClipRects`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn scale_clip_rects(&mut self, fb_scale: impl Into<ImVec2>) {
+ unsafe { sys::ImDrawData_ScaleClipRects(self as *mut Self, fb_scale.into()) }
+ }
+}
+impl crate::Delete for ImDrawData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImDrawData_Delete(p) } }
+}
+impl ImTextureRect {
+ /// `ImTextureRect::ImTextureRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImTextureRect> {
+ unsafe { crate::Owned::from_raw(sys::ImTextureRect_New()) }
+ }
+}
+impl crate::Delete for ImTextureRect {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImTextureRect_Delete(p) } }
+}
+impl ImTextureData {
+ /// `ImTextureData::ImTextureData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImTextureData> {
+ unsafe { crate::Owned::from_raw(sys::ImTextureData_New()) }
+ }
+ /// `ImTextureData::Create`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn create(&mut self, format: ImTextureFormat, w: c_int, h: c_int) {
+ unsafe { sys::ImTextureData_Create(self as *mut Self, format, w, h) }
+ }
+ /// `ImTextureData::DestroyPixels`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn destroy_pixels(&mut self) {
+ unsafe { sys::ImTextureData_DestroyPixels(self as *mut Self) }
+ }
+ /// `ImTextureData::GetPixels`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_pixels(&mut self) -> *mut c_void {
+ unsafe { sys::ImTextureData_GetPixels(self as *mut Self) }
+ }
+ /// `ImTextureData::GetPixelsAt`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_pixels_at(&mut self, x: c_int, y: c_int) -> *mut c_void {
+ unsafe { sys::ImTextureData_GetPixelsAt(self as *mut Self, x, y) }
+ }
+ /// `ImTextureData::GetSizeInBytes`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_size_in_bytes(&self) -> c_int {
+ unsafe { sys::ImTextureData_GetSizeInBytes(self as *const Self) }
+ }
+ /// `ImTextureData::GetPitch`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_pitch(&self) -> c_int {
+ unsafe { sys::ImTextureData_GetPitch(self as *const Self) }
+ }
+ /// `ImTextureData::GetTexRef`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_tex_ref(&mut self) -> ImTextureRef {
+ unsafe { sys::ImTextureData_GetTexRef(self as *mut Self) }
+ }
+ /// `ImTextureData::GetTexID`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_tex_id(&self) -> ImTextureID {
+ unsafe { sys::ImTextureData_GetTexID(self as *const Self) }
+ }
+ /// `ImTextureData::SetTexID`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_tex_id(&mut self, tex_id: ImTextureID) {
+ unsafe { sys::ImTextureData_SetTexID(self as *mut Self, tex_id) }
+ }
+ /// `ImTextureData::SetStatus`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_status(&mut self, status: ImTextureStatus) {
+ unsafe { sys::ImTextureData_SetStatus(self as *mut Self, status) }
+ }
+}
+impl crate::Delete for ImTextureData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImTextureData_Delete(p) } }
+}
+impl ImFontConfig {
+ /// `ImFontConfig::ImFontConfig`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontConfig> {
+ unsafe { crate::Owned::from_raw(sys::ImFontConfig_New()) }
+ }
+}
+impl crate::Delete for ImFontConfig {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontConfig_Delete(p) } }
+}
+impl ImFontGlyph {
+ /// `ImFontGlyph::ImFontGlyph`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontGlyph> {
+ unsafe { crate::Owned::from_raw(sys::ImFontGlyph_New()) }
+ }
+}
+impl crate::Delete for ImFontGlyph {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontGlyph_Delete(p) } }
+}
+impl ImFontGlyphRangesBuilder {
+ /// `ImFontGlyphRangesBuilder::ImFontGlyphRangesBuilder`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontGlyphRangesBuilder> {
+ unsafe { crate::Owned::from_raw(sys::ImFontGlyphRangesBuilder_New()) }
+ }
+ /// `ImFontGlyphRangesBuilder::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImFontGlyphRangesBuilder_Clear(self as *mut Self) }
+ }
+ /// `ImFontGlyphRangesBuilder::GetBit`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_bit(&self, n: usize) -> bool {
+ unsafe { sys::ImFontGlyphRangesBuilder_GetBit(self as *const Self, n) }
+ }
+ /// `ImFontGlyphRangesBuilder::SetBit`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_bit(&mut self, n: usize) {
+ unsafe { sys::ImFontGlyphRangesBuilder_SetBit(self as *mut Self, n) }
+ }
+ /// `ImFontGlyphRangesBuilder::AddChar`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_char(&mut self, c: ImWchar) {
+ unsafe { sys::ImFontGlyphRangesBuilder_AddChar(self as *mut Self, c) }
+ }
+ /// `ImFontGlyphRangesBuilder::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text(&mut self, text: &str) {
+ let __text = crate::cs(text);
+ unsafe { sys::ImFontGlyphRangesBuilder_AddText(self as *mut Self, __text.as_ptr()) }
+ }
+ /// `ImFontGlyphRangesBuilder::AddText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_text_ex(&mut self, text: &str, text_end: Option<&str>) {
+ let __text = crate::cs(text);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImFontGlyphRangesBuilder_AddTextEx(self as *mut Self, __text.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr())) }
+ }
+}
+impl crate::Delete for ImFontGlyphRangesBuilder {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontGlyphRangesBuilder_Delete(p) } }
+}
+impl ImFontAtlasRect {
+ /// `ImFontAtlasRect::ImFontAtlasRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontAtlasRect> {
+ unsafe { crate::Owned::from_raw(sys::ImFontAtlasRect_New()) }
+ }
+}
+impl crate::Delete for ImFontAtlasRect {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontAtlasRect_Delete(p) } }
+}
+impl ImFontAtlas {
+ /// `ImFontAtlas::ImFontAtlas`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontAtlas> {
+ unsafe { crate::Owned::from_raw(sys::ImFontAtlas_New()) }
+ }
+ /// `ImFontAtlas::AddFont`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font(&mut self, font_cfg: &ImFontConfig) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFont(self as *mut Self, font_cfg as *const ImFontConfig).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefault`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default(&mut self) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefault(self as *mut Self).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefault`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default_ex(&mut self, font_cfg: Option<&ImFontConfig>) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefaultEx(self as *mut Self, font_cfg.map_or(core::ptr::null(), |r| r as *const ImFontConfig)).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefaultVector`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default_vector(&mut self) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefaultVector(self as *mut Self).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefaultVector`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default_vector_ex(&mut self, font_cfg: Option<&ImFontConfig>) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefaultVectorEx(self as *mut Self, font_cfg.map_or(core::ptr::null(), |r| r as *const ImFontConfig)).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefaultBitmap`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default_bitmap(&mut self) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefaultBitmap(self as *mut Self).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontDefaultBitmap`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_default_bitmap_ex(&mut self, font_cfg: Option<&ImFontConfig>) -> Option<&'static mut ImFont> {
+ unsafe { sys::ImFontAtlas_AddFontDefaultBitmapEx(self as *mut Self, font_cfg.map_or(core::ptr::null(), |r| r as *const ImFontConfig)).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontFromFileTTF`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_from_file_ttf(&mut self, filename: &str) -> Option<&'static mut ImFont> {
+ let __filename = crate::cs(filename);
+ unsafe { sys::ImFontAtlas_AddFontFromFileTTF(self as *mut Self, __filename.as_ptr()).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontFromFileTTF`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_from_file_ttf_ex(&mut self, filename: &str, size_pixels: f32, font_cfg: Option<&ImFontConfig>, glyph_ranges: Option<&ImWchar>) -> Option<&'static mut ImFont> {
+ let __filename = crate::cs(filename);
+ unsafe { sys::ImFontAtlas_AddFontFromFileTTFEx(self as *mut Self, __filename.as_ptr(), size_pixels, font_cfg.map_or(core::ptr::null(), |r| r as *const ImFontConfig), glyph_ranges.map_or(core::ptr::null(), |r| r as *const ImWchar)).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontFromMemoryCompressedBase85TTF`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_from_memory_compressed_base85_ttf(&mut self, compressed_font_data_base85: &str) -> Option<&'static mut ImFont> {
+ let __compressed_font_data_base85 = crate::cs(compressed_font_data_base85);
+ unsafe { sys::ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(self as *mut Self, __compressed_font_data_base85.as_ptr()).as_mut() }
+ }
+ /// `ImFontAtlas::AddFontFromMemoryCompressedBase85TTF`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_font_from_memory_compressed_base85_ttf_ex(&mut self, compressed_font_data_base85: &str, size_pixels: f32, font_cfg: Option<&ImFontConfig>, glyph_ranges: Option<&ImWchar>) -> Option<&'static mut ImFont> {
+ let __compressed_font_data_base85 = crate::cs(compressed_font_data_base85);
+ unsafe { sys::ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx(self as *mut Self, __compressed_font_data_base85.as_ptr(), size_pixels, font_cfg.map_or(core::ptr::null(), |r| r as *const ImFontConfig), glyph_ranges.map_or(core::ptr::null(), |r| r as *const ImWchar)).as_mut() }
+ }
+ /// `ImFontAtlas::RemoveFont`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn remove_font(&mut self, font: &mut ImFont) {
+ unsafe { sys::ImFontAtlas_RemoveFont(self as *mut Self, font as *mut ImFont) }
+ }
+ /// `ImFontAtlas::CompactCache`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn compact_cache(&mut self) {
+ unsafe { sys::ImFontAtlas_CompactCache(self as *mut Self) }
+ }
+ /// `ImFontAtlas::SetFontLoader`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn set_font_loader(&mut self, font_loader: &ImFontLoader) {
+ unsafe { sys::ImFontAtlas_SetFontLoader(self as *mut Self, font_loader as *const ImFontLoader) }
+ }
+ /// `ImFontAtlas::Clear`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear(&mut self) {
+ unsafe { sys::ImFontAtlas_Clear(self as *mut Self) }
+ }
+ /// `ImFontAtlas::ClearFonts`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_fonts(&mut self) {
+ unsafe { sys::ImFontAtlas_ClearFonts(self as *mut Self) }
+ }
+ /// `ImFontAtlas::ClearInputData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_input_data(&mut self) {
+ unsafe { sys::ImFontAtlas_ClearInputData(self as *mut Self) }
+ }
+ /// `ImFontAtlas::ClearTexData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_tex_data(&mut self) {
+ unsafe { sys::ImFontAtlas_ClearTexData(self as *mut Self) }
+ }
+ /// `ImFontAtlas::GetGlyphRangesDefault`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_glyph_ranges_default(&mut self) -> *const ImWchar {
+ unsafe { sys::ImFontAtlas_GetGlyphRangesDefault(self as *mut Self) }
+ }
+ /// `ImFontAtlas::AddCustomRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_custom_rect(&mut self, width: c_int, height: c_int) -> ImFontAtlasRectId {
+ unsafe { sys::ImFontAtlas_AddCustomRect(self as *mut Self, width, height) }
+ }
+ /// `ImFontAtlas::AddCustomRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_custom_rect_ex(&mut self, width: c_int, height: c_int, out_r: Option<&mut ImFontAtlasRect>) -> ImFontAtlasRectId {
+ unsafe { sys::ImFontAtlas_AddCustomRectEx(self as *mut Self, width, height, out_r.map_or(core::ptr::null_mut(), |r| r as *mut ImFontAtlasRect)) }
+ }
+ /// `ImFontAtlas::RemoveCustomRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn remove_custom_rect(&mut self, id: ImFontAtlasRectId) {
+ unsafe { sys::ImFontAtlas_RemoveCustomRect(self as *mut Self, id) }
+ }
+ /// `ImFontAtlas::GetCustomRect`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_custom_rect(&self, id: ImFontAtlasRectId, out_r: &mut ImFontAtlasRect) -> bool {
+ unsafe { sys::ImFontAtlas_GetCustomRect(self as *const Self, id, out_r as *mut ImFontAtlasRect) }
+ }
+}
+impl crate::Delete for ImFontAtlas {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontAtlas_Delete(p) } }
+}
+impl ImFontBaked {
+ /// `ImFontBaked::ImFontBaked`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFontBaked> {
+ unsafe { crate::Owned::from_raw(sys::ImFontBaked_New()) }
+ }
+ /// `ImFontBaked::ClearOutputData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_output_data(&mut self) {
+ unsafe { sys::ImFontBaked_ClearOutputData(self as *mut Self) }
+ }
+ /// `ImFontBaked::FindGlyph`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn find_glyph(&mut self, c: ImWchar) -> Option<&'static mut ImFontGlyph> {
+ unsafe { sys::ImFontBaked_FindGlyph(self as *mut Self, c).as_mut() }
+ }
+ /// `ImFontBaked::FindGlyphNoFallback`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn find_glyph_no_fallback(&mut self, c: ImWchar) -> Option<&'static mut ImFontGlyph> {
+ unsafe { sys::ImFontBaked_FindGlyphNoFallback(self as *mut Self, c).as_mut() }
+ }
+ /// `ImFontBaked::GetCharAdvance`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_char_advance(&mut self, c: ImWchar) -> f32 {
+ unsafe { sys::ImFontBaked_GetCharAdvance(self as *mut Self, c) }
+ }
+ /// `ImFontBaked::IsGlyphLoaded`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_glyph_loaded(&mut self, c: ImWchar) -> bool {
+ unsafe { sys::ImFontBaked_IsGlyphLoaded(self as *mut Self, c) }
+ }
+}
+impl crate::Delete for ImFontBaked {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFontBaked_Delete(p) } }
+}
+impl ImFont {
+ /// `ImFont::ImFont`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImFont> {
+ unsafe { crate::Owned::from_raw(sys::ImFont_New()) }
+ }
+ /// `ImFont::IsGlyphInFont`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_glyph_in_font(&mut self, c: ImWchar) -> bool {
+ unsafe { sys::ImFont_IsGlyphInFont(self as *mut Self, c) }
+ }
+ /// `ImFont::IsLoaded`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_loaded(&self) -> bool {
+ unsafe { sys::ImFont_IsLoaded(self as *const Self) }
+ }
+ /// `ImFont::GetDebugName`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_debug_name(&self) -> &'static str {
+ unsafe { crate::from_cstr(sys::ImFont_GetDebugName(self as *const Self)) }
+ }
+ /// `ImFont::GetFontBaked`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_font_baked(&mut self, font_size: f32) -> Option<&'static mut ImFontBaked> {
+ unsafe { sys::ImFont_GetFontBaked(self as *mut Self, font_size).as_mut() }
+ }
+ /// `ImFont::GetFontBaked`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_font_baked_ex(&mut self, font_size: f32, density: f32) -> Option<&'static mut ImFontBaked> {
+ unsafe { sys::ImFont_GetFontBakedEx(self as *mut Self, font_size, density).as_mut() }
+ }
+ /// `ImFont::CalcTextSizeA`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn calc_text_size_a(&mut self, size: f32, max_width: f32, wrap_width: f32, text_begin: &str) -> ImVec2 {
+ let __text_begin = crate::cs(text_begin);
+ unsafe { sys::ImFont_CalcTextSizeA(self as *mut Self, size, max_width, wrap_width, __text_begin.as_ptr()) }
+ }
+ /// `ImFont::CalcTextSizeA`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn calc_text_size_a_ex(&mut self, size: f32, max_width: f32, wrap_width: f32, text_begin: &str, text_end: Option<&str>) -> ImVec2 {
+ let __text_begin = crate::cs(text_begin);
+ let __text_end = text_end.map(crate::cs);
+ unsafe { sys::ImFont_CalcTextSizeAEx(self as *mut Self, size, max_width, wrap_width, __text_begin.as_ptr(), __text_end.as_ref().map_or(core::ptr::null(), |s| s.as_ptr()), core::ptr::null_mut()) }
+ }
+ /// `ImFont::CalcWordWrapPosition`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn calc_word_wrap_position(&mut self, size: f32, text: &str, text_end: &str, wrap_width: f32) -> &'static str {
+ let __text = crate::cs(text);
+ let __text_end = crate::cs(text_end);
+ unsafe { crate::from_cstr(sys::ImFont_CalcWordWrapPosition(self as *mut Self, size, __text.as_ptr(), __text_end.as_ptr(), wrap_width)) }
+ }
+ /// `ImFont::RenderChar`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn render_char(&mut self, draw_list: &mut ImDrawList, size: f32, pos: impl Into<ImVec2>, col: ImU32, c: ImWchar) {
+ unsafe { sys::ImFont_RenderChar(self as *mut Self, draw_list as *mut ImDrawList, size, pos.into(), col, c) }
+ }
+ /// `ImFont::RenderChar`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn render_char_ex(&mut self, draw_list: &mut ImDrawList, size: f32, pos: impl Into<ImVec2>, col: ImU32, c: ImWchar, cpu_fine_clip: Option<&ImVec4>) {
+ unsafe { sys::ImFont_RenderCharEx(self as *mut Self, draw_list as *mut ImDrawList, size, pos.into(), col, c, cpu_fine_clip.map_or(core::ptr::null(), |r| r as *const ImVec4)) }
+ }
+ /// `ImFont::RenderText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn render_text(&mut self, draw_list: &mut ImDrawList, size: f32, pos: impl Into<ImVec2>, col: ImU32, clip_rect: impl Into<ImVec4>, text_begin: &str, text_end: &str) {
+ let __text_begin = crate::cs(text_begin);
+ let __text_end = crate::cs(text_end);
+ unsafe { sys::ImFont_RenderText(self as *mut Self, draw_list as *mut ImDrawList, size, pos.into(), col, clip_rect.into(), __text_begin.as_ptr(), __text_end.as_ptr()) }
+ }
+ /// `ImFont::RenderText`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn render_text_ex(&mut self, draw_list: &mut ImDrawList, size: f32, pos: impl Into<ImVec2>, col: ImU32, clip_rect: impl Into<ImVec4>, text_begin: &str, text_end: &str, wrap_width: f32, flags: ImDrawTextFlags) {
+ let __text_begin = crate::cs(text_begin);
+ let __text_end = crate::cs(text_end);
+ unsafe { sys::ImFont_RenderTextEx(self as *mut Self, draw_list as *mut ImDrawList, size, pos.into(), col, clip_rect.into(), __text_begin.as_ptr(), __text_end.as_ptr(), wrap_width, flags) }
+ }
+ /// `ImFont::ClearOutputData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_output_data(&mut self) {
+ unsafe { sys::ImFont_ClearOutputData(self as *mut Self) }
+ }
+ /// `ImFont::AddRemapCodepoint`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_remap_codepoint(&mut self, from_codepoint: ImWchar, to_codepoint: ImWchar) {
+ unsafe { sys::ImFont_AddRemapCodepoint(self as *mut Self, from_codepoint, to_codepoint) }
+ }
+ /// `ImFont::AddRemapCodepointToGlyphIndex`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn add_remap_codepoint_to_glyph_index(&mut self, from_codepoint: ImWchar, font_src_idx: c_int, glyph_idx: c_int) {
+ unsafe { sys::ImFont_AddRemapCodepointToGlyphIndex(self as *mut Self, from_codepoint, font_src_idx, glyph_idx) }
+ }
+ /// `ImFont::IsGlyphRangeUnused`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn is_glyph_range_unused(&mut self, c_begin: c_uint, c_last: c_uint) -> bool {
+ unsafe { sys::ImFont_IsGlyphRangeUnused(self as *mut Self, c_begin, c_last) }
+ }
+}
+impl crate::Delete for ImFont {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImFont_Delete(p) } }
+}
+impl ImGuiViewport {
+ /// `ImGuiViewport::ImGuiViewport`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiViewport> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiViewport_New()) }
+ }
+ /// `ImGuiViewport::GetCenter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_center(&self) -> ImVec2 {
+ unsafe { sys::ImGuiViewport_GetCenter(self as *const Self) }
+ }
+ /// `ImGuiViewport::GetWorkCenter`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn get_work_center(&self) -> ImVec2 {
+ unsafe { sys::ImGuiViewport_GetWorkCenter(self as *const Self) }
+ }
+}
+impl crate::Delete for ImGuiViewport {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiViewport_Delete(p) } }
+}
+impl ImGuiPlatformIO {
+ /// `ImGuiPlatformIO::ImGuiPlatformIO`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiPlatformIO> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiPlatformIO_New()) }
+ }
+ /// `ImGuiPlatformIO::ClearPlatformHandlers`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_platform_handlers(&mut self) {
+ unsafe { sys::ImGuiPlatformIO_ClearPlatformHandlers(self as *mut Self) }
+ }
+ /// `ImGuiPlatformIO::ClearRendererHandlers`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn clear_renderer_handlers(&mut self) {
+ unsafe { sys::ImGuiPlatformIO_ClearRendererHandlers(self as *mut Self) }
+ }
+}
+impl crate::Delete for ImGuiPlatformIO {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiPlatformIO_Delete(p) } }
+}
+impl ImGuiPlatformImeData {
+ /// `ImGuiPlatformImeData::ImGuiPlatformImeData`
+ #[allow(clippy::too_many_arguments, unused_unsafe)]
+ pub fn new() -> crate::Owned<ImGuiPlatformImeData> {
+ unsafe { crate::Owned::from_raw(sys::ImGuiPlatformImeData_New()) }
+ }
+}
+impl crate::Delete for ImGuiPlatformImeData {
+ unsafe fn delete(p: *mut Self) { unsafe { sys::ImGuiPlatformImeData_Delete(p) } }
+}
diff --git a/bindings/rust/blenderui-imgui/src/sys.rs b/bindings/rust/blenderui-imgui/src/sys.rs
new file mode 100644
index 0000000..e3029b1
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/src/sys.rs
@@ -0,0 +1,2486 @@
+//! Raw FFI to Dear ImGui 1.93.1 WIP through its C API (bindings/imgui/c/cimgui.h).
+//! Generated by bindings/imgui/gen/gen.py from imgui.h: do not edit (py -3 -I bindings/imgui/gen/gen.py).
+#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals, dead_code, clippy::all, improper_ctypes)]
+
+use core::ffi::{c_char, c_int, c_uint, c_void};
+
+/// `va_list` functions (`ImGui_TextV`...) are not declared: use the variadic ones.
+pub type VaList = *mut c_void;
+
+#[repr(C)]
+pub struct ImVector<T> {
+ pub Size: c_int,
+ pub Capacity: c_int,
+ pub Data: *mut T,
+}
+impl<T> ImVector<T> {
+ /// The elements (empty when Data is null).
+ pub fn as_slice(&self) -> &[T] {
+ if self.Data.is_null() || self.Size <= 0 { &[] } else { unsafe { core::slice::from_raw_parts(self.Data, self.Size as usize) } }
+ }
+}
+
+pub type ImGuiID = c_uint;
+pub type ImS8 = i8;
+pub type ImU8 = u8;
+pub type ImS16 = i16;
+pub type ImU16 = u16;
+pub type ImS32 = c_int;
+pub type ImU32 = c_uint;
+pub type ImS64 = i64;
+pub type ImU64 = u64;
+pub type ImGuiCol = c_int;
+pub type ImGuiCond = c_int;
+pub type ImGuiDataType = c_int;
+pub type ImGuiMouseButton = c_int;
+pub type ImGuiMouseCursor = c_int;
+pub type ImGuiStyleVar = c_int;
+pub type ImGuiTableBgTarget = c_int;
+pub type ImDrawFlags = c_int;
+pub type ImDrawTextFlags = c_int;
+pub type ImFontFlags = c_int;
+pub type ImFontAtlasFlags = c_int;
+pub type ImGuiBackendFlags = c_int;
+pub type ImGuiButtonFlags = c_int;
+pub type ImGuiChildFlags = c_int;
+pub type ImGuiColorEditFlags = c_int;
+pub type ImGuiConfigFlags = c_int;
+pub type ImGuiComboFlags = c_int;
+pub type ImGuiDragDropFlags = c_int;
+pub type ImGuiFocusedFlags = c_int;
+pub type ImGuiHoveredFlags = c_int;
+pub type ImGuiInputFlags = c_int;
+pub type ImGuiInputTextFlags = c_int;
+pub type ImGuiItemFlags = c_int;
+pub type ImGuiKeyChord = c_int;
+pub type ImGuiListClipperFlags = c_int;
+pub type ImGuiPopupFlags = c_int;
+pub type ImGuiMultiSelectFlags = c_int;
+pub type ImGuiSelectableFlags = c_int;
+pub type ImGuiSliderFlags = c_int;
+pub type ImGuiTabBarFlags = c_int;
+pub type ImGuiTabItemFlags = c_int;
+pub type ImGuiTableFlags = c_int;
+pub type ImGuiTableColumnFlags = c_int;
+pub type ImGuiTableRowFlags = c_int;
+pub type ImGuiTreeNodeFlags = c_int;
+pub type ImGuiViewportFlags = c_int;
+pub type ImGuiWindowFlags = c_int;
+pub type ImWchar32 = c_uint;
+pub type ImWchar16 = u16;
+pub type ImWchar = ImWchar16;
+pub type ImGuiSelectionUserData = ImS64;
+pub type ImGuiInputTextCallback = Option<unsafe extern "C" fn(*mut ImGuiInputTextCallbackData) -> c_int>;
+pub type ImGuiSizeCallback = Option<unsafe extern "C" fn(*mut ImGuiSizeCallbackData)>;
+pub type ImGuiMemAllocFunc = Option<unsafe extern "C" fn(usize, *mut c_void) -> *mut c_void>;
+pub type ImGuiMemFreeFunc = Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>;
+pub type ImTextureID = ImU64;
+pub type ImDrawIdx = u16;
+pub type ImDrawCallback = Option<unsafe extern "C" fn(*const ImDrawList, *const ImDrawCmd)>;
+pub type ImFontAtlasRectId = c_int;
+pub type ImGuiDir = c_int;
+pub type ImGuiSortDirection = ImU8;
+pub type ImGuiKey = c_int;
+pub type ImGuiMouseSource = c_int;
+pub type ImGuiSelectionRequestType = c_int;
+pub type ImTextureFormat = c_int;
+pub type ImTextureStatus = c_int;
+
+pub const ImGuiWindowFlags_None: ImGuiWindowFlags = 0;
+pub const ImGuiWindowFlags_NoTitleBar: ImGuiWindowFlags = 1;
+pub const ImGuiWindowFlags_NoResize: ImGuiWindowFlags = 2;
+pub const ImGuiWindowFlags_NoMove: ImGuiWindowFlags = 4;
+pub const ImGuiWindowFlags_NoScrollbar: ImGuiWindowFlags = 8;
+pub const ImGuiWindowFlags_NoScrollWithMouse: ImGuiWindowFlags = 16;
+pub const ImGuiWindowFlags_NoCollapse: ImGuiWindowFlags = 32;
+pub const ImGuiWindowFlags_AlwaysAutoResize: ImGuiWindowFlags = 64;
+pub const ImGuiWindowFlags_NoBackground: ImGuiWindowFlags = 128;
+pub const ImGuiWindowFlags_NoSavedSettings: ImGuiWindowFlags = 256;
+pub const ImGuiWindowFlags_NoMouseInputs: ImGuiWindowFlags = 512;
+pub const ImGuiWindowFlags_MenuBar: ImGuiWindowFlags = 1024;
+pub const ImGuiWindowFlags_HorizontalScrollbar: ImGuiWindowFlags = 2048;
+pub const ImGuiWindowFlags_NoFocusOnAppearing: ImGuiWindowFlags = 4096;
+pub const ImGuiWindowFlags_NoBringToFrontOnFocus: ImGuiWindowFlags = 8192;
+pub const ImGuiWindowFlags_AlwaysVerticalScrollbar: ImGuiWindowFlags = 16384;
+pub const ImGuiWindowFlags_AlwaysHorizontalScrollbar: ImGuiWindowFlags = 32768;
+pub const ImGuiWindowFlags_NoNavInputs: ImGuiWindowFlags = 65536;
+pub const ImGuiWindowFlags_NoNavFocus: ImGuiWindowFlags = 131072;
+pub const ImGuiWindowFlags_UnsavedDocument: ImGuiWindowFlags = 262144;
+pub const ImGuiWindowFlags_NoNav: ImGuiWindowFlags = 196608;
+pub const ImGuiWindowFlags_NoDecoration: ImGuiWindowFlags = 43;
+pub const ImGuiWindowFlags_NoInputs: ImGuiWindowFlags = 197120;
+pub const ImGuiWindowFlags_ChildWindow: ImGuiWindowFlags = 16777216;
+pub const ImGuiWindowFlags_Tooltip: ImGuiWindowFlags = 33554432;
+pub const ImGuiWindowFlags_Popup: ImGuiWindowFlags = 67108864;
+pub const ImGuiWindowFlags_Modal: ImGuiWindowFlags = 134217728;
+pub const ImGuiWindowFlags_ChildMenu: ImGuiWindowFlags = 268435456;
+pub const ImGuiChildFlags_None: ImGuiChildFlags = 0;
+pub const ImGuiChildFlags_Borders: ImGuiChildFlags = 1;
+pub const ImGuiChildFlags_AlwaysUseWindowPadding: ImGuiChildFlags = 2;
+pub const ImGuiChildFlags_ResizeX: ImGuiChildFlags = 4;
+pub const ImGuiChildFlags_ResizeY: ImGuiChildFlags = 8;
+pub const ImGuiChildFlags_AutoResizeX: ImGuiChildFlags = 16;
+pub const ImGuiChildFlags_AutoResizeY: ImGuiChildFlags = 32;
+pub const ImGuiChildFlags_AlwaysAutoResize: ImGuiChildFlags = 64;
+pub const ImGuiChildFlags_FrameStyle: ImGuiChildFlags = 128;
+pub const ImGuiChildFlags_NavFlattened: ImGuiChildFlags = 256;
+pub const ImGuiItemFlags_None: ImGuiItemFlags = 0;
+pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags = 1;
+pub const ImGuiItemFlags_NoNav: ImGuiItemFlags = 2;
+pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags = 4;
+pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags = 8;
+pub const ImGuiItemFlags_AutoClosePopups: ImGuiItemFlags = 16;
+pub const ImGuiItemFlags_AllowDuplicateId: ImGuiItemFlags = 32;
+pub const ImGuiItemFlags_Disabled: ImGuiItemFlags = 64;
+pub const ImGuiItemFlags_LiveEditOnInputText: ImGuiItemFlags = 128;
+pub const ImGuiItemFlags_LiveEditOnInputScalar: ImGuiItemFlags = 256;
+pub const ImGuiItemFlags_LiveEditOnInput: ImGuiItemFlags = 384;
+pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags = 512;
+pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags = 0;
+pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags = 1;
+pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags = 2;
+pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags = 4;
+pub const ImGuiInputTextFlags_CharsUppercase: ImGuiInputTextFlags = 8;
+pub const ImGuiInputTextFlags_CharsNoBlank: ImGuiInputTextFlags = 16;
+pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags = 32;
+pub const ImGuiInputTextFlags_EnterReturnsTrue: ImGuiInputTextFlags = 64;
+pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags = 128;
+pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags = 256;
+pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags = 512;
+pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags = 1024;
+pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags = 2048;
+pub const ImGuiInputTextFlags_AutoSelectAll: ImGuiInputTextFlags = 4096;
+pub const ImGuiInputTextFlags_ParseEmptyRefVal: ImGuiInputTextFlags = 8192;
+pub const ImGuiInputTextFlags_DisplayEmptyRefVal: ImGuiInputTextFlags = 16384;
+pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags = 32768;
+pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags = 65536;
+pub const ImGuiInputTextFlags_ElideLeft: ImGuiInputTextFlags = 131072;
+pub const ImGuiInputTextFlags_CallbackCompletion: ImGuiInputTextFlags = 262144;
+pub const ImGuiInputTextFlags_CallbackHistory: ImGuiInputTextFlags = 524288;
+pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags = 1048576;
+pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags = 2097152;
+pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags = 4194304;
+pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags = 8388608;
+pub const ImGuiInputTextFlags_WordWrap: ImGuiInputTextFlags = 16777216;
+pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags = 0;
+pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags = 1;
+pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags = 2;
+pub const ImGuiTreeNodeFlags_AllowOverlap: ImGuiTreeNodeFlags = 4;
+pub const ImGuiTreeNodeFlags_NoTreePushOnOpen: ImGuiTreeNodeFlags = 8;
+pub const ImGuiTreeNodeFlags_NoAutoOpenOnLog: ImGuiTreeNodeFlags = 16;
+pub const ImGuiTreeNodeFlags_DefaultOpen: ImGuiTreeNodeFlags = 32;
+pub const ImGuiTreeNodeFlags_OpenOnDoubleClick: ImGuiTreeNodeFlags = 64;
+pub const ImGuiTreeNodeFlags_OpenOnArrow: ImGuiTreeNodeFlags = 128;
+pub const ImGuiTreeNodeFlags_Leaf: ImGuiTreeNodeFlags = 256;
+pub const ImGuiTreeNodeFlags_Bullet: ImGuiTreeNodeFlags = 512;
+pub const ImGuiTreeNodeFlags_FramePadding: ImGuiTreeNodeFlags = 1024;
+pub const ImGuiTreeNodeFlags_SpanAvailWidth: ImGuiTreeNodeFlags = 2048;
+pub const ImGuiTreeNodeFlags_SpanFullWidth: ImGuiTreeNodeFlags = 4096;
+pub const ImGuiTreeNodeFlags_SpanLabelWidth: ImGuiTreeNodeFlags = 8192;
+pub const ImGuiTreeNodeFlags_SpanAllColumns: ImGuiTreeNodeFlags = 16384;
+pub const ImGuiTreeNodeFlags_LabelSpanAllColumns: ImGuiTreeNodeFlags = 32768;
+pub const ImGuiTreeNodeFlags_NavLeftJumpsToParent: ImGuiTreeNodeFlags = 131072;
+pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags = 26;
+pub const ImGuiTreeNodeFlags_DrawLinesNone: ImGuiTreeNodeFlags = 262144;
+pub const ImGuiTreeNodeFlags_DrawLinesFull: ImGuiTreeNodeFlags = 524288;
+pub const ImGuiTreeNodeFlags_DrawLinesToNodes: ImGuiTreeNodeFlags = 1048576;
+pub const ImGuiPopupFlags_None: ImGuiPopupFlags = 0;
+pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags = 4;
+pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags = 8;
+pub const ImGuiPopupFlags_MouseButtonMiddle: ImGuiPopupFlags = 12;
+pub const ImGuiPopupFlags_NoReopen: ImGuiPopupFlags = 32;
+pub const ImGuiPopupFlags_NoOpenOverExistingPopup: ImGuiPopupFlags = 128;
+pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags = 256;
+pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags = 1024;
+pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags = 2048;
+pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags = 3072;
+pub const ImGuiPopupFlags_MouseButtonShift_: ImGuiPopupFlags = 2;
+pub const ImGuiPopupFlags_MouseButtonMask_: ImGuiPopupFlags = 12;
+pub const ImGuiPopupFlags_InvalidMask_: ImGuiPopupFlags = 3;
+pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags = 0;
+pub const ImGuiSelectableFlags_NoAutoClosePopups: ImGuiSelectableFlags = 1;
+pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags = 2;
+pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags = 4;
+pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags = 8;
+pub const ImGuiSelectableFlags_AllowOverlap: ImGuiSelectableFlags = 16;
+pub const ImGuiSelectableFlags_Highlight: ImGuiSelectableFlags = 32;
+pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlags = 64;
+pub const ImGuiComboFlags_None: ImGuiComboFlags = 0;
+pub const ImGuiComboFlags_PopupAlignLeft: ImGuiComboFlags = 1;
+pub const ImGuiComboFlags_HeightSmall: ImGuiComboFlags = 2;
+pub const ImGuiComboFlags_HeightRegular: ImGuiComboFlags = 4;
+pub const ImGuiComboFlags_HeightLarge: ImGuiComboFlags = 8;
+pub const ImGuiComboFlags_HeightLargest: ImGuiComboFlags = 16;
+pub const ImGuiComboFlags_NoArrowButton: ImGuiComboFlags = 32;
+pub const ImGuiComboFlags_NoPreview: ImGuiComboFlags = 64;
+pub const ImGuiComboFlags_WidthFitPreview: ImGuiComboFlags = 128;
+pub const ImGuiComboFlags_HeightMask_: ImGuiComboFlags = 30;
+pub const ImGuiTabBarFlags_None: ImGuiTabBarFlags = 0;
+pub const ImGuiTabBarFlags_Reorderable: ImGuiTabBarFlags = 1;
+pub const ImGuiTabBarFlags_AutoSelectNewTabs: ImGuiTabBarFlags = 2;
+pub const ImGuiTabBarFlags_TabListPopupButton: ImGuiTabBarFlags = 4;
+pub const ImGuiTabBarFlags_NoCloseWithMiddleMouseButton: ImGuiTabBarFlags = 8;
+pub const ImGuiTabBarFlags_NoTabListScrollingButtons: ImGuiTabBarFlags = 16;
+pub const ImGuiTabBarFlags_NoTooltip: ImGuiTabBarFlags = 32;
+pub const ImGuiTabBarFlags_DrawSelectedOverline: ImGuiTabBarFlags = 64;
+pub const ImGuiTabBarFlags_FittingPolicyMixed: ImGuiTabBarFlags = 128;
+pub const ImGuiTabBarFlags_FittingPolicyShrink: ImGuiTabBarFlags = 256;
+pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags = 512;
+pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags = 896;
+pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags = 128;
+pub const ImGuiTabItemFlags_None: ImGuiTabItemFlags = 0;
+pub const ImGuiTabItemFlags_UnsavedDocument: ImGuiTabItemFlags = 1;
+pub const ImGuiTabItemFlags_SetSelected: ImGuiTabItemFlags = 2;
+pub const ImGuiTabItemFlags_NoCloseWithMiddleMouseButton: ImGuiTabItemFlags = 4;
+pub const ImGuiTabItemFlags_NoPushId: ImGuiTabItemFlags = 8;
+pub const ImGuiTabItemFlags_NoTooltip: ImGuiTabItemFlags = 16;
+pub const ImGuiTabItemFlags_NoReorder: ImGuiTabItemFlags = 32;
+pub const ImGuiTabItemFlags_Leading: ImGuiTabItemFlags = 64;
+pub const ImGuiTabItemFlags_Trailing: ImGuiTabItemFlags = 128;
+pub const ImGuiTabItemFlags_NoAssumedClosure: ImGuiTabItemFlags = 256;
+pub const ImGuiFocusedFlags_None: ImGuiFocusedFlags = 0;
+pub const ImGuiFocusedFlags_ChildWindows: ImGuiFocusedFlags = 1;
+pub const ImGuiFocusedFlags_RootWindow: ImGuiFocusedFlags = 2;
+pub const ImGuiFocusedFlags_AnyWindow: ImGuiFocusedFlags = 4;
+pub const ImGuiFocusedFlags_NoPopupHierarchy: ImGuiFocusedFlags = 8;
+pub const ImGuiFocusedFlags_RootAndChildWindows: ImGuiFocusedFlags = 3;
+pub const ImGuiHoveredFlags_None: ImGuiHoveredFlags = 0;
+pub const ImGuiHoveredFlags_ChildWindows: ImGuiHoveredFlags = 1;
+pub const ImGuiHoveredFlags_RootWindow: ImGuiHoveredFlags = 2;
+pub const ImGuiHoveredFlags_AnyWindow: ImGuiHoveredFlags = 4;
+pub const ImGuiHoveredFlags_NoPopupHierarchy: ImGuiHoveredFlags = 8;
+pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags = 32;
+pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags = 128;
+pub const ImGuiHoveredFlags_AllowWhenOverlappedByItem: ImGuiHoveredFlags = 256;
+pub const ImGuiHoveredFlags_AllowWhenOverlappedByWindow: ImGuiHoveredFlags = 512;
+pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags = 1024;
+pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags = 2048;
+pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags = 768;
+pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags = 928;
+pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags = 3;
+pub const ImGuiHoveredFlags_ForTooltip: ImGuiHoveredFlags = 4096;
+pub const ImGuiHoveredFlags_Stationary: ImGuiHoveredFlags = 8192;
+pub const ImGuiHoveredFlags_DelayNone: ImGuiHoveredFlags = 16384;
+pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags = 32768;
+pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags = 65536;
+pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags = 131072;
+pub const ImGuiDragDropFlags_None: ImGuiDragDropFlags = 0;
+pub const ImGuiDragDropFlags_SourceNoPreviewTooltip: ImGuiDragDropFlags = 1;
+pub const ImGuiDragDropFlags_SourceNoDisableHover: ImGuiDragDropFlags = 2;
+pub const ImGuiDragDropFlags_SourceNoHoldToOpenOthers: ImGuiDragDropFlags = 4;
+pub const ImGuiDragDropFlags_SourceAllowNullID: ImGuiDragDropFlags = 8;
+pub const ImGuiDragDropFlags_SourceExtern: ImGuiDragDropFlags = 16;
+pub const ImGuiDragDropFlags_PayloadAutoExpire: ImGuiDragDropFlags = 32;
+pub const ImGuiDragDropFlags_PayloadNoCrossContext: ImGuiDragDropFlags = 64;
+pub const ImGuiDragDropFlags_PayloadNoCrossProcess: ImGuiDragDropFlags = 128;
+pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags = 1024;
+pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags = 2048;
+pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags = 4096;
+pub const ImGuiDragDropFlags_AcceptDrawAsHovered: ImGuiDragDropFlags = 8192;
+pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags = 3072;
+pub const ImGuiDataType_S8: ImGuiDataType = 0;
+pub const ImGuiDataType_U8: ImGuiDataType = 1;
+pub const ImGuiDataType_S16: ImGuiDataType = 2;
+pub const ImGuiDataType_U16: ImGuiDataType = 3;
+pub const ImGuiDataType_S32: ImGuiDataType = 4;
+pub const ImGuiDataType_U32: ImGuiDataType = 5;
+pub const ImGuiDataType_S64: ImGuiDataType = 6;
+pub const ImGuiDataType_U64: ImGuiDataType = 7;
+pub const ImGuiDataType_Float: ImGuiDataType = 8;
+pub const ImGuiDataType_Double: ImGuiDataType = 9;
+pub const ImGuiDataType_Bool: ImGuiDataType = 10;
+pub const ImGuiDataType_String: ImGuiDataType = 11;
+pub const ImGuiDataType_COUNT: ImGuiDataType = 12;
+pub const ImGuiDir_None: ImGuiDir = -1;
+pub const ImGuiDir_Left: ImGuiDir = 0;
+pub const ImGuiDir_Right: ImGuiDir = 1;
+pub const ImGuiDir_Up: ImGuiDir = 2;
+pub const ImGuiDir_Down: ImGuiDir = 3;
+pub const ImGuiDir_COUNT: ImGuiDir = 4;
+pub const ImGuiSortDirection_None: ImGuiSortDirection = 0;
+pub const ImGuiSortDirection_Ascending: ImGuiSortDirection = 1;
+pub const ImGuiSortDirection_Descending: ImGuiSortDirection = 2;
+pub const ImGuiKey_None: ImGuiKey = 0;
+pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512;
+pub const ImGuiKey_Tab: ImGuiKey = 512;
+pub const ImGuiKey_LeftArrow: ImGuiKey = 513;
+pub const ImGuiKey_RightArrow: ImGuiKey = 514;
+pub const ImGuiKey_UpArrow: ImGuiKey = 515;
+pub const ImGuiKey_DownArrow: ImGuiKey = 516;
+pub const ImGuiKey_PageUp: ImGuiKey = 517;
+pub const ImGuiKey_PageDown: ImGuiKey = 518;
+pub const ImGuiKey_Home: ImGuiKey = 519;
+pub const ImGuiKey_End: ImGuiKey = 520;
+pub const ImGuiKey_Insert: ImGuiKey = 521;
+pub const ImGuiKey_Delete: ImGuiKey = 522;
+pub const ImGuiKey_Backspace: ImGuiKey = 523;
+pub const ImGuiKey_Space: ImGuiKey = 524;
+pub const ImGuiKey_Enter: ImGuiKey = 525;
+pub const ImGuiKey_Escape: ImGuiKey = 526;
+pub const ImGuiKey_LeftCtrl: ImGuiKey = 527;
+pub const ImGuiKey_LeftShift: ImGuiKey = 528;
+pub const ImGuiKey_LeftAlt: ImGuiKey = 529;
+pub const ImGuiKey_LeftSuper: ImGuiKey = 530;
+pub const ImGuiKey_RightCtrl: ImGuiKey = 531;
+pub const ImGuiKey_RightShift: ImGuiKey = 532;
+pub const ImGuiKey_RightAlt: ImGuiKey = 533;
+pub const ImGuiKey_RightSuper: ImGuiKey = 534;
+pub const ImGuiKey_Menu: ImGuiKey = 535;
+pub const ImGuiKey_0: ImGuiKey = 536;
+pub const ImGuiKey_1: ImGuiKey = 537;
+pub const ImGuiKey_2: ImGuiKey = 538;
+pub const ImGuiKey_3: ImGuiKey = 539;
+pub const ImGuiKey_4: ImGuiKey = 540;
+pub const ImGuiKey_5: ImGuiKey = 541;
+pub const ImGuiKey_6: ImGuiKey = 542;
+pub const ImGuiKey_7: ImGuiKey = 543;
+pub const ImGuiKey_8: ImGuiKey = 544;
+pub const ImGuiKey_9: ImGuiKey = 545;
+pub const ImGuiKey_A: ImGuiKey = 546;
+pub const ImGuiKey_B: ImGuiKey = 547;
+pub const ImGuiKey_C: ImGuiKey = 548;
+pub const ImGuiKey_D: ImGuiKey = 549;
+pub const ImGuiKey_E: ImGuiKey = 550;
+pub const ImGuiKey_F: ImGuiKey = 551;
+pub const ImGuiKey_G: ImGuiKey = 552;
+pub const ImGuiKey_H: ImGuiKey = 553;
+pub const ImGuiKey_I: ImGuiKey = 554;
+pub const ImGuiKey_J: ImGuiKey = 555;
+pub const ImGuiKey_K: ImGuiKey = 556;
+pub const ImGuiKey_L: ImGuiKey = 557;
+pub const ImGuiKey_M: ImGuiKey = 558;
+pub const ImGuiKey_N: ImGuiKey = 559;
+pub const ImGuiKey_O: ImGuiKey = 560;
+pub const ImGuiKey_P: ImGuiKey = 561;
+pub const ImGuiKey_Q: ImGuiKey = 562;
+pub const ImGuiKey_R: ImGuiKey = 563;
+pub const ImGuiKey_S: ImGuiKey = 564;
+pub const ImGuiKey_T: ImGuiKey = 565;
+pub const ImGuiKey_U: ImGuiKey = 566;
+pub const ImGuiKey_V: ImGuiKey = 567;
+pub const ImGuiKey_W: ImGuiKey = 568;
+pub const ImGuiKey_X: ImGuiKey = 569;
+pub const ImGuiKey_Y: ImGuiKey = 570;
+pub const ImGuiKey_Z: ImGuiKey = 571;
+pub const ImGuiKey_F1: ImGuiKey = 572;
+pub const ImGuiKey_F2: ImGuiKey = 573;
+pub const ImGuiKey_F3: ImGuiKey = 574;
+pub const ImGuiKey_F4: ImGuiKey = 575;
+pub const ImGuiKey_F5: ImGuiKey = 576;
+pub const ImGuiKey_F6: ImGuiKey = 577;
+pub const ImGuiKey_F7: ImGuiKey = 578;
+pub const ImGuiKey_F8: ImGuiKey = 579;
+pub const ImGuiKey_F9: ImGuiKey = 580;
+pub const ImGuiKey_F10: ImGuiKey = 581;
+pub const ImGuiKey_F11: ImGuiKey = 582;
+pub const ImGuiKey_F12: ImGuiKey = 583;
+pub const ImGuiKey_F13: ImGuiKey = 584;
+pub const ImGuiKey_F14: ImGuiKey = 585;
+pub const ImGuiKey_F15: ImGuiKey = 586;
+pub const ImGuiKey_F16: ImGuiKey = 587;
+pub const ImGuiKey_F17: ImGuiKey = 588;
+pub const ImGuiKey_F18: ImGuiKey = 589;
+pub const ImGuiKey_F19: ImGuiKey = 590;
+pub const ImGuiKey_F20: ImGuiKey = 591;
+pub const ImGuiKey_F21: ImGuiKey = 592;
+pub const ImGuiKey_F22: ImGuiKey = 593;
+pub const ImGuiKey_F23: ImGuiKey = 594;
+pub const ImGuiKey_F24: ImGuiKey = 595;
+pub const ImGuiKey_Apostrophe: ImGuiKey = 596;
+pub const ImGuiKey_Comma: ImGuiKey = 597;
+pub const ImGuiKey_Minus: ImGuiKey = 598;
+pub const ImGuiKey_Period: ImGuiKey = 599;
+pub const ImGuiKey_Slash: ImGuiKey = 600;
+pub const ImGuiKey_Semicolon: ImGuiKey = 601;
+pub const ImGuiKey_Equal: ImGuiKey = 602;
+pub const ImGuiKey_LeftBracket: ImGuiKey = 603;
+pub const ImGuiKey_Backslash: ImGuiKey = 604;
+pub const ImGuiKey_RightBracket: ImGuiKey = 605;
+pub const ImGuiKey_GraveAccent: ImGuiKey = 606;
+pub const ImGuiKey_CapsLock: ImGuiKey = 607;
+pub const ImGuiKey_ScrollLock: ImGuiKey = 608;
+pub const ImGuiKey_NumLock: ImGuiKey = 609;
+pub const ImGuiKey_PrintScreen: ImGuiKey = 610;
+pub const ImGuiKey_Pause: ImGuiKey = 611;
+pub const ImGuiKey_Keypad0: ImGuiKey = 612;
+pub const ImGuiKey_Keypad1: ImGuiKey = 613;
+pub const ImGuiKey_Keypad2: ImGuiKey = 614;
+pub const ImGuiKey_Keypad3: ImGuiKey = 615;
+pub const ImGuiKey_Keypad4: ImGuiKey = 616;
+pub const ImGuiKey_Keypad5: ImGuiKey = 617;
+pub const ImGuiKey_Keypad6: ImGuiKey = 618;
+pub const ImGuiKey_Keypad7: ImGuiKey = 619;
+pub const ImGuiKey_Keypad8: ImGuiKey = 620;
+pub const ImGuiKey_Keypad9: ImGuiKey = 621;
+pub const ImGuiKey_KeypadDecimal: ImGuiKey = 622;
+pub const ImGuiKey_KeypadDivide: ImGuiKey = 623;
+pub const ImGuiKey_KeypadMultiply: ImGuiKey = 624;
+pub const ImGuiKey_KeypadSubtract: ImGuiKey = 625;
+pub const ImGuiKey_KeypadAdd: ImGuiKey = 626;
+pub const ImGuiKey_KeypadEnter: ImGuiKey = 627;
+pub const ImGuiKey_KeypadEqual: ImGuiKey = 628;
+pub const ImGuiKey_AppBack: ImGuiKey = 629;
+pub const ImGuiKey_AppForward: ImGuiKey = 630;
+pub const ImGuiKey_Oem102: ImGuiKey = 631;
+pub const ImGuiKey_GamepadStart: ImGuiKey = 632;
+pub const ImGuiKey_GamepadBack: ImGuiKey = 633;
+pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 634;
+pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 635;
+pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 636;
+pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 637;
+pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 638;
+pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 639;
+pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 640;
+pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 641;
+pub const ImGuiKey_GamepadL1: ImGuiKey = 642;
+pub const ImGuiKey_GamepadR1: ImGuiKey = 643;
+pub const ImGuiKey_GamepadL2: ImGuiKey = 644;
+pub const ImGuiKey_GamepadR2: ImGuiKey = 645;
+pub const ImGuiKey_GamepadL3: ImGuiKey = 646;
+pub const ImGuiKey_GamepadR3: ImGuiKey = 647;
+pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 648;
+pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 649;
+pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 650;
+pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 651;
+pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 652;
+pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 653;
+pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 654;
+pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 655;
+pub const ImGuiKey_MouseLeft: ImGuiKey = 656;
+pub const ImGuiKey_MouseRight: ImGuiKey = 657;
+pub const ImGuiKey_MouseMiddle: ImGuiKey = 658;
+pub const ImGuiKey_MouseX1: ImGuiKey = 659;
+pub const ImGuiKey_MouseX2: ImGuiKey = 660;
+pub const ImGuiKey_MouseWheelX: ImGuiKey = 661;
+pub const ImGuiKey_MouseWheelY: ImGuiKey = 662;
+pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 663;
+pub const ImGuiKey_ReservedForModShift: ImGuiKey = 664;
+pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 665;
+pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 666;
+pub const ImGuiKey_NamedKey_END: ImGuiKey = 667;
+pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 155;
+pub const ImGuiMod_None: ImGuiKey = 0;
+pub const ImGuiMod_Ctrl: ImGuiKey = 4096;
+pub const ImGuiMod_Shift: ImGuiKey = 8192;
+pub const ImGuiMod_Alt: ImGuiKey = 16384;
+pub const ImGuiMod_Super: ImGuiKey = 32768;
+pub const ImGuiMod_Mask_: ImGuiKey = 61440;
+pub const ImGuiInputFlags_None: ImGuiInputFlags = 0;
+pub const ImGuiInputFlags_Repeat: ImGuiInputFlags = 1;
+pub const ImGuiInputFlags_RouteActive: ImGuiInputFlags = 1024;
+pub const ImGuiInputFlags_RouteFocused: ImGuiInputFlags = 2048;
+pub const ImGuiInputFlags_RouteGlobal: ImGuiInputFlags = 4096;
+pub const ImGuiInputFlags_RouteAlways: ImGuiInputFlags = 8192;
+pub const ImGuiInputFlags_RouteOverFocused: ImGuiInputFlags = 16384;
+pub const ImGuiInputFlags_RouteOverActive: ImGuiInputFlags = 32768;
+pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags = 65536;
+pub const ImGuiInputFlags_RouteFromRootWindow: ImGuiInputFlags = 131072;
+pub const ImGuiInputFlags_Tooltip: ImGuiInputFlags = 262144;
+pub const ImGuiConfigFlags_None: ImGuiConfigFlags = 0;
+pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags = 1;
+pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags = 2;
+pub const ImGuiConfigFlags_NoMouse: ImGuiConfigFlags = 16;
+pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags = 32;
+pub const ImGuiConfigFlags_NoKeyboard: ImGuiConfigFlags = 64;
+pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags = 1048576;
+pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags = 2097152;
+pub const ImGuiBackendFlags_None: ImGuiBackendFlags = 0;
+pub const ImGuiBackendFlags_HasGamepad: ImGuiBackendFlags = 1;
+pub const ImGuiBackendFlags_HasMouseCursors: ImGuiBackendFlags = 2;
+pub const ImGuiBackendFlags_HasSetMousePos: ImGuiBackendFlags = 4;
+pub const ImGuiBackendFlags_RendererHasVtxOffset: ImGuiBackendFlags = 8;
+pub const ImGuiBackendFlags_RendererHasTextures: ImGuiBackendFlags = 16;
+pub const ImGuiCol_Text: ImGuiCol = 0;
+pub const ImGuiCol_TextDisabled: ImGuiCol = 1;
+pub const ImGuiCol_WindowBg: ImGuiCol = 2;
+pub const ImGuiCol_ChildBg: ImGuiCol = 3;
+pub const ImGuiCol_PopupBg: ImGuiCol = 4;
+pub const ImGuiCol_Border: ImGuiCol = 5;
+pub const ImGuiCol_BorderShadow: ImGuiCol = 6;
+pub const ImGuiCol_FrameBg: ImGuiCol = 7;
+pub const ImGuiCol_FrameBgHovered: ImGuiCol = 8;
+pub const ImGuiCol_FrameBgActive: ImGuiCol = 9;
+pub const ImGuiCol_TitleBg: ImGuiCol = 10;
+pub const ImGuiCol_TitleBgActive: ImGuiCol = 11;
+pub const ImGuiCol_TitleBgCollapsed: ImGuiCol = 12;
+pub const ImGuiCol_MenuBarBg: ImGuiCol = 13;
+pub const ImGuiCol_ScrollbarBg: ImGuiCol = 14;
+pub const ImGuiCol_ScrollbarGrab: ImGuiCol = 15;
+pub const ImGuiCol_ScrollbarGrabHovered: ImGuiCol = 16;
+pub const ImGuiCol_ScrollbarGrabActive: ImGuiCol = 17;
+pub const ImGuiCol_CheckMark: ImGuiCol = 18;
+pub const ImGuiCol_CheckboxSelectedBg: ImGuiCol = 19;
+pub const ImGuiCol_SliderGrab: ImGuiCol = 20;
+pub const ImGuiCol_SliderGrabActive: ImGuiCol = 21;
+pub const ImGuiCol_Button: ImGuiCol = 22;
+pub const ImGuiCol_ButtonHovered: ImGuiCol = 23;
+pub const ImGuiCol_ButtonActive: ImGuiCol = 24;
+pub const ImGuiCol_Header: ImGuiCol = 25;
+pub const ImGuiCol_HeaderHovered: ImGuiCol = 26;
+pub const ImGuiCol_HeaderActive: ImGuiCol = 27;
+pub const ImGuiCol_Separator: ImGuiCol = 28;
+pub const ImGuiCol_SeparatorHovered: ImGuiCol = 29;
+pub const ImGuiCol_SeparatorActive: ImGuiCol = 30;
+pub const ImGuiCol_ResizeGrip: ImGuiCol = 31;
+pub const ImGuiCol_ResizeGripHovered: ImGuiCol = 32;
+pub const ImGuiCol_ResizeGripActive: ImGuiCol = 33;
+pub const ImGuiCol_InputTextCursor: ImGuiCol = 34;
+pub const ImGuiCol_TabHovered: ImGuiCol = 35;
+pub const ImGuiCol_Tab: ImGuiCol = 36;
+pub const ImGuiCol_TabSelected: ImGuiCol = 37;
+pub const ImGuiCol_TabSelectedOverline: ImGuiCol = 38;
+pub const ImGuiCol_TabDimmed: ImGuiCol = 39;
+pub const ImGuiCol_TabDimmedSelected: ImGuiCol = 40;
+pub const ImGuiCol_TabDimmedSelectedOverline: ImGuiCol = 41;
+pub const ImGuiCol_PlotLines: ImGuiCol = 42;
+pub const ImGuiCol_PlotLinesHovered: ImGuiCol = 43;
+pub const ImGuiCol_PlotHistogram: ImGuiCol = 44;
+pub const ImGuiCol_PlotHistogramHovered: ImGuiCol = 45;
+pub const ImGuiCol_TableHeaderBg: ImGuiCol = 46;
+pub const ImGuiCol_TableBorderStrong: ImGuiCol = 47;
+pub const ImGuiCol_TableBorderLight: ImGuiCol = 48;
+pub const ImGuiCol_TableRowBg: ImGuiCol = 49;
+pub const ImGuiCol_TableRowBgAlt: ImGuiCol = 50;
+pub const ImGuiCol_TextLink: ImGuiCol = 51;
+pub const ImGuiCol_TextSelectedBg: ImGuiCol = 52;
+pub const ImGuiCol_TreeLines: ImGuiCol = 53;
+pub const ImGuiCol_DragDropTarget: ImGuiCol = 54;
+pub const ImGuiCol_DragDropTargetBg: ImGuiCol = 55;
+pub const ImGuiCol_UnsavedMarker: ImGuiCol = 56;
+pub const ImGuiCol_NavCursor: ImGuiCol = 57;
+pub const ImGuiCol_NavWindowingHighlight: ImGuiCol = 58;
+pub const ImGuiCol_NavWindowingDimBg: ImGuiCol = 59;
+pub const ImGuiCol_ModalWindowDimBg: ImGuiCol = 60;
+pub const ImGuiCol_COUNT: ImGuiCol = 61;
+pub const ImGuiStyleVar_Alpha: ImGuiStyleVar = 0;
+pub const ImGuiStyleVar_DisabledAlpha: ImGuiStyleVar = 1;
+pub const ImGuiStyleVar_WindowPadding: ImGuiStyleVar = 2;
+pub const ImGuiStyleVar_WindowRounding: ImGuiStyleVar = 3;
+pub const ImGuiStyleVar_WindowBorderSize: ImGuiStyleVar = 4;
+pub const ImGuiStyleVar_WindowMinSize: ImGuiStyleVar = 5;
+pub const ImGuiStyleVar_WindowTitleAlign: ImGuiStyleVar = 6;
+pub const ImGuiStyleVar_ChildRounding: ImGuiStyleVar = 7;
+pub const ImGuiStyleVar_ChildBorderSize: ImGuiStyleVar = 8;
+pub const ImGuiStyleVar_PopupRounding: ImGuiStyleVar = 9;
+pub const ImGuiStyleVar_PopupBorderSize: ImGuiStyleVar = 10;
+pub const ImGuiStyleVar_FramePadding: ImGuiStyleVar = 11;
+pub const ImGuiStyleVar_FrameRounding: ImGuiStyleVar = 12;
+pub const ImGuiStyleVar_FrameBorderSize: ImGuiStyleVar = 13;
+pub const ImGuiStyleVar_ItemSpacing: ImGuiStyleVar = 14;
+pub const ImGuiStyleVar_ItemInnerSpacing: ImGuiStyleVar = 15;
+pub const ImGuiStyleVar_IndentSpacing: ImGuiStyleVar = 16;
+pub const ImGuiStyleVar_CellPadding: ImGuiStyleVar = 17;
+pub const ImGuiStyleVar_ScrollbarSize: ImGuiStyleVar = 18;
+pub const ImGuiStyleVar_ScrollbarRounding: ImGuiStyleVar = 19;
+pub const ImGuiStyleVar_ScrollbarPadding: ImGuiStyleVar = 20;
+pub const ImGuiStyleVar_GrabMinSize: ImGuiStyleVar = 21;
+pub const ImGuiStyleVar_GrabRounding: ImGuiStyleVar = 22;
+pub const ImGuiStyleVar_ImageRounding: ImGuiStyleVar = 23;
+pub const ImGuiStyleVar_ImageBorderSize: ImGuiStyleVar = 24;
+pub const ImGuiStyleVar_TabRounding: ImGuiStyleVar = 25;
+pub const ImGuiStyleVar_TabBorderSize: ImGuiStyleVar = 26;
+pub const ImGuiStyleVar_TabMinWidthBase: ImGuiStyleVar = 27;
+pub const ImGuiStyleVar_TabMinWidthShrink: ImGuiStyleVar = 28;
+pub const ImGuiStyleVar_TabBarBorderSize: ImGuiStyleVar = 29;
+pub const ImGuiStyleVar_TabBarOverlineSize: ImGuiStyleVar = 30;
+pub const ImGuiStyleVar_TableAngledHeadersAngle: ImGuiStyleVar = 31;
+pub const ImGuiStyleVar_TableAngledHeadersTextAlign: ImGuiStyleVar = 32;
+pub const ImGuiStyleVar_TreeLinesSize: ImGuiStyleVar = 33;
+pub const ImGuiStyleVar_TreeLinesRounding: ImGuiStyleVar = 34;
+pub const ImGuiStyleVar_MenuItemRounding: ImGuiStyleVar = 35;
+pub const ImGuiStyleVar_SelectableRounding: ImGuiStyleVar = 36;
+pub const ImGuiStyleVar_DragDropTargetRounding: ImGuiStyleVar = 37;
+pub const ImGuiStyleVar_ButtonTextAlign: ImGuiStyleVar = 38;
+pub const ImGuiStyleVar_SelectableTextAlign: ImGuiStyleVar = 39;
+pub const ImGuiStyleVar_SeparatorSize: ImGuiStyleVar = 40;
+pub const ImGuiStyleVar_SeparatorTextBorderSize: ImGuiStyleVar = 41;
+pub const ImGuiStyleVar_SeparatorTextAlign: ImGuiStyleVar = 42;
+pub const ImGuiStyleVar_SeparatorTextPadding: ImGuiStyleVar = 43;
+pub const ImGuiStyleVar_COUNT: ImGuiStyleVar = 44;
+pub const ImGuiButtonFlags_None: ImGuiButtonFlags = 0;
+pub const ImGuiButtonFlags_MouseButtonLeft: ImGuiButtonFlags = 1;
+pub const ImGuiButtonFlags_MouseButtonRight: ImGuiButtonFlags = 2;
+pub const ImGuiButtonFlags_MouseButtonMiddle: ImGuiButtonFlags = 4;
+pub const ImGuiButtonFlags_MouseButtonMask_: ImGuiButtonFlags = 7;
+pub const ImGuiButtonFlags_EnableNav: ImGuiButtonFlags = 8;
+pub const ImGuiButtonFlags_AllowOverlap: ImGuiButtonFlags = 4096;
+pub const ImGuiColorEditFlags_None: ImGuiColorEditFlags = 0;
+pub const ImGuiColorEditFlags_NoAlpha: ImGuiColorEditFlags = 2;
+pub const ImGuiColorEditFlags_NoPicker: ImGuiColorEditFlags = 4;
+pub const ImGuiColorEditFlags_NoOptions: ImGuiColorEditFlags = 8;
+pub const ImGuiColorEditFlags_NoSmallPreview: ImGuiColorEditFlags = 16;
+pub const ImGuiColorEditFlags_NoInputs: ImGuiColorEditFlags = 32;
+pub const ImGuiColorEditFlags_NoTooltip: ImGuiColorEditFlags = 64;
+pub const ImGuiColorEditFlags_NoLabel: ImGuiColorEditFlags = 128;
+pub const ImGuiColorEditFlags_NoSidePreview: ImGuiColorEditFlags = 256;
+pub const ImGuiColorEditFlags_NoDragDrop: ImGuiColorEditFlags = 512;
+pub const ImGuiColorEditFlags_NoBorder: ImGuiColorEditFlags = 1024;
+pub const ImGuiColorEditFlags_NoColorMarkers: ImGuiColorEditFlags = 2048;
+pub const ImGuiColorEditFlags_AlphaOpaque: ImGuiColorEditFlags = 4096;
+pub const ImGuiColorEditFlags_AlphaNoBg: ImGuiColorEditFlags = 8192;
+pub const ImGuiColorEditFlags_AlphaPreviewHalf: ImGuiColorEditFlags = 16384;
+pub const ImGuiColorEditFlags_AlphaBar: ImGuiColorEditFlags = 262144;
+pub const ImGuiColorEditFlags_HDR: ImGuiColorEditFlags = 524288;
+pub const ImGuiColorEditFlags_DisplayRGB: ImGuiColorEditFlags = 1048576;
+pub const ImGuiColorEditFlags_DisplayHSV: ImGuiColorEditFlags = 2097152;
+pub const ImGuiColorEditFlags_DisplayHex: ImGuiColorEditFlags = 4194304;
+pub const ImGuiColorEditFlags_Uint8: ImGuiColorEditFlags = 8388608;
+pub const ImGuiColorEditFlags_Float: ImGuiColorEditFlags = 16777216;
+pub const ImGuiColorEditFlags_PickerHueBar: ImGuiColorEditFlags = 33554432;
+pub const ImGuiColorEditFlags_PickerHueWheel: ImGuiColorEditFlags = 67108864;
+pub const ImGuiColorEditFlags_PickerNoRotate: ImGuiColorEditFlags = 134217728;
+pub const ImGuiColorEditFlags_InputRGB: ImGuiColorEditFlags = 268435456;
+pub const ImGuiColorEditFlags_InputHSV: ImGuiColorEditFlags = 536870912;
+pub const ImGuiColorEditFlags_DefaultOptions_: ImGuiColorEditFlags = 311427072;
+pub const ImGuiColorEditFlags_AlphaMask_: ImGuiColorEditFlags = 28674;
+pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags = 7340032;
+pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags = 25165824;
+pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags = 100663296;
+pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags = 805306368;
+pub const ImGuiSliderFlags_None: ImGuiSliderFlags = 0;
+pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags = 32;
+pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags = 64;
+pub const ImGuiSliderFlags_NoInput: ImGuiSliderFlags = 128;
+pub const ImGuiSliderFlags_WrapAround: ImGuiSliderFlags = 256;
+pub const ImGuiSliderFlags_ClampOnInput: ImGuiSliderFlags = 512;
+pub const ImGuiSliderFlags_ClampZeroRange: ImGuiSliderFlags = 1024;
+pub const ImGuiSliderFlags_NoSpeedTweaks: ImGuiSliderFlags = 2048;
+pub const ImGuiSliderFlags_ColorMarkers: ImGuiSliderFlags = 4096;
+pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags = 1536;
+pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags = 1879048207;
+pub const ImGuiMouseButton_Left: ImGuiMouseButton = 0;
+pub const ImGuiMouseButton_Right: ImGuiMouseButton = 1;
+pub const ImGuiMouseButton_Middle: ImGuiMouseButton = 2;
+pub const ImGuiMouseButton_COUNT: ImGuiMouseButton = 5;
+pub const ImGuiMouseCursor_None: ImGuiMouseCursor = -1;
+pub const ImGuiMouseCursor_Arrow: ImGuiMouseCursor = 0;
+pub const ImGuiMouseCursor_TextInput: ImGuiMouseCursor = 1;
+pub const ImGuiMouseCursor_ResizeAll: ImGuiMouseCursor = 2;
+pub const ImGuiMouseCursor_ResizeNS: ImGuiMouseCursor = 3;
+pub const ImGuiMouseCursor_ResizeEW: ImGuiMouseCursor = 4;
+pub const ImGuiMouseCursor_ResizeNESW: ImGuiMouseCursor = 5;
+pub const ImGuiMouseCursor_ResizeNWSE: ImGuiMouseCursor = 6;
+pub const ImGuiMouseCursor_Hand: ImGuiMouseCursor = 7;
+pub const ImGuiMouseCursor_Wait: ImGuiMouseCursor = 8;
+pub const ImGuiMouseCursor_Progress: ImGuiMouseCursor = 9;
+pub const ImGuiMouseCursor_NotAllowed: ImGuiMouseCursor = 10;
+pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor = 11;
+pub const ImGuiMouseSource_Mouse: ImGuiMouseSource = 0;
+pub const ImGuiMouseSource_TouchScreen: ImGuiMouseSource = 1;
+pub const ImGuiMouseSource_Pen: ImGuiMouseSource = 2;
+pub const ImGuiMouseSource_COUNT: ImGuiMouseSource = 3;
+pub const ImGuiCond_None: ImGuiCond = 0;
+pub const ImGuiCond_Always: ImGuiCond = 1;
+pub const ImGuiCond_Once: ImGuiCond = 2;
+pub const ImGuiCond_FirstUseEver: ImGuiCond = 4;
+pub const ImGuiCond_Appearing: ImGuiCond = 8;
+pub const ImGuiTableFlags_None: ImGuiTableFlags = 0;
+pub const ImGuiTableFlags_Resizable: ImGuiTableFlags = 1;
+pub const ImGuiTableFlags_Reorderable: ImGuiTableFlags = 2;
+pub const ImGuiTableFlags_Hideable: ImGuiTableFlags = 4;
+pub const ImGuiTableFlags_Sortable: ImGuiTableFlags = 8;
+pub const ImGuiTableFlags_NoSavedSettings: ImGuiTableFlags = 16;
+pub const ImGuiTableFlags_ContextMenuInBody: ImGuiTableFlags = 32;
+pub const ImGuiTableFlags_RowBg: ImGuiTableFlags = 64;
+pub const ImGuiTableFlags_BordersInnerH: ImGuiTableFlags = 128;
+pub const ImGuiTableFlags_BordersOuterH: ImGuiTableFlags = 256;
+pub const ImGuiTableFlags_BordersInnerV: ImGuiTableFlags = 512;
+pub const ImGuiTableFlags_BordersOuterV: ImGuiTableFlags = 1024;
+pub const ImGuiTableFlags_BordersH: ImGuiTableFlags = 384;
+pub const ImGuiTableFlags_BordersV: ImGuiTableFlags = 1536;
+pub const ImGuiTableFlags_BordersInner: ImGuiTableFlags = 640;
+pub const ImGuiTableFlags_BordersOuter: ImGuiTableFlags = 1280;
+pub const ImGuiTableFlags_Borders: ImGuiTableFlags = 1920;
+pub const ImGuiTableFlags_NoBordersInBody: ImGuiTableFlags = 2048;
+pub const ImGuiTableFlags_NoBordersInBodyUntilResize: ImGuiTableFlags = 4096;
+pub const ImGuiTableFlags_SizingFixedFit: ImGuiTableFlags = 8192;
+pub const ImGuiTableFlags_SizingFixedSame: ImGuiTableFlags = 16384;
+pub const ImGuiTableFlags_SizingStretchProp: ImGuiTableFlags = 24576;
+pub const ImGuiTableFlags_SizingStretchSame: ImGuiTableFlags = 32768;
+pub const ImGuiTableFlags_NoHostExtendX: ImGuiTableFlags = 65536;
+pub const ImGuiTableFlags_NoHostExtendY: ImGuiTableFlags = 131072;
+pub const ImGuiTableFlags_NoKeepColumnsVisible: ImGuiTableFlags = 262144;
+pub const ImGuiTableFlags_PreciseWidths: ImGuiTableFlags = 524288;
+pub const ImGuiTableFlags_NoClip: ImGuiTableFlags = 1048576;
+pub const ImGuiTableFlags_PadOuterX: ImGuiTableFlags = 2097152;
+pub const ImGuiTableFlags_NoPadOuterX: ImGuiTableFlags = 4194304;
+pub const ImGuiTableFlags_NoPadInnerX: ImGuiTableFlags = 8388608;
+pub const ImGuiTableFlags_ScrollX: ImGuiTableFlags = 16777216;
+pub const ImGuiTableFlags_ScrollY: ImGuiTableFlags = 33554432;
+pub const ImGuiTableFlags_SortMulti: ImGuiTableFlags = 67108864;
+pub const ImGuiTableFlags_SortTristate: ImGuiTableFlags = 134217728;
+pub const ImGuiTableFlags_HighlightHoveredColumn: ImGuiTableFlags = 268435456;
+pub const ImGuiTableFlags_SizingMask_: ImGuiTableFlags = 57344;
+pub const ImGuiTableColumnFlags_None: ImGuiTableColumnFlags = 0;
+pub const ImGuiTableColumnFlags_Disabled: ImGuiTableColumnFlags = 1;
+pub const ImGuiTableColumnFlags_DefaultHide: ImGuiTableColumnFlags = 2;
+pub const ImGuiTableColumnFlags_DefaultSort: ImGuiTableColumnFlags = 4;
+pub const ImGuiTableColumnFlags_WidthStretch: ImGuiTableColumnFlags = 8;
+pub const ImGuiTableColumnFlags_WidthFixed: ImGuiTableColumnFlags = 16;
+pub const ImGuiTableColumnFlags_NoResize: ImGuiTableColumnFlags = 32;
+pub const ImGuiTableColumnFlags_NoReorder: ImGuiTableColumnFlags = 64;
+pub const ImGuiTableColumnFlags_NoHide: ImGuiTableColumnFlags = 128;
+pub const ImGuiTableColumnFlags_NoClip: ImGuiTableColumnFlags = 256;
+pub const ImGuiTableColumnFlags_NoSort: ImGuiTableColumnFlags = 512;
+pub const ImGuiTableColumnFlags_NoSortAscending: ImGuiTableColumnFlags = 1024;
+pub const ImGuiTableColumnFlags_NoSortDescending: ImGuiTableColumnFlags = 2048;
+pub const ImGuiTableColumnFlags_NoHeaderLabel: ImGuiTableColumnFlags = 4096;
+pub const ImGuiTableColumnFlags_NoHeaderWidth: ImGuiTableColumnFlags = 8192;
+pub const ImGuiTableColumnFlags_PreferSortAscending: ImGuiTableColumnFlags = 16384;
+pub const ImGuiTableColumnFlags_PreferSortDescending: ImGuiTableColumnFlags = 32768;
+pub const ImGuiTableColumnFlags_IndentEnable: ImGuiTableColumnFlags = 65536;
+pub const ImGuiTableColumnFlags_IndentDisable: ImGuiTableColumnFlags = 131072;
+pub const ImGuiTableColumnFlags_AngledHeader: ImGuiTableColumnFlags = 262144;
+pub const ImGuiTableColumnFlags_IsEnabled: ImGuiTableColumnFlags = 16777216;
+pub const ImGuiTableColumnFlags_IsVisible: ImGuiTableColumnFlags = 33554432;
+pub const ImGuiTableColumnFlags_IsSorted: ImGuiTableColumnFlags = 67108864;
+pub const ImGuiTableColumnFlags_IsHovered: ImGuiTableColumnFlags = 134217728;
+pub const ImGuiTableColumnFlags_WidthMask_: ImGuiTableColumnFlags = 24;
+pub const ImGuiTableColumnFlags_IndentMask_: ImGuiTableColumnFlags = 196608;
+pub const ImGuiTableColumnFlags_StatusMask_: ImGuiTableColumnFlags = 251658240;
+pub const ImGuiTableColumnFlags_NoDirectResize_: ImGuiTableColumnFlags = 1073741824;
+pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags = 0;
+pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags = 1;
+pub const ImGuiTableBgTarget_None: ImGuiTableBgTarget = 0;
+pub const ImGuiTableBgTarget_RowBg0: ImGuiTableBgTarget = 1;
+pub const ImGuiTableBgTarget_RowBg1: ImGuiTableBgTarget = 2;
+pub const ImGuiTableBgTarget_CellBg: ImGuiTableBgTarget = 3;
+pub const ImGuiListClipperFlags_None: ImGuiListClipperFlags = 0;
+pub const ImGuiListClipperFlags_NoSetTableRowCounters: ImGuiListClipperFlags = 1;
+pub const ImGuiMultiSelectFlags_None: ImGuiMultiSelectFlags = 0;
+pub const ImGuiMultiSelectFlags_SingleSelect: ImGuiMultiSelectFlags = 1;
+pub const ImGuiMultiSelectFlags_NoSelectAll: ImGuiMultiSelectFlags = 2;
+pub const ImGuiMultiSelectFlags_NoRangeSelect: ImGuiMultiSelectFlags = 4;
+pub const ImGuiMultiSelectFlags_NoAutoSelect: ImGuiMultiSelectFlags = 8;
+pub const ImGuiMultiSelectFlags_NoAutoClear: ImGuiMultiSelectFlags = 16;
+pub const ImGuiMultiSelectFlags_NoAutoClearOnReselect: ImGuiMultiSelectFlags = 32;
+pub const ImGuiMultiSelectFlags_BoxSelect1d: ImGuiMultiSelectFlags = 64;
+pub const ImGuiMultiSelectFlags_BoxSelect2d: ImGuiMultiSelectFlags = 128;
+pub const ImGuiMultiSelectFlags_BoxSelectNoScroll: ImGuiMultiSelectFlags = 256;
+pub const ImGuiMultiSelectFlags_ClearOnEscape: ImGuiMultiSelectFlags = 512;
+pub const ImGuiMultiSelectFlags_ClearOnClickVoid: ImGuiMultiSelectFlags = 1024;
+pub const ImGuiMultiSelectFlags_ScopeWindow: ImGuiMultiSelectFlags = 2048;
+pub const ImGuiMultiSelectFlags_ScopeRect: ImGuiMultiSelectFlags = 4096;
+pub const ImGuiMultiSelectFlags_SelectOnAuto: ImGuiMultiSelectFlags = 8192;
+pub const ImGuiMultiSelectFlags_SelectOnClickAlways: ImGuiMultiSelectFlags = 16384;
+pub const ImGuiMultiSelectFlags_SelectOnClickRelease: ImGuiMultiSelectFlags = 32768;
+pub const ImGuiMultiSelectFlags_NavWrapX: ImGuiMultiSelectFlags = 65536;
+pub const ImGuiMultiSelectFlags_NoSelectOnRightClick: ImGuiMultiSelectFlags = 131072;
+pub const ImGuiMultiSelectFlags_SelectOnMask_: ImGuiMultiSelectFlags = 57344;
+pub const ImGuiMultiSelectFlags_CheckboxMode_: ImGuiMultiSelectFlags = 1048576;
+pub const ImGuiSelectionRequestType_None: ImGuiSelectionRequestType = 0;
+pub const ImGuiSelectionRequestType_SetAll: ImGuiSelectionRequestType = 1;
+pub const ImGuiSelectionRequestType_SetRange: ImGuiSelectionRequestType = 2;
+pub const ImDrawFlags_None: ImDrawFlags = 0;
+pub const ImDrawFlags_RoundTopLeft: ImDrawFlags = 16;
+pub const ImDrawFlags_RoundTopRight: ImDrawFlags = 32;
+pub const ImDrawFlags_RoundBottomLeft: ImDrawFlags = 64;
+pub const ImDrawFlags_RoundBottomRight: ImDrawFlags = 128;
+pub const ImDrawFlags_RoundNone: ImDrawFlags = 256;
+pub const ImDrawFlags_RoundAll: ImDrawFlags = 240;
+pub const ImDrawFlags_RoundTop: ImDrawFlags = 48;
+pub const ImDrawFlags_RoundBottom: ImDrawFlags = 192;
+pub const ImDrawFlags_RoundLeft: ImDrawFlags = 80;
+pub const ImDrawFlags_RoundRight: ImDrawFlags = 160;
+pub const ImDrawFlags_Closed: ImDrawFlags = 512;
+pub const ImDrawFlags_JoinMiter: ImDrawFlags = 1024;
+pub const ImDrawFlags_CapSquare: ImDrawFlags = 2048;
+pub const ImDrawFlags_AAFill: ImDrawFlags = 4096;
+pub const ImDrawFlags_AALines: ImDrawFlags = 8192;
+pub const ImDrawFlags_AALineEnds: ImDrawFlags = 16384;
+pub const ImDrawFlags_StrokeInside: ImDrawFlags = 131072;
+pub const ImDrawFlags_StrokeCenter: ImDrawFlags = 262144;
+pub const ImDrawFlags_StrokeCenterBiased: ImDrawFlags = 393216;
+pub const ImDrawFlags_StrokeOutside: ImDrawFlags = 524288;
+pub const ImDrawFlags_StrokeLegacy: ImDrawFlags = 917504;
+pub const ImDrawFlags_TextNoPixelSnap: ImDrawFlags = 1048576;
+pub const ImDrawFlags_UseTexForRoundCorners: ImDrawFlags = 2097152;
+pub const ImDrawFlags_UseVtxOffset: ImDrawFlags = 4194304;
+pub const ImDrawFlags_AllowTexForRoundCorners_: ImDrawFlags = 8388608;
+pub const ImDrawFlags_RoundMask_: ImDrawFlags = 496;
+pub const ImDrawFlags_AllowInPushScope_: ImDrawFlags = 8286704;
+pub const ImDrawFlags_AllowInFrameScope_: ImDrawFlags = 16675312;
+pub const ImDrawFlags_StrokeMask_: ImDrawFlags = 917504;
+pub const ImDrawFlags_InvalidMask_: ImDrawFlags = -2147483633;
+pub const ImTextureFormat_RGBA32: ImTextureFormat = 0;
+pub const ImTextureFormat_Alpha8: ImTextureFormat = 1;
+pub const ImTextureStatus_OK: ImTextureStatus = 0;
+pub const ImTextureStatus_Destroyed: ImTextureStatus = 1;
+pub const ImTextureStatus_WantCreate: ImTextureStatus = 2;
+pub const ImTextureStatus_WantUpdates: ImTextureStatus = 3;
+pub const ImTextureStatus_WantDestroy: ImTextureStatus = 4;
+pub const ImFontAtlasFlags_None: ImFontAtlasFlags = 0;
+pub const ImFontAtlasFlags_NoPowerOfTwoHeight: ImFontAtlasFlags = 1;
+pub const ImFontAtlasFlags_NoMouseCursors: ImFontAtlasFlags = 2;
+pub const ImFontAtlasFlags_NoBakedLines: ImFontAtlasFlags = 4;
+pub const ImFontAtlasFlags_NoBakedRoundCorners: ImFontAtlasFlags = 8;
+pub const ImFontFlags_None: ImFontFlags = 0;
+pub const ImFontFlags_NoLoadError: ImFontFlags = 2;
+pub const ImFontFlags_NoLoadGlyphs: ImFontFlags = 4;
+pub const ImFontFlags_LockBakedSizes: ImFontFlags = 8;
+pub const ImFontFlags_ImplicitRefSize: ImFontFlags = 16;
+pub const ImGuiViewportFlags_None: ImGuiViewportFlags = 0;
+pub const ImGuiViewportFlags_IsPlatformWindow: ImGuiViewportFlags = 1;
+pub const ImGuiViewportFlags_IsPlatformMonitor: ImGuiViewportFlags = 2;
+pub const ImGuiViewportFlags_OwnedByApp: ImGuiViewportFlags = 4;
+pub const IMGUI_VERSION: &core::ffi::CStr = c"1.93.1 WIP";
+pub const IMGUI_VERSION_NUM: i64 = 19302;
+pub const IMGUI_PAYLOAD_TYPE_COLOR_3F: &core::ffi::CStr = c"_COL3F";
+pub const IMGUI_PAYLOAD_TYPE_COLOR_4F: &core::ffi::CStr = c"_COL4F";
+pub const IM_UNICODE_CODEPOINT_INVALID: i64 = 0xFFFD;
+pub const IM_UNICODE_CODEPOINT_MAX: i64 = 0xFFFF;
+pub const IM_COL32_R_SHIFT: i64 = 0;
+pub const IM_COL32_G_SHIFT: i64 = 8;
+pub const IM_COL32_B_SHIFT: i64 = 16;
+pub const IM_COL32_A_SHIFT: i64 = 24;
+pub const IM_COL32_A_MASK: i64 = 0xFF000000;
+
+#[repr(C)]
+pub struct ImDrawListSharedData {
+ _opaque: [u8; 0],
+}
+#[repr(C)]
+pub struct ImFontAtlasBuilder {
+ _opaque: [u8; 0],
+}
+#[repr(C)]
+pub struct ImFontLoader {
+ _opaque: [u8; 0],
+}
+#[repr(C)]
+pub struct ImGuiContext {
+ _opaque: [u8; 0],
+}
+#[repr(C)]
+pub struct ImGuiTextFilterItem {
+ _opaque: [u8; 0],
+}
+#[repr(C)]
+pub struct ImSmallStack_ImDrawFlags_3 {
+ pub LocalData: [ImDrawFlags; 3],
+ pub Size: u16,
+}
+#[repr(C)]
+#[derive(Clone, Copy)]
+pub union ImGuiStoragePair__Union0 {
+ pub val_i: c_int,
+ pub val_f: f32,
+ pub val_p: *mut c_void,
+}
+#[repr(C)]
+#[derive(Clone, Copy)]
+pub union ImFontAtlas__Union0 {
+ pub TexRef: ImTextureRef,
+ pub TexID: ImTextureRef,
+}
+#[repr(C)]
+#[derive(Clone, Copy, Debug, Default, PartialEq)]
+pub struct ImVec2 {
+ pub x: f32,
+ pub y: f32,
+}
+#[repr(C)]
+#[derive(Clone, Copy, Debug, Default, PartialEq)]
+pub struct ImVec4 {
+ pub x: f32,
+ pub y: f32,
+ pub z: f32,
+ pub w: f32,
+}
+#[repr(C)]
+#[derive(Clone, Copy, Debug)]
+pub struct ImTextureRef {
+ pub _TexData: *mut ImTextureData,
+ pub _TexID: ImTextureID,
+}
+#[repr(C)]
+pub struct ImGuiTableSortSpecs {
+ pub Specs: *const ImGuiTableColumnSortSpecs,
+ pub SpecsCount: c_int,
+ pub SpecsDirty: bool,
+}
+#[repr(C)]
+pub struct ImGuiTableColumnSortSpecs {
+ pub ColumnUserID: ImGuiID,
+ pub ColumnIndex: ImS16,
+ pub SortOrder: ImS16,
+ pub SortDirection: ImGuiSortDirection,
+}
+#[repr(C)]
+pub struct ImGuiStyle {
+ pub FontSizeBase: f32,
+ pub FontScaleMain: f32,
+ pub FontScaleDpi: f32,
+ pub Alpha: f32,
+ pub DisabledAlpha: f32,
+ pub WindowPadding: ImVec2,
+ pub WindowRounding: f32,
+ pub WindowBorderSize: f32,
+ pub WindowBorderHoverPadding: f32,
+ pub WindowMinSize: ImVec2,
+ pub WindowTitleAlign: ImVec2,
+ pub WindowMenuButtonPosition: ImGuiDir,
+ pub ChildRounding: f32,
+ pub ChildBorderSize: f32,
+ pub PopupRounding: f32,
+ pub PopupBorderSize: f32,
+ pub FramePadding: ImVec2,
+ pub FrameRounding: f32,
+ pub FrameBorderSize: f32,
+ pub ItemSpacing: ImVec2,
+ pub ItemInnerSpacing: ImVec2,
+ pub CellPadding: ImVec2,
+ pub TouchExtraPadding: ImVec2,
+ pub IndentSpacing: f32,
+ pub ColumnsMinSpacing: f32,
+ pub ScrollbarSize: f32,
+ pub ScrollbarRounding: f32,
+ pub ScrollbarPadding: f32,
+ pub GrabMinSize: f32,
+ pub GrabRounding: f32,
+ pub LogSliderDeadzone: f32,
+ pub ImageRounding: f32,
+ pub ImageBorderSize: f32,
+ pub TabRounding: f32,
+ pub TabBorderSize: f32,
+ pub TabMinWidthBase: f32,
+ pub TabMinWidthShrink: f32,
+ pub TabCloseButtonMinWidthSelected: f32,
+ pub TabCloseButtonMinWidthUnselected: f32,
+ pub TabBarBorderSize: f32,
+ pub TabBarOverlineSize: f32,
+ pub TableAngledHeadersAngle: f32,
+ pub TableAngledHeadersTextAlign: ImVec2,
+ pub TreeLinesFlags: ImGuiTreeNodeFlags,
+ pub TreeLinesSize: f32,
+ pub TreeLinesRounding: f32,
+ pub MenuItemRounding: f32,
+ pub SelectableRounding: f32,
+ pub DragDropTargetRounding: f32,
+ pub DragDropTargetBorderSize: f32,
+ pub DragDropTargetPadding: f32,
+ pub ColorMarkerSize: f32,
+ pub ColorButtonPosition: ImGuiDir,
+ pub ButtonTextAlign: ImVec2,
+ pub SelectableTextAlign: ImVec2,
+ pub InputTextCursorSize: f32,
+ pub SeparatorSize: f32,
+ pub SeparatorTextBorderSize: f32,
+ pub SeparatorTextAlign: ImVec2,
+ pub SeparatorTextPadding: ImVec2,
+ pub DisplayWindowPadding: ImVec2,
+ pub DisplaySafeAreaPadding: ImVec2,
+ pub MouseCursorScale: f32,
+ pub SymbolArrowSizeFactor: ImVec2,
+ pub SymbolArrowThicknessFactor: f32,
+ pub AntiAliasedLines: bool,
+ pub AntiAliasedLineEnds: bool,
+ pub AntiAliasedFill: bool,
+ pub CurveTessellationMaxError: f32,
+ pub CircleTessellationMaxError: f32,
+ pub Colors: [ImVec4; 61],
+ pub HoverStationaryDelay: f32,
+ pub HoverDelayShort: f32,
+ pub HoverDelayNormal: f32,
+ pub HoverFlagsForTooltipMouse: ImGuiHoveredFlags,
+ pub HoverFlagsForTooltipNav: ImGuiHoveredFlags,
+ pub _MainScale: f32,
+ pub _NextFrameFontSizeBase: f32,
+ pub AntiAliasedLinesUseTex: bool,
+ pub CurveTessellationTol: f32,
+}
+#[repr(C)]
+pub struct ImGuiKeyData {
+ pub Down: bool,
+ pub DownDuration: f32,
+ pub DownDurationPrev: f32,
+ pub AnalogValue: f32,
+}
+#[repr(C)]
+pub struct ImGuiIO {
+ pub ConfigFlags: ImGuiConfigFlags,
+ pub BackendFlags: ImGuiBackendFlags,
+ pub DisplaySize: ImVec2,
+ pub DisplayFramebufferScale: ImVec2,
+ pub DeltaTime: f32,
+ pub IniSavingRate: f32,
+ pub IniFilename: *const c_char,
+ pub LogFilename: *const c_char,
+ pub UserData: *mut c_void,
+ pub Fonts: *mut ImFontAtlas,
+ pub FontDefault: *mut ImFont,
+ pub FontAllowUserScaling: bool,
+ pub ConfigNavSwapGamepadButtons: bool,
+ pub ConfigNavMoveSetMousePos: bool,
+ pub ConfigNavCaptureKeyboard: bool,
+ pub ConfigNavEscapeClearFocusItem: bool,
+ pub ConfigNavEscapeClearFocusWindow: bool,
+ pub ConfigNavCursorVisibleAuto: bool,
+ pub ConfigNavCursorVisibleAlways: bool,
+ pub ConfigMacOSXBehaviors: bool,
+ pub ConfigInputTrickleEventQueue: bool,
+ pub ConfigInputTextCursorBlink: bool,
+ pub ConfigInputTextEnterKeepActive: bool,
+ pub ConfigColorEditFlags: ImGuiColorEditFlags,
+ pub ConfigDragClickToInputText: bool,
+ pub ConfigWindowsResizeFromEdges: bool,
+ pub ConfigWindowsMoveFromTitleBarOnly: bool,
+ pub ConfigWindowsCopyContentsWithCtrlC: bool,
+ pub ConfigScrollbarScrollByPage: bool,
+ pub ConfigIniSettingsSaveLastUsedDate: bool,
+ pub ConfigIniSettingsAutoDiscardMonths: c_int,
+ pub ConfigDebugIniSettings: bool,
+ pub MouseDrawCursor: bool,
+ pub ConfigMemoryCompactTimer: f32,
+ pub MouseDoubleClickTime: f32,
+ pub MouseDoubleClickMaxDist: f32,
+ pub MouseSingleClickDelay: f32,
+ pub MouseDragThreshold: f32,
+ pub KeyRepeatDelay: f32,
+ pub KeyRepeatRate: f32,
+ pub ConfigErrorRecovery: bool,
+ pub ConfigErrorRecoveryEnableAssert: bool,
+ pub ConfigErrorRecoveryEnableDebugLog: bool,
+ pub ConfigErrorRecoveryEnableTooltip: bool,
+ pub ConfigDebugIsDebuggerPresent: bool,
+ pub ConfigDebugHighlightIdConflicts: bool,
+ pub ConfigDebugHighlightIdConflictsShowItemPicker: bool,
+ pub ConfigDebugBeginReturnValueOnce: bool,
+ pub ConfigDebugBeginReturnValueLoop: bool,
+ pub ConfigDebugIgnoreFocusLoss: bool,
+ pub ConfigDebugDrawListDefaultsToStrokeLegacy: bool,
+ pub BackendPlatformName: *const c_char,
+ pub BackendRendererName: *const c_char,
+ pub BackendPlatformUserData: *mut c_void,
+ pub BackendRendererUserData: *mut c_void,
+ pub BackendLanguageUserData: *mut c_void,
+ pub WantCaptureMouse: bool,
+ pub WantCaptureKeyboard: bool,
+ pub WantTextInput: bool,
+ pub WantSetMousePos: bool,
+ pub WantSaveIniSettings: bool,
+ pub NavActive: bool,
+ pub NavVisible: bool,
+ pub Framerate: f32,
+ pub MetricsRenderVertices: c_int,
+ pub MetricsRenderIndices: c_int,
+ pub MetricsRenderWindows: c_int,
+ pub MetricsActiveWindows: c_int,
+ pub MouseDelta: ImVec2,
+ pub Ctx: *mut ImGuiContext,
+ pub MousePos: ImVec2,
+ pub MouseDown: [bool; 5],
+ pub MouseWheel: f32,
+ pub MouseWheelH: f32,
+ pub MouseSource: ImGuiMouseSource,
+ pub KeyCtrl: bool,
+ pub KeyShift: bool,
+ pub KeyAlt: bool,
+ pub KeySuper: bool,
+ pub KeyMods: ImGuiKeyChord,
+ pub KeysData: [ImGuiKeyData; 155],
+ pub WantCaptureMouseUnlessPopupClose: bool,
+ pub MousePosPrev: ImVec2,
+ pub MouseClickedPos: [ImVec2; 5],
+ pub MouseClickedTime: [f64; 5],
+ pub MouseClicked: [bool; 5],
+ pub MouseDoubleClicked: [bool; 5],
+ pub MouseClickedCount: [ImU16; 5],
+ pub MouseClickedLastCount: [ImU16; 5],
+ pub MouseReleased: [bool; 5],
+ pub MouseReleasedTime: [f64; 5],
+ pub MouseDownOwned: [bool; 5],
+ pub MouseDownOwnedUnlessPopupClose: [bool; 5],
+ pub MouseWheelRequestAxisSwap: bool,
+ pub MouseCtrlLeftAsRightClick: bool,
+ pub MouseDownDuration: [f32; 5],
+ pub MouseDownDurationPrev: [f32; 5],
+ pub MouseDragMaxDistanceSqr: [f32; 5],
+ pub PenPressure: f32,
+ pub AppFocusLost: bool,
+ pub AppAcceptingEvents: bool,
+ pub InputQueueSurrogate: ImWchar16,
+ pub InputQueueCharacters: ImVector<ImWchar>,
+ pub FontGlobalScale: f32,
+}
+#[repr(C)]
+pub struct ImGuiInputTextCallbackData {
+ pub Ctx: *mut ImGuiContext,
+ pub EventFlag: ImGuiInputTextFlags,
+ pub Flags: ImGuiInputTextFlags,
+ pub UserData: *mut c_void,
+ pub ID: ImGuiID,
+ pub EventKey: ImGuiKey,
+ pub EventChar: ImWchar,
+ pub EventActivated: bool,
+ pub BufDirty: bool,
+ pub Buf: *mut c_char,
+ pub BufTextLen: c_int,
+ pub BufSize: c_int,
+ pub CursorPos: c_int,
+ pub SelectionStart: c_int,
+ pub SelectionEnd: c_int,
+}
+#[repr(C)]
+pub struct ImGuiSizeCallbackData {
+ pub UserData: *mut c_void,
+ pub Pos: ImVec2,
+ pub CurrentSize: ImVec2,
+ pub DesiredSize: ImVec2,
+}
+#[repr(C)]
+pub struct ImGuiPayload {
+ pub Data: *mut c_void,
+ pub DataSize: c_int,
+ pub SourceId: ImGuiID,
+ pub SourceParentId: ImGuiID,
+ pub DataFrameCount: c_int,
+ pub DataType: [c_char; 33],
+ pub Preview: bool,
+ pub Delivery: bool,
+}
+#[repr(C)]
+pub struct ImGuiOnceUponAFrame {
+ pub RefFrame: c_int,
+}
+#[repr(C)]
+pub struct ImGuiTextFilter {
+ pub InputBuf: [c_char; 256],
+ pub _CountExclude: c_int,
+ pub _Items: ImVector<ImGuiTextFilterItem>,
+}
+#[repr(C)]
+pub struct ImGuiTextBuffer {
+ pub Buf: ImVector<c_char>,
+}
+#[repr(C)]
+pub struct ImGuiStoragePair {
+ pub key: ImGuiID,
+ pub union0: ImGuiStoragePair__Union0,
+}
+#[repr(C)]
+pub struct ImGuiStorage {
+ pub Data: ImVector<ImGuiStoragePair>,
+}
+#[repr(C)]
+pub struct ImGuiListClipper {
+ pub DisplayStart: c_int,
+ pub DisplayEnd: c_int,
+ pub UserIndex: c_int,
+ pub ItemsCount: c_int,
+ pub ItemsHeight: f32,
+ pub Flags: ImGuiListClipperFlags,
+ pub StartPosY: f64,
+ pub StartSeekOffsetY: f64,
+ pub Ctx: *mut ImGuiContext,
+ pub TempData: *mut c_void,
+}
+#[repr(C)]
+#[derive(Clone, Copy, Debug, Default, PartialEq)]
+pub struct ImColor {
+ pub Value: ImVec4,
+}
+#[repr(C)]
+pub struct ImGuiMultiSelectIO {
+ pub Requests: ImVector<ImGuiSelectionRequest>,
+ pub RangeSrcItem: ImGuiSelectionUserData,
+ pub NavIdItem: ImGuiSelectionUserData,
+ pub NavIdSelected: bool,
+ pub RangeSrcReset: bool,
+ pub ItemsCount: c_int,
+}
+#[repr(C)]
+pub struct ImGuiSelectionRequest {
+ pub Type: ImGuiSelectionRequestType,
+ pub Selected: bool,
+ pub RangeDirection: ImS8,
+ pub RangeFirstItem: ImGuiSelectionUserData,
+ pub RangeLastItem: ImGuiSelectionUserData,
+}
+#[repr(C)]
+pub struct ImGuiSelectionBasicStorage {
+ pub Size: c_int,
+ pub PreserveOrder: bool,
+ pub UserData: *mut c_void,
+ pub AdapterIndexToStorageId: Option<unsafe extern "C" fn(*mut ImGuiSelectionBasicStorage, c_int) -> ImGuiID>,
+ pub _SelectionOrder: c_int,
+ pub _Storage: ImGuiStorage,
+}
+#[repr(C)]
+pub struct ImGuiSelectionExternalStorage {
+ pub UserData: *mut c_void,
+ pub AdapterSetItemSelected: Option<unsafe extern "C" fn(*mut ImGuiSelectionExternalStorage, c_int, bool)>,
+}
+#[repr(C)]
+pub struct ImDrawCmd {
+ pub ClipRect: ImVec4,
+ pub TexRef: ImTextureRef,
+ pub VtxOffset: c_uint,
+ pub IdxOffset: c_uint,
+ pub ElemCount: c_uint,
+ pub UserCallback: ImDrawCallback,
+ pub UserCallbackData: *mut c_void,
+ pub UserCallbackDataSize: c_int,
+ pub UserCallbackDataOffset: c_int,
+}
+#[repr(C)]
+pub struct ImDrawVert {
+ pub pos: ImVec2,
+ pub uv: ImVec2,
+ pub col: ImU32,
+}
+#[repr(C)]
+pub struct ImDrawCmdHeader {
+ pub ClipRect: ImVec4,
+ pub TexRef: ImTextureRef,
+ pub VtxOffset: c_uint,
+}
+#[repr(C)]
+pub struct ImDrawChannel {
+ pub _CmdBuffer: ImVector<ImDrawCmd>,
+ pub _IdxBuffer: ImVector<ImDrawIdx>,
+}
+#[repr(C)]
+pub struct ImDrawListSplitter {
+ pub _Current: c_int,
+ pub _Count: c_int,
+ pub _Channels: ImVector<ImDrawChannel>,
+}
+#[repr(C)]
+pub struct ImDrawList {
+ pub CmdBuffer: ImVector<ImDrawCmd>,
+ pub IdxBuffer: ImVector<ImDrawIdx>,
+ pub VtxBuffer: ImVector<ImDrawVert>,
+ pub Flags: ImDrawFlags,
+ pub _VtxCurrentIdx: c_uint,
+ pub _Data: *mut ImDrawListSharedData,
+ pub _VtxWritePtr: *mut ImDrawVert,
+ pub _IdxWritePtr: *mut ImDrawIdx,
+ pub _Path: ImVector<ImVec2>,
+ pub _CmdHeader: ImDrawCmdHeader,
+ pub _Splitter: ImDrawListSplitter,
+ pub _ClipRectStack: ImVector<ImVec4>,
+ pub _TextureStack: ImVector<ImTextureRef>,
+ pub _CallbacksDataBuf: ImVector<ImU8>,
+ pub _DrawFlagsStack: ImSmallStack_ImDrawFlags_3,
+ pub _FringeScale: f32,
+ pub _InvFringeScale: f32,
+ pub _FringeScaleIsInteger: bool,
+ pub _OwnerName: *const c_char,
+}
+#[repr(C)]
+pub struct ImDrawData {
+ pub Valid: bool,
+ pub FrameCount: c_int,
+ pub TotalIdxCount: c_int,
+ pub TotalVtxCount: c_int,
+ pub CmdLists: ImVector<*mut ImDrawList>,
+ pub DisplayPos: ImVec2,
+ pub DisplaySize: ImVec2,
+ pub FramebufferScale: ImVec2,
+ pub OwnerViewport: *mut ImGuiViewport,
+ pub Textures: *mut ImVector<*mut ImTextureData>,
+ pub CmdListsCount: c_int,
+}
+#[repr(C)]
+pub struct ImTextureRect {
+ pub x: u16,
+ pub y: u16,
+ pub w: u16,
+ pub h: u16,
+}
+#[repr(C)]
+pub struct ImTextureData {
+ pub UniqueID: c_int,
+ pub Status: ImTextureStatus,
+ pub BackendUserData: *mut c_void,
+ pub QueueUserData: *mut c_void,
+ pub TexID: ImTextureID,
+ pub Format: ImTextureFormat,
+ pub Width: c_int,
+ pub Height: c_int,
+ pub BytesPerPixel: c_int,
+ pub Pixels: *mut u8,
+ pub UsedRect: ImTextureRect,
+ pub UpdateRect: ImTextureRect,
+ pub Updates: ImVector<ImTextureRect>,
+ pub UnusedFrames: c_int,
+ pub RefCount: u16,
+ pub UseColors: bool,
+ pub WantDestroyNextFrame: bool,
+}
+#[repr(C)]
+pub struct ImFontConfig {
+ pub Name: [c_char; 40],
+ pub FontData: *mut c_void,
+ pub FontDataSize: c_int,
+ pub FontDataOwnedByAtlas: bool,
+ pub MergeMode: bool,
+ pub PixelSnapH: bool,
+ pub OversampleH: ImS8,
+ pub OversampleV: ImS8,
+ pub EllipsisChar: ImWchar,
+ pub SizePixels: f32,
+ pub GlyphRanges: *const ImWchar,
+ pub GlyphExcludeRanges: *const ImWchar,
+ pub GlyphOffset: ImVec2,
+ pub GlyphMinAdvanceX: f32,
+ pub GlyphMaxAdvanceX: f32,
+ pub GlyphExtraAdvanceX: f32,
+ pub FontNo: ImU32,
+ pub FontLoaderFlags: c_uint,
+ pub RasterizerMultiply: f32,
+ pub RasterizerDensity: f32,
+ pub ExtraSizeScale: f32,
+ pub Flags: ImFontFlags,
+ pub DstFont: *mut ImFont,
+ pub FontLoader: *const ImFontLoader,
+ pub FontLoaderData: *mut c_void,
+ pub PixelSnapV: bool,
+}
+#[repr(C)]
+pub struct ImFontGlyph {
+ pub _bitfield0: c_uint,
+ pub AdvanceX: f32,
+ pub X0: f32,
+ pub Y0: f32,
+ pub X1: f32,
+ pub Y1: f32,
+ pub U0: f32,
+ pub V0: f32,
+ pub U1: f32,
+ pub V1: f32,
+ pub PackId: c_int,
+}
+#[repr(C)]
+pub struct ImFontGlyphRangesBuilder {
+ pub UsedChars: ImVector<ImU32>,
+}
+#[repr(C)]
+pub struct ImFontAtlasRect {
+ pub x: u16,
+ pub y: u16,
+ pub w: u16,
+ pub h: u16,
+ pub uv0: ImVec2,
+ pub uv1: ImVec2,
+}
+#[repr(C)]
+pub struct ImFontAtlas {
+ pub Flags: ImFontAtlasFlags,
+ pub TexDesiredFormat: ImTextureFormat,
+ pub TexGlyphPadding: c_int,
+ pub TexMinWidth: c_int,
+ pub TexMinHeight: c_int,
+ pub TexMaxWidth: c_int,
+ pub TexMaxHeight: c_int,
+ pub UserData: *mut c_void,
+ pub union0: ImFontAtlas__Union0,
+ pub TexData: *mut ImTextureData,
+ pub TexList: ImVector<*mut ImTextureData>,
+ pub Locked: bool,
+ pub RendererHasTextures: bool,
+ pub TexIsBuilt: bool,
+ pub TexPixelsUseColors: bool,
+ pub TexUvScale: ImVec2,
+ pub TexUvWhitePixel: ImVec2,
+ pub Fonts: ImVector<*mut ImFont>,
+ pub Sources: ImVector<ImFontConfig>,
+ pub TexNextUniqueID: c_int,
+ pub FontNextUniqueID: c_int,
+ pub DrawListSharedDatas: ImVector<*mut ImDrawListSharedData>,
+ pub Builder: *mut ImFontAtlasBuilder,
+ pub FontLoader: *const ImFontLoader,
+ pub FontLoaderName: *const c_char,
+ pub FontLoaderData: *mut c_void,
+ pub FontLoaderFlags: c_uint,
+ pub RefCount: c_int,
+ pub OwnerContext: *mut ImGuiContext,
+ pub TempRect: ImFontAtlasRect,
+}
+#[repr(C)]
+pub struct ImFontBaked {
+ pub IndexAdvanceX: ImVector<f32>,
+ pub FallbackAdvanceX: f32,
+ pub Size: f32,
+ pub RasterizerDensity: f32,
+ pub IndexLookup: ImVector<ImU16>,
+ pub Glyphs: ImVector<ImFontGlyph>,
+ pub FallbackGlyphIndex: c_int,
+ pub Ascent: f32,
+ pub Descent: f32,
+ pub _bitfield0: c_uint,
+ pub LastUsedFrame: c_int,
+ pub BakedId: ImGuiID,
+ pub OwnerFont: *mut ImFont,
+ pub FontLoaderDatas: *mut c_void,
+}
+#[repr(C)]
+pub struct ImFont {
+ pub LastBaked: *mut ImFontBaked,
+ pub OwnerAtlas: *mut ImFontAtlas,
+ pub Flags: ImFontFlags,
+ pub CurrentRasterizerDensity: f32,
+ pub FontId: ImGuiID,
+ pub LegacySize: f32,
+ pub Sources: ImVector<*mut ImFontConfig>,
+ pub EllipsisChar: ImWchar,
+ pub FallbackChar: ImWchar,
+ pub Used8kPagesMap: [ImU8; 1],
+ pub EllipsisAutoBake: bool,
+ pub RemapPairs: ImGuiStorage,
+ pub Scale: f32,
+}
+#[repr(C)]
+pub struct ImGuiViewport {
+ pub ID: ImGuiID,
+ pub Flags: ImGuiViewportFlags,
+ pub Pos: ImVec2,
+ pub Size: ImVec2,
+ pub FramebufferScale: ImVec2,
+ pub WorkPos: ImVec2,
+ pub WorkSize: ImVec2,
+ pub PlatformHandle: *mut c_void,
+ pub PlatformHandleRaw: *mut c_void,
+}
+#[repr(C)]
+pub struct ImGuiPlatformIO {
+ pub Platform_GetClipboardTextFn: Option<unsafe extern "C" fn(*mut ImGuiContext) -> *const c_char>,
+ pub Platform_SetClipboardTextFn: Option<unsafe extern "C" fn(*mut ImGuiContext, *const c_char)>,
+ pub Platform_ClipboardUserData: *mut c_void,
+ pub Platform_OpenInShellFn: Option<unsafe extern "C" fn(*mut ImGuiContext, *const c_char) -> bool>,
+ pub Platform_OpenInShellUserData: *mut c_void,
+ pub Platform_SetImeDataFn: Option<unsafe extern "C" fn(*mut ImGuiContext, *mut ImGuiViewport, *mut ImGuiPlatformImeData)>,
+ pub Platform_ImeUserData: *mut c_void,
+ pub Platform_LocaleDecimalPoint: ImWchar,
+ pub Platform_SessionDate: c_int,
+ pub Renderer_TextureMaxWidth: c_int,
+ pub Renderer_TextureMaxHeight: c_int,
+ pub Renderer_RenderState: *mut c_void,
+ pub DrawCallback_ResetRenderState: ImDrawCallback,
+ pub DrawCallback_SetSamplerLinear: ImDrawCallback,
+ pub DrawCallback_SetSamplerNearest: ImDrawCallback,
+ pub DrawCallback_SetSamplerFromTex: ImDrawCallback,
+ pub Textures: ImVector<*mut ImTextureData>,
+}
+#[repr(C)]
+pub struct ImGuiPlatformImeData {
+ pub WantVisible: bool,
+ pub WantTextInput: bool,
+ pub InputPos: ImVec2,
+ pub InputLineHeight: f32,
+ pub ViewportId: ImGuiID,
+}
+
+unsafe extern "C" {
+ pub fn ImGui_CreateContext() -> *mut ImGuiContext;
+ pub fn ImGui_CreateContextEx(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext;
+ pub fn ImGui_DestroyContext();
+ pub fn ImGui_DestroyContextEx(ctx: *mut ImGuiContext);
+ pub fn ImGui_GetCurrentContext() -> *mut ImGuiContext;
+ pub fn ImGui_SetCurrentContext(ctx: *mut ImGuiContext);
+ pub fn ImGui_GetIO() -> *mut ImGuiIO;
+ pub fn ImGui_GetPlatformIO() -> *mut ImGuiPlatformIO;
+ pub fn ImGui_GetStyle() -> *mut ImGuiStyle;
+ pub fn ImGui_NewFrame();
+ pub fn ImGui_EndFrame();
+ pub fn ImGui_Render();
+ pub fn ImGui_GetDrawData() -> *mut ImDrawData;
+ pub fn ImGui_ShowDemoWindow();
+ pub fn ImGui_ShowDemoWindowEx(p_open: *mut bool);
+ pub fn ImGui_ShowMetricsWindow();
+ pub fn ImGui_ShowMetricsWindowEx(p_open: *mut bool);
+ pub fn ImGui_ShowDebugLogWindow();
+ pub fn ImGui_ShowDebugLogWindowEx(p_open: *mut bool);
+ pub fn ImGui_ShowIDStackToolWindow();
+ pub fn ImGui_ShowIDStackToolWindowEx(p_open: *mut bool);
+ pub fn ImGui_ShowAboutWindow();
+ pub fn ImGui_ShowAboutWindowEx(p_open: *mut bool);
+ pub fn ImGui_ShowStyleEditor();
+ pub fn ImGui_ShowStyleEditorEx(r#ref: *mut ImGuiStyle);
+ pub fn ImGui_ShowStyleSelector(label: *const c_char) -> bool;
+ pub fn ImGui_ShowFontSelector(label: *const c_char);
+ pub fn ImGui_ShowUserGuide();
+ pub fn ImGui_GetVersion() -> *const c_char;
+ pub fn ImGui_StyleColorsDark();
+ pub fn ImGui_StyleColorsDarkEx(dst: *mut ImGuiStyle);
+ pub fn ImGui_StyleColorsLight();
+ pub fn ImGui_StyleColorsLightEx(dst: *mut ImGuiStyle);
+ pub fn ImGui_StyleColorsClassic();
+ pub fn ImGui_StyleColorsClassicEx(dst: *mut ImGuiStyle);
+ pub fn ImGui_Begin(name: *const c_char) -> bool;
+ pub fn ImGui_BeginEx(name: *const c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool;
+ pub fn ImGui_End();
+ pub fn ImGui_BeginChild(str_id: *const c_char) -> bool;
+ pub fn ImGui_BeginChildEx(str_id: *const c_char, size: ImVec2, child_flags: ImGuiChildFlags, window_flags: ImGuiWindowFlags) -> bool;
+ pub fn ImGui_BeginChildID(id: ImGuiID) -> bool;
+ pub fn ImGui_BeginChildIDEx(id: ImGuiID, size: ImVec2, child_flags: ImGuiChildFlags, window_flags: ImGuiWindowFlags) -> bool;
+ pub fn ImGui_EndChild();
+ pub fn ImGui_IsWindowAppearing() -> bool;
+ pub fn ImGui_IsWindowCollapsed() -> bool;
+ pub fn ImGui_IsWindowFocused() -> bool;
+ pub fn ImGui_IsWindowFocusedEx(flags: ImGuiFocusedFlags) -> bool;
+ pub fn ImGui_IsWindowHovered() -> bool;
+ pub fn ImGui_IsWindowHoveredEx(flags: ImGuiHoveredFlags) -> bool;
+ pub fn ImGui_GetWindowDrawList() -> *mut ImDrawList;
+ pub fn ImGui_GetWindowPos() -> ImVec2;
+ pub fn ImGui_GetWindowSize() -> ImVec2;
+ pub fn ImGui_GetWindowWidth() -> f32;
+ pub fn ImGui_GetWindowHeight() -> f32;
+ pub fn ImGui_SetNextWindowPos(pos: ImVec2);
+ pub fn ImGui_SetNextWindowPosEx(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2);
+ pub fn ImGui_SetNextWindowSize(size: ImVec2);
+ pub fn ImGui_SetNextWindowSizeEx(size: ImVec2, cond: ImGuiCond);
+ pub fn ImGui_SetNextWindowSizeConstraints(size_min: ImVec2, size_max: ImVec2);
+ pub fn ImGui_SetNextWindowSizeConstraintsEx(size_min: ImVec2, size_max: ImVec2, custom_callback: ImGuiSizeCallback, custom_callback_data: *mut c_void);
+ pub fn ImGui_SetNextWindowContentSize(size: ImVec2);
+ pub fn ImGui_SetNextWindowCollapsed(collapsed: bool);
+ pub fn ImGui_SetNextWindowCollapsedEx(collapsed: bool, cond: ImGuiCond);
+ pub fn ImGui_SetNextWindowFocus();
+ pub fn ImGui_SetNextWindowScroll(scroll: ImVec2);
+ pub fn ImGui_SetNextWindowBgAlpha(alpha: f32);
+ pub fn ImGui_SetWindowPos(pos: ImVec2);
+ pub fn ImGui_SetWindowPosEx(pos: ImVec2, cond: ImGuiCond);
+ pub fn ImGui_SetWindowSize(size: ImVec2);
+ pub fn ImGui_SetWindowSizeEx(size: ImVec2, cond: ImGuiCond);
+ pub fn ImGui_SetWindowCollapsed(collapsed: bool);
+ pub fn ImGui_SetWindowCollapsedEx(collapsed: bool, cond: ImGuiCond);
+ pub fn ImGui_SetWindowFocus();
+ pub fn ImGui_SetWindowPosStr(name: *const c_char, pos: ImVec2);
+ pub fn ImGui_SetWindowPosStrEx(name: *const c_char, pos: ImVec2, cond: ImGuiCond);
+ pub fn ImGui_SetWindowSizeStr(name: *const c_char, size: ImVec2);
+ pub fn ImGui_SetWindowSizeStrEx(name: *const c_char, size: ImVec2, cond: ImGuiCond);
+ pub fn ImGui_SetWindowCollapsedStr(name: *const c_char, collapsed: bool);
+ pub fn ImGui_SetWindowCollapsedStrEx(name: *const c_char, collapsed: bool, cond: ImGuiCond);
+ pub fn ImGui_SetWindowFocusStr(name: *const c_char);
+ pub fn ImGui_GetScrollX() -> f32;
+ pub fn ImGui_GetScrollY() -> f32;
+ pub fn ImGui_SetScrollX(scroll_x: f32);
+ pub fn ImGui_SetScrollY(scroll_y: f32);
+ pub fn ImGui_GetScrollMaxX() -> f32;
+ pub fn ImGui_GetScrollMaxY() -> f32;
+ pub fn ImGui_SetScrollHereX();
+ pub fn ImGui_SetScrollHereXEx(center_x_ratio: f32);
+ pub fn ImGui_SetScrollHereY();
+ pub fn ImGui_SetScrollHereYEx(center_y_ratio: f32);
+ pub fn ImGui_SetScrollFromPosX(local_x: f32);
+ pub fn ImGui_SetScrollFromPosXEx(local_x: f32, center_x_ratio: f32);
+ pub fn ImGui_SetScrollFromPosY(local_y: f32);
+ pub fn ImGui_SetScrollFromPosYEx(local_y: f32, center_y_ratio: f32);
+ pub fn ImGui_PushFont(font: *mut ImFont, font_size_base_unscaled: f32);
+ pub fn ImGui_PopFont();
+ pub fn ImGui_GetFont() -> *mut ImFont;
+ pub fn ImGui_GetFontSize() -> f32;
+ pub fn ImGui_GetFontBaked() -> *mut ImFontBaked;
+ pub fn ImGui_PushStyleColor(idx: ImGuiCol, col: ImU32);
+ pub fn ImGui_PushStyleColorVec4(idx: ImGuiCol, col: ImVec4);
+ pub fn ImGui_PopStyleColor();
+ pub fn ImGui_PopStyleColorEx(count: c_int);
+ pub fn ImGui_PushStyleVar(idx: ImGuiStyleVar, val: f32);
+ pub fn ImGui_PushStyleVarVec2(idx: ImGuiStyleVar, val: ImVec2);
+ pub fn ImGui_PushStyleVarX(idx: ImGuiStyleVar, val_x: f32);
+ pub fn ImGui_PushStyleVarY(idx: ImGuiStyleVar, val_y: f32);
+ pub fn ImGui_PopStyleVar();
+ pub fn ImGui_PopStyleVarEx(count: c_int);
+ pub fn ImGui_PushItemFlag(option: ImGuiItemFlags, enabled: bool);
+ pub fn ImGui_PopItemFlag();
+ pub fn ImGui_PushItemWidth(item_width: f32);
+ pub fn ImGui_PopItemWidth();
+ pub fn ImGui_SetNextItemWidth(item_width: f32);
+ pub fn ImGui_CalcItemWidth() -> f32;
+ pub fn ImGui_PushTextWrapPos();
+ pub fn ImGui_PushTextWrapPosEx(wrap_local_pos_x: f32);
+ pub fn ImGui_PopTextWrapPos();
+ pub fn ImGui_GetFontTexUvWhitePixel() -> ImVec2;
+ pub fn ImGui_GetColorU32(idx: ImGuiCol) -> ImU32;
+ pub fn ImGui_GetColorU32Ex(idx: ImGuiCol, alpha_mul: f32) -> ImU32;
+ pub fn ImGui_GetColorU32Vec4(col: ImVec4) -> ImU32;
+ pub fn ImGui_GetColorU32U32(col: ImU32) -> ImU32;
+ pub fn ImGui_GetColorU32U32Ex(col: ImU32, alpha_mul: f32) -> ImU32;
+ pub fn ImGui_GetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4;
+ pub fn ImGui_GetCursorScreenPos() -> ImVec2;
+ pub fn ImGui_SetCursorScreenPos(pos: ImVec2);
+ pub fn ImGui_GetContentRegionAvail() -> ImVec2;
+ pub fn ImGui_GetCursorPos() -> ImVec2;
+ pub fn ImGui_GetCursorPosX() -> f32;
+ pub fn ImGui_GetCursorPosY() -> f32;
+ pub fn ImGui_SetCursorPos(local_pos: ImVec2);
+ pub fn ImGui_SetCursorPosX(local_x: f32);
+ pub fn ImGui_SetCursorPosY(local_y: f32);
+ pub fn ImGui_GetCursorStartPos() -> ImVec2;
+ pub fn ImGui_Separator();
+ pub fn ImGui_SameLine();
+ pub fn ImGui_SameLineEx(offset_from_start_x: f32, spacing: f32);
+ pub fn ImGui_NewLine();
+ pub fn ImGui_Spacing();
+ pub fn ImGui_Dummy(size: ImVec2);
+ pub fn ImGui_Indent();
+ pub fn ImGui_IndentEx(indent_w: f32);
+ pub fn ImGui_Unindent();
+ pub fn ImGui_UnindentEx(indent_w: f32);
+ pub fn ImGui_BeginGroup();
+ pub fn ImGui_EndGroup();
+ pub fn ImGui_AlignTextToFramePadding();
+ pub fn ImGui_GetTextLineHeight() -> f32;
+ pub fn ImGui_GetTextLineHeightWithSpacing() -> f32;
+ pub fn ImGui_GetFrameHeight() -> f32;
+ pub fn ImGui_GetFrameHeightWithSpacing() -> f32;
+ pub fn ImGui_PushID(str_id: *const c_char);
+ pub fn ImGui_PushIDStr(str_id_begin: *const c_char, str_id_end: *const c_char);
+ pub fn ImGui_PushIDPtr(ptr_id: *const c_void);
+ pub fn ImGui_PushIDInt(int_id: c_int);
+ pub fn ImGui_PopID();
+ pub fn ImGui_GetID(str_id: *const c_char) -> ImGuiID;
+ pub fn ImGui_GetIDStr(str_id_begin: *const c_char, str_id_end: *const c_char) -> ImGuiID;
+ pub fn ImGui_GetIDPtr(ptr_id: *const c_void) -> ImGuiID;
+ pub fn ImGui_GetIDInt(int_id: c_int) -> ImGuiID;
+ pub fn ImGui_TextUnformatted(text: *const c_char);
+ pub fn ImGui_TextUnformattedEx(text: *const c_char, text_end: *const c_char);
+ pub fn ImGui_Text(fmt: *const c_char, ...);
+ pub fn ImGui_TextColored(col: ImVec4, fmt: *const c_char, ...);
+ pub fn ImGui_TextDisabled(fmt: *const c_char, ...);
+ pub fn ImGui_TextWrapped(fmt: *const c_char, ...);
+ pub fn ImGui_LabelText(label: *const c_char, fmt: *const c_char, ...);
+ pub fn ImGui_BulletText(fmt: *const c_char, ...);
+ pub fn ImGui_SeparatorText(label: *const c_char);
+ pub fn ImGui_Button(label: *const c_char) -> bool;
+ pub fn ImGui_ButtonEx(label: *const c_char, size: ImVec2) -> bool;
+ pub fn ImGui_SmallButton(label: *const c_char) -> bool;
+ pub fn ImGui_InvisibleButton(str_id: *const c_char, size: ImVec2) -> bool;
+ pub fn ImGui_InvisibleButtonEx(str_id: *const c_char, size: ImVec2, flags: ImGuiButtonFlags) -> bool;
+ pub fn ImGui_ArrowButton(str_id: *const c_char, dir: ImGuiDir) -> bool;
+ pub fn ImGui_Checkbox(label: *const c_char, v: *mut bool) -> bool;
+ pub fn ImGui_CheckboxFlags(label: *const c_char, flags: *mut c_int, flags_value: c_int) -> bool;
+ pub fn ImGui_CheckboxFlagsUIntPtr(label: *const c_char, flags: *mut c_uint, flags_value: c_uint) -> bool;
+ pub fn ImGui_RadioButton(label: *const c_char, active: bool) -> bool;
+ pub fn ImGui_RadioButtonIntPtr(label: *const c_char, v: *mut c_int, v_button: c_int) -> bool;
+ pub fn ImGui_ProgressBar(fraction: f32);
+ pub fn ImGui_ProgressBarEx(fraction: f32, size_arg: ImVec2, overlay: *const c_char);
+ pub fn ImGui_Bullet();
+ pub fn ImGui_TextLink(label: *const c_char) -> bool;
+ pub fn ImGui_TextLinkOpenURL(label: *const c_char) -> bool;
+ pub fn ImGui_TextLinkOpenURLEx(label: *const c_char, url: *const c_char) -> bool;
+ pub fn ImGui_Image(tex_ref: ImTextureRef, image_size: ImVec2);
+ pub fn ImGui_ImageEx(tex_ref: ImTextureRef, image_size: ImVec2, uv0: ImVec2, uv1: ImVec2);
+ pub fn ImGui_ImageWithBg(tex_ref: ImTextureRef, image_size: ImVec2);
+ pub fn ImGui_ImageWithBgEx(tex_ref: ImTextureRef, image_size: ImVec2, uv0: ImVec2, uv1: ImVec2, bg_col: ImVec4, tint_col: ImVec4);
+ pub fn ImGui_ImageButton(str_id: *const c_char, tex_ref: ImTextureRef, image_size: ImVec2) -> bool;
+ pub fn ImGui_ImageButtonEx(str_id: *const c_char, tex_ref: ImTextureRef, image_size: ImVec2, uv0: ImVec2, uv1: ImVec2, bg_col: ImVec4, tint_col: ImVec4) -> bool;
+ pub fn ImGui_BeginCombo(label: *const c_char, preview_value: *const c_char) -> bool;
+ pub fn ImGui_BeginComboEx(label: *const c_char, preview_value: *const c_char, flags: ImGuiComboFlags) -> bool;
+ pub fn ImGui_EndCombo();
+ pub fn ImGui_Combo(label: *const c_char, current_item: *mut c_int, items: *const *const c_char, items_count: c_int) -> bool;
+ pub fn ImGui_ComboEx(label: *const c_char, current_item: *mut c_int, items: *const *const c_char, items_count: c_int, popup_max_height_in_items: c_int) -> bool;
+ pub fn ImGui_ComboStr(label: *const c_char, current_item: *mut c_int, items_separated_by_zeros: *const c_char) -> bool;
+ pub fn ImGui_ComboStrEx(label: *const c_char, current_item: *mut c_int, items_separated_by_zeros: *const c_char, popup_max_height_in_items: c_int) -> bool;
+ pub fn ImGui_ComboCallback(label: *const c_char, current_item: *mut c_int, getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> *const c_char>, user_data: *mut c_void, items_count: c_int) -> bool;
+ pub fn ImGui_ComboCallbackEx(label: *const c_char, current_item: *mut c_int, getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> *const c_char>, user_data: *mut c_void, items_count: c_int, popup_max_height_in_items: c_int) -> bool;
+ pub fn ImGui_DragFloat(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_DragFloatEx(label: *const c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragFloat2(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_DragFloat2Ex(label: *const c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragFloat3(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_DragFloat3Ex(label: *const c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragFloat4(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_DragFloat4Ex(label: *const c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragFloatRange2(label: *const c_char, v_current_min: *mut f32, v_current_max: *mut f32) -> bool;
+ pub fn ImGui_DragFloatRange2Ex(label: *const c_char, v_current_min: *mut f32, v_current_max: *mut f32, v_speed: f32, v_min: f32, v_max: f32, format: *const c_char, format_max: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragInt(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_DragIntEx(label: *const c_char, v: *mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragInt2(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_DragInt2Ex(label: *const c_char, v: *mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragInt3(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_DragInt3Ex(label: *const c_char, v: *mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragInt4(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_DragInt4Ex(label: *const c_char, v: *mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragIntRange2(label: *const c_char, v_current_min: *mut c_int, v_current_max: *mut c_int) -> bool;
+ pub fn ImGui_DragIntRange2Ex(label: *const c_char, v_current_min: *mut c_int, v_current_max: *mut c_int, v_speed: f32, v_min: c_int, v_max: c_int, format: *const c_char, format_max: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragScalar(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void) -> bool;
+ pub fn ImGui_DragScalarEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, v_speed: f32, p_min: *const c_void, p_max: *const c_void, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_DragScalarN(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int) -> bool;
+ pub fn ImGui_DragScalarNEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int, v_speed: f32, p_min: *const c_void, p_max: *const c_void, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderFloat(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32) -> bool;
+ pub fn ImGui_SliderFloatEx(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderFloat2(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32) -> bool;
+ pub fn ImGui_SliderFloat2Ex(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderFloat3(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32) -> bool;
+ pub fn ImGui_SliderFloat3Ex(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderFloat4(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32) -> bool;
+ pub fn ImGui_SliderFloat4Ex(label: *const c_char, v: *mut f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderAngle(label: *const c_char, v_rad: *mut f32) -> bool;
+ pub fn ImGui_SliderAngleEx(label: *const c_char, v_rad: *mut f32, v_degrees_min: f32, v_degrees_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderInt(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int) -> bool;
+ pub fn ImGui_SliderIntEx(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderInt2(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int) -> bool;
+ pub fn ImGui_SliderInt2Ex(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderInt3(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int) -> bool;
+ pub fn ImGui_SliderInt3Ex(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderInt4(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int) -> bool;
+ pub fn ImGui_SliderInt4Ex(label: *const c_char, v: *mut c_int, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderScalar(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, p_min: *const c_void, p_max: *const c_void) -> bool;
+ pub fn ImGui_SliderScalarEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, p_min: *const c_void, p_max: *const c_void, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_SliderScalarN(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int, p_min: *const c_void, p_max: *const c_void) -> bool;
+ pub fn ImGui_SliderScalarNEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int, p_min: *const c_void, p_max: *const c_void, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_VSliderFloat(label: *const c_char, size: ImVec2, v: *mut f32, v_min: f32, v_max: f32) -> bool;
+ pub fn ImGui_VSliderFloatEx(label: *const c_char, size: ImVec2, v: *mut f32, v_min: f32, v_max: f32, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_VSliderInt(label: *const c_char, size: ImVec2, v: *mut c_int, v_min: c_int, v_max: c_int) -> bool;
+ pub fn ImGui_VSliderIntEx(label: *const c_char, size: ImVec2, v: *mut c_int, v_min: c_int, v_max: c_int, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_VSliderScalar(label: *const c_char, size: ImVec2, data_type: ImGuiDataType, p_data: *mut c_void, p_min: *const c_void, p_max: *const c_void) -> bool;
+ pub fn ImGui_VSliderScalarEx(label: *const c_char, size: ImVec2, data_type: ImGuiDataType, p_data: *mut c_void, p_min: *const c_void, p_max: *const c_void, format: *const c_char, flags: ImGuiSliderFlags) -> bool;
+ pub fn ImGui_InputText(label: *const c_char, buf: *mut c_char, buf_size: usize) -> bool;
+ pub fn ImGui_InputTextEx(label: *const c_char, buf: *mut c_char, buf_size: usize, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, user_data: *mut c_void) -> bool;
+ pub fn ImGui_InputTextMultiline(label: *const c_char, buf: *mut c_char, buf_size: usize) -> bool;
+ pub fn ImGui_InputTextMultilineEx(label: *const c_char, buf: *mut c_char, buf_size: usize, size: ImVec2, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, user_data: *mut c_void) -> bool;
+ pub fn ImGui_InputTextWithHint(label: *const c_char, hint: *const c_char, buf: *mut c_char, buf_size: usize) -> bool;
+ pub fn ImGui_InputTextWithHintEx(label: *const c_char, hint: *const c_char, buf: *mut c_char, buf_size: usize, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, user_data: *mut c_void) -> bool;
+ pub fn ImGui_InputFloat(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_InputFloatEx(label: *const c_char, v: *mut f32, step: f32, step_fast: f32, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputFloat2(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_InputFloat2Ex(label: *const c_char, v: *mut f32, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputFloat3(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_InputFloat3Ex(label: *const c_char, v: *mut f32, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputFloat4(label: *const c_char, v: *mut f32) -> bool;
+ pub fn ImGui_InputFloat4Ex(label: *const c_char, v: *mut f32, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputInt(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_InputIntEx(label: *const c_char, v: *mut c_int, step: c_int, step_fast: c_int, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputInt2(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_InputInt2Ex(label: *const c_char, v: *mut c_int, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputInt3(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_InputInt3Ex(label: *const c_char, v: *mut c_int, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputInt4(label: *const c_char, v: *mut c_int) -> bool;
+ pub fn ImGui_InputInt4Ex(label: *const c_char, v: *mut c_int, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputDouble(label: *const c_char, v: *mut f64) -> bool;
+ pub fn ImGui_InputDoubleEx(label: *const c_char, v: *mut f64, step: f64, step_fast: f64, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputScalar(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void) -> bool;
+ pub fn ImGui_InputScalarEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, p_step: *const c_void, p_step_fast: *const c_void, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_InputScalarN(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int) -> bool;
+ pub fn ImGui_InputScalarNEx(label: *const c_char, data_type: ImGuiDataType, p_data: *mut c_void, components: c_int, p_step: *const c_void, p_step_fast: *const c_void, format: *const c_char, flags: ImGuiInputTextFlags) -> bool;
+ pub fn ImGui_ColorEdit3(label: *const c_char, col: *mut f32) -> bool;
+ pub fn ImGui_ColorEdit3Ex(label: *const c_char, col: *mut f32, flags: ImGuiColorEditFlags) -> bool;
+ pub fn ImGui_ColorEdit4(label: *const c_char, col: *mut f32) -> bool;
+ pub fn ImGui_ColorEdit4Ex(label: *const c_char, col: *mut f32, flags: ImGuiColorEditFlags) -> bool;
+ pub fn ImGui_ColorPicker3(label: *const c_char, col: *mut f32) -> bool;
+ pub fn ImGui_ColorPicker3Ex(label: *const c_char, col: *mut f32, flags: ImGuiColorEditFlags) -> bool;
+ pub fn ImGui_ColorPicker4(label: *const c_char, col: *mut f32) -> bool;
+ pub fn ImGui_ColorPicker4Ex(label: *const c_char, col: *mut f32, flags: ImGuiColorEditFlags, ref_col: *const f32) -> bool;
+ pub fn ImGui_ColorButton(desc_id: *const c_char, col: ImVec4) -> bool;
+ pub fn ImGui_ColorButtonEx(desc_id: *const c_char, col: ImVec4, flags: ImGuiColorEditFlags, size: ImVec2) -> bool;
+ pub fn ImGui_TreeNode(label: *const c_char) -> bool;
+ pub fn ImGui_TreeNodeStr(str_id: *const c_char, fmt: *const c_char, ...) -> bool;
+ pub fn ImGui_TreeNodePtr(ptr_id: *const c_void, fmt: *const c_char, ...) -> bool;
+ pub fn ImGui_TreeNodeEx(label: *const c_char) -> bool;
+ pub fn ImGui_TreeNodeExEx(label: *const c_char, flags: ImGuiTreeNodeFlags) -> bool;
+ pub fn ImGui_TreeNodeExStr(str_id: *const c_char, flags: ImGuiTreeNodeFlags, fmt: *const c_char, ...) -> bool;
+ pub fn ImGui_TreeNodeExPtr(ptr_id: *const c_void, flags: ImGuiTreeNodeFlags, fmt: *const c_char, ...) -> bool;
+ pub fn ImGui_TreePush(str_id: *const c_char);
+ pub fn ImGui_TreePushPtr(ptr_id: *const c_void);
+ pub fn ImGui_TreePop();
+ pub fn ImGui_GetTreeNodeToLabelSpacing() -> f32;
+ pub fn ImGui_CollapsingHeader(label: *const c_char) -> bool;
+ pub fn ImGui_CollapsingHeaderEx(label: *const c_char, flags: ImGuiTreeNodeFlags) -> bool;
+ pub fn ImGui_CollapsingHeaderBoolPtr(label: *const c_char, p_visible: *mut bool) -> bool;
+ pub fn ImGui_CollapsingHeaderBoolPtrEx(label: *const c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags) -> bool;
+ pub fn ImGui_SetNextItemOpen(is_open: bool);
+ pub fn ImGui_SetNextItemOpenEx(is_open: bool, cond: ImGuiCond);
+ pub fn ImGui_SetNextItemStorageID(storage_id: ImGuiID);
+ pub fn ImGui_TreeNodeGetOpen(storage_id: ImGuiID) -> bool;
+ pub fn ImGui_TreeNodeGetOpenEx(storage_id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool;
+ pub fn ImGui_Selectable(label: *const c_char) -> bool;
+ pub fn ImGui_SelectableEx(label: *const c_char, selected: bool, flags: ImGuiSelectableFlags, size: ImVec2) -> bool;
+ pub fn ImGui_SelectableBoolPtr(label: *const c_char, p_selected: *mut bool) -> bool;
+ pub fn ImGui_SelectableBoolPtrEx(label: *const c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, size: ImVec2) -> bool;
+ pub fn ImGui_BeginMultiSelect(flags: ImGuiMultiSelectFlags) -> *mut ImGuiMultiSelectIO;
+ pub fn ImGui_BeginMultiSelectEx(flags: ImGuiMultiSelectFlags, selection_size: c_int, items_count: c_int) -> *mut ImGuiMultiSelectIO;
+ pub fn ImGui_EndMultiSelect() -> *mut ImGuiMultiSelectIO;
+ pub fn ImGui_SetNextItemSelectionUserData(selection_user_data: ImGuiSelectionUserData);
+ pub fn ImGui_IsItemToggledSelection() -> bool;
+ pub fn ImGui_BeginListBox(label: *const c_char) -> bool;
+ pub fn ImGui_BeginListBoxEx(label: *const c_char, size: ImVec2) -> bool;
+ pub fn ImGui_EndListBox();
+ pub fn ImGui_ListBox(label: *const c_char, current_item: *mut c_int, items: *const *const c_char, items_count: c_int) -> bool;
+ pub fn ImGui_ListBoxEx(label: *const c_char, current_item: *mut c_int, items: *const *const c_char, items_count: c_int, height_in_items: c_int) -> bool;
+ pub fn ImGui_ListBoxCallback(label: *const c_char, current_item: *mut c_int, getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> *const c_char>, user_data: *mut c_void, items_count: c_int) -> bool;
+ pub fn ImGui_ListBoxCallbackEx(label: *const c_char, current_item: *mut c_int, getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> *const c_char>, user_data: *mut c_void, items_count: c_int, height_in_items: c_int) -> bool;
+ pub fn ImGui_PlotLines(label: *const c_char, values: *const f32, values_count: c_int);
+ pub fn ImGui_PlotLinesEx(label: *const c_char, values: *const f32, values_count: c_int, values_offset: c_int, overlay_text: *const c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, stride: c_int);
+ pub fn ImGui_PlotLinesCallback(label: *const c_char, values_getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> f32>, data: *mut c_void, values_count: c_int);
+ pub fn ImGui_PlotLinesCallbackEx(label: *const c_char, values_getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> f32>, data: *mut c_void, values_count: c_int, values_offset: c_int, overlay_text: *const c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2);
+ pub fn ImGui_PlotHistogram(label: *const c_char, values: *const f32, values_count: c_int);
+ pub fn ImGui_PlotHistogramEx(label: *const c_char, values: *const f32, values_count: c_int, values_offset: c_int, overlay_text: *const c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, stride: c_int);
+ pub fn ImGui_PlotHistogramCallback(label: *const c_char, values_getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> f32>, data: *mut c_void, values_count: c_int);
+ pub fn ImGui_PlotHistogramCallbackEx(label: *const c_char, values_getter: Option<unsafe extern "C" fn(*mut c_void, c_int) -> f32>, data: *mut c_void, values_count: c_int, values_offset: c_int, overlay_text: *const c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2);
+ pub fn ImGui_Value(prefix: *const c_char, b: bool);
+ pub fn ImGui_ValueInt(prefix: *const c_char, v: c_int);
+ pub fn ImGui_ValueUInt(prefix: *const c_char, v: c_uint);
+ pub fn ImGui_ValueFloat(prefix: *const c_char, v: f32);
+ pub fn ImGui_ValueFloatEx(prefix: *const c_char, v: f32, float_format: *const c_char);
+ pub fn ImGui_BeginMenuBar() -> bool;
+ pub fn ImGui_EndMenuBar();
+ pub fn ImGui_BeginMainMenuBar() -> bool;
+ pub fn ImGui_EndMainMenuBar();
+ pub fn ImGui_BeginMenu(label: *const c_char) -> bool;
+ pub fn ImGui_BeginMenuEx(label: *const c_char, enabled: bool) -> bool;
+ pub fn ImGui_EndMenu();
+ pub fn ImGui_MenuItem(label: *const c_char) -> bool;
+ pub fn ImGui_MenuItemEx(label: *const c_char, shortcut: *const c_char, selected: bool, enabled: bool) -> bool;
+ pub fn ImGui_MenuItemBoolPtr(label: *const c_char, shortcut: *const c_char, p_selected: *mut bool) -> bool;
+ pub fn ImGui_MenuItemBoolPtrEx(label: *const c_char, shortcut: *const c_char, p_selected: *mut bool, enabled: bool) -> bool;
+ pub fn ImGui_BeginTooltip() -> bool;
+ pub fn ImGui_EndTooltip();
+ pub fn ImGui_SetTooltip(fmt: *const c_char, ...);
+ pub fn ImGui_BeginItemTooltip() -> bool;
+ pub fn ImGui_SetItemTooltip(fmt: *const c_char, ...);
+ pub fn ImGui_BeginPopup(str_id: *const c_char) -> bool;
+ pub fn ImGui_BeginPopupEx(str_id: *const c_char, flags: ImGuiWindowFlags) -> bool;
+ pub fn ImGui_BeginPopupModal(name: *const c_char) -> bool;
+ pub fn ImGui_BeginPopupModalEx(name: *const c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool;
+ pub fn ImGui_EndPopup();
+ pub fn ImGui_OpenPopup(str_id: *const c_char) -> bool;
+ pub fn ImGui_OpenPopupEx(str_id: *const c_char, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_OpenPopupID(id: ImGuiID) -> bool;
+ pub fn ImGui_OpenPopupIDEx(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_OpenPopupOnItemClick() -> bool;
+ pub fn ImGui_OpenPopupOnItemClickEx(str_id: *const c_char, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_CloseCurrentPopup();
+ pub fn ImGui_BeginPopupContextItem() -> bool;
+ pub fn ImGui_BeginPopupContextItemEx(str_id: *const c_char, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_BeginPopupContextWindow() -> bool;
+ pub fn ImGui_BeginPopupContextWindowEx(str_id: *const c_char, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_BeginPopupContextVoid() -> bool;
+ pub fn ImGui_BeginPopupContextVoidEx(str_id: *const c_char, popup_flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_IsPopupOpen(str_id: *const c_char) -> bool;
+ pub fn ImGui_IsPopupOpenEx(str_id: *const c_char, flags: ImGuiPopupFlags) -> bool;
+ pub fn ImGui_BeginTable(str_id: *const c_char, columns: c_int) -> bool;
+ pub fn ImGui_BeginTableEx(str_id: *const c_char, columns: c_int, flags: ImGuiTableFlags, outer_size: ImVec2, inner_width: f32) -> bool;
+ pub fn ImGui_EndTable();
+ pub fn ImGui_TableNextRow();
+ pub fn ImGui_TableNextRowEx(row_flags: ImGuiTableRowFlags, min_row_height: f32);
+ pub fn ImGui_TableNextColumn() -> bool;
+ pub fn ImGui_TableSetColumnIndex(column_n: c_int) -> bool;
+ pub fn ImGui_TableSetupColumn(label: *const c_char);
+ pub fn ImGui_TableSetupColumnEx(label: *const c_char, flags: ImGuiTableColumnFlags, init_width_or_weight: f32, user_data: ImGuiID);
+ pub fn ImGui_TableSetupScrollFreeze(cols: c_int, rows: c_int);
+ pub fn ImGui_TableHeader(label: *const c_char);
+ pub fn ImGui_TableHeadersRow();
+ pub fn ImGui_TableAngledHeadersRow();
+ pub fn ImGui_TableGetSortSpecs() -> *mut ImGuiTableSortSpecs;
+ pub fn ImGui_TableGetColumnCount() -> c_int;
+ pub fn ImGui_TableGetColumnIndex() -> c_int;
+ pub fn ImGui_TableGetRowIndex() -> c_int;
+ pub fn ImGui_TableGetColumnName() -> *const c_char;
+ pub fn ImGui_TableGetColumnNameEx(column_n: c_int) -> *const c_char;
+ pub fn ImGui_TableGetColumnFlags() -> ImGuiTableColumnFlags;
+ pub fn ImGui_TableGetColumnFlagsEx(column_n: c_int) -> ImGuiTableColumnFlags;
+ pub fn ImGui_TableSetColumnEnabled(column_n: c_int, v: bool);
+ pub fn ImGui_TableGetHoveredColumn() -> c_int;
+ pub fn ImGui_TableSetBgColor(target: ImGuiTableBgTarget, color: ImU32);
+ pub fn ImGui_TableSetBgColorEx(target: ImGuiTableBgTarget, color: ImU32, column_n: c_int);
+ pub fn ImGui_Columns();
+ pub fn ImGui_ColumnsEx(count: c_int, id: *const c_char, borders: bool);
+ pub fn ImGui_NextColumn();
+ pub fn ImGui_GetColumnIndex() -> c_int;
+ pub fn ImGui_GetColumnWidth() -> f32;
+ pub fn ImGui_GetColumnWidthEx(column_index: c_int) -> f32;
+ pub fn ImGui_SetColumnWidth(column_index: c_int, width: f32);
+ pub fn ImGui_GetColumnOffset() -> f32;
+ pub fn ImGui_GetColumnOffsetEx(column_index: c_int) -> f32;
+ pub fn ImGui_SetColumnOffset(column_index: c_int, offset_x: f32);
+ pub fn ImGui_GetColumnsCount() -> c_int;
+ pub fn ImGui_BeginTabBar(str_id: *const c_char) -> bool;
+ pub fn ImGui_BeginTabBarEx(str_id: *const c_char, flags: ImGuiTabBarFlags) -> bool;
+ pub fn ImGui_EndTabBar();
+ pub fn ImGui_BeginTabItem(label: *const c_char) -> bool;
+ pub fn ImGui_BeginTabItemEx(label: *const c_char, p_open: *mut bool, flags: ImGuiTabItemFlags) -> bool;
+ pub fn ImGui_EndTabItem();
+ pub fn ImGui_TabItemButton(label: *const c_char) -> bool;
+ pub fn ImGui_TabItemButtonEx(label: *const c_char, flags: ImGuiTabItemFlags) -> bool;
+ pub fn ImGui_SetTabItemClosed(tab_or_docked_window_label: *const c_char);
+ pub fn ImGui_LogToTTY();
+ pub fn ImGui_LogToTTYEx(auto_open_depth: c_int);
+ pub fn ImGui_LogToFile();
+ pub fn ImGui_LogToFileEx(auto_open_depth: c_int, filename: *const c_char);
+ pub fn ImGui_LogToClipboard();
+ pub fn ImGui_LogToClipboardEx(auto_open_depth: c_int);
+ pub fn ImGui_LogFinish();
+ pub fn ImGui_LogButtons();
+ pub fn ImGui_LogText(fmt: *const c_char, ...);
+ pub fn ImGui_BeginDragDropSource() -> bool;
+ pub fn ImGui_BeginDragDropSourceEx(flags: ImGuiDragDropFlags) -> bool;
+ pub fn ImGui_SetDragDropPayload(r#type: *const c_char, data: *const c_void, sz: usize) -> bool;
+ pub fn ImGui_SetDragDropPayloadEx(r#type: *const c_char, data: *const c_void, sz: usize, cond: ImGuiCond) -> bool;
+ pub fn ImGui_EndDragDropSource();
+ pub fn ImGui_BeginDragDropTarget() -> bool;
+ pub fn ImGui_AcceptDragDropPayload(r#type: *const c_char) -> *const ImGuiPayload;
+ pub fn ImGui_AcceptDragDropPayloadEx(r#type: *const c_char, flags: ImGuiDragDropFlags) -> *const ImGuiPayload;
+ pub fn ImGui_EndDragDropTarget();
+ pub fn ImGui_GetDragDropPayload() -> *const ImGuiPayload;
+ pub fn ImGui_BeginDisabled();
+ pub fn ImGui_BeginDisabledEx(disabled: bool);
+ pub fn ImGui_EndDisabled();
+ pub fn ImGui_PushClipRect(clip_rect_min: ImVec2, clip_rect_max: ImVec2, intersect_with_current_clip_rect: bool);
+ pub fn ImGui_PopClipRect();
+ pub fn ImGui_SetItemDefaultFocus();
+ pub fn ImGui_SetKeyboardFocusHere();
+ pub fn ImGui_SetKeyboardFocusHereEx(offset: c_int);
+ pub fn ImGui_SetNavCursorVisible(visible: bool);
+ pub fn ImGui_SetNextItemAllowOverlap();
+ pub fn ImGui_IsItemHovered() -> bool;
+ pub fn ImGui_IsItemHoveredEx(flags: ImGuiHoveredFlags) -> bool;
+ pub fn ImGui_IsItemActive() -> bool;
+ pub fn ImGui_IsItemFocused() -> bool;
+ pub fn ImGui_IsItemClicked() -> bool;
+ pub fn ImGui_IsItemClickedEx(mouse_button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsItemVisible() -> bool;
+ pub fn ImGui_IsItemEdited() -> bool;
+ pub fn ImGui_IsItemActivated() -> bool;
+ pub fn ImGui_IsItemDeactivated() -> bool;
+ pub fn ImGui_IsItemDeactivatedAfterEdit() -> bool;
+ pub fn ImGui_IsItemToggledOpen() -> bool;
+ pub fn ImGui_IsAnyItemHovered() -> bool;
+ pub fn ImGui_IsAnyItemActive() -> bool;
+ pub fn ImGui_IsAnyItemFocused() -> bool;
+ pub fn ImGui_GetItemID() -> ImGuiID;
+ pub fn ImGui_GetItemRectMin() -> ImVec2;
+ pub fn ImGui_GetItemRectMax() -> ImVec2;
+ pub fn ImGui_GetItemRectSize() -> ImVec2;
+ pub fn ImGui_GetItemFlags() -> ImGuiItemFlags;
+ pub fn ImGui_GetItemClickedCountWithSingleClickDelay() -> c_int;
+ pub fn ImGui_GetItemClickedCountWithSingleClickDelayEx(mouse_button: ImGuiMouseButton, delay: f32) -> c_int;
+ pub fn ImGui_GetMainViewport() -> *mut ImGuiViewport;
+ pub fn ImGui_GetBackgroundDrawList() -> *mut ImDrawList;
+ pub fn ImGui_GetForegroundDrawList() -> *mut ImDrawList;
+ pub fn ImGui_IsRectVisible(size: ImVec2) -> bool;
+ pub fn ImGui_IsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool;
+ pub fn ImGui_GetTime() -> f64;
+ pub fn ImGui_GetFrameCount() -> c_int;
+ pub fn ImGui_GetDrawListSharedData() -> *mut ImDrawListSharedData;
+ pub fn ImGui_GetStyleColorName(idx: ImGuiCol) -> *const c_char;
+ pub fn ImGui_SetStateStorage(storage: *mut ImGuiStorage);
+ pub fn ImGui_GetStateStorage() -> *mut ImGuiStorage;
+ pub fn ImGui_CalcTextSize(text: *const c_char) -> ImVec2;
+ pub fn ImGui_CalcTextSizeEx(text: *const c_char, text_end: *const c_char, hide_text_after_double_hash: bool, wrap_width: f32) -> ImVec2;
+ pub fn ImGui_ColorConvertU32ToFloat4(r#in: ImU32) -> ImVec4;
+ pub fn ImGui_ColorConvertFloat4ToU32(r#in: ImVec4) -> ImU32;
+ pub fn ImGui_ColorConvertRGBtoHSV(r: f32, g: f32, b: f32, out_h: *mut f32, out_s: *mut f32, out_v: *mut f32);
+ pub fn ImGui_ColorConvertHSVtoRGB(h: f32, s: f32, v: f32, out_r: *mut f32, out_g: *mut f32, out_b: *mut f32);
+ pub fn ImGui_IsKeyDown(key: ImGuiKey) -> bool;
+ pub fn ImGui_IsKeyPressed(key: ImGuiKey) -> bool;
+ pub fn ImGui_IsKeyPressedEx(key: ImGuiKey, repeat: bool) -> bool;
+ pub fn ImGui_IsKeyReleased(key: ImGuiKey) -> bool;
+ pub fn ImGui_IsKeyChordPressed(key_chord: ImGuiKeyChord) -> bool;
+ pub fn ImGui_GetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> c_int;
+ pub fn ImGui_GetKeyName(key: ImGuiKey) -> *const c_char;
+ pub fn ImGui_SetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool);
+ pub fn ImGui_Shortcut(key_chord: ImGuiKeyChord) -> bool;
+ pub fn ImGui_ShortcutEx(key_chord: ImGuiKeyChord, flags: ImGuiInputFlags) -> bool;
+ pub fn ImGui_SetNextItemShortcut(key_chord: ImGuiKeyChord);
+ pub fn ImGui_SetNextItemShortcutEx(key_chord: ImGuiKeyChord, flags: ImGuiInputFlags);
+ pub fn ImGui_SetItemKeyOwner(key: ImGuiKey) -> bool;
+ pub fn ImGui_IsMouseDown(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseClicked(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseClickedEx(button: ImGuiMouseButton, repeat: bool) -> bool;
+ pub fn ImGui_IsMouseReleased(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseDoubleClicked(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseReleasedWithDelay(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseReleasedWithDelayEx(button: ImGuiMouseButton, delay: f32) -> bool;
+ pub fn ImGui_GetMouseClickedCount(button: ImGuiMouseButton) -> c_int;
+ pub fn ImGui_IsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2) -> bool;
+ pub fn ImGui_IsMouseHoveringRectEx(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool;
+ pub fn ImGui_IsMousePosValid() -> bool;
+ pub fn ImGui_IsMousePosValidEx(mouse_pos: *const ImVec2) -> bool;
+ pub fn ImGui_IsAnyMouseDown() -> bool;
+ pub fn ImGui_GetMousePos() -> ImVec2;
+ pub fn ImGui_GetMousePosOnOpeningCurrentPopup() -> ImVec2;
+ pub fn ImGui_IsMouseDragging(button: ImGuiMouseButton) -> bool;
+ pub fn ImGui_IsMouseDraggingEx(button: ImGuiMouseButton, lock_threshold: f32) -> bool;
+ pub fn ImGui_GetMouseDragDelta() -> ImVec2;
+ pub fn ImGui_GetMouseDragDeltaEx(button: ImGuiMouseButton, lock_threshold: f32) -> ImVec2;
+ pub fn ImGui_ResetMouseDragDelta();
+ pub fn ImGui_ResetMouseDragDeltaEx(button: ImGuiMouseButton);
+ pub fn ImGui_GetMouseCursor() -> ImGuiMouseCursor;
+ pub fn ImGui_SetMouseCursor(cursor_type: ImGuiMouseCursor);
+ pub fn ImGui_SetNextFrameWantCaptureMouse(want_capture_mouse: bool);
+ pub fn ImGui_GetClipboardText() -> *const c_char;
+ pub fn ImGui_SetClipboardText(text: *const c_char);
+ pub fn ImGui_LoadIniSettingsFromDisk(ini_filename: *const c_char);
+ pub fn ImGui_LoadIniSettingsFromMemory(ini_data: *const c_char);
+ pub fn ImGui_LoadIniSettingsFromMemoryEx(ini_data: *const c_char, ini_size: usize);
+ pub fn ImGui_SaveIniSettingsToDisk(ini_filename: *const c_char);
+ pub fn ImGui_SaveIniSettingsToMemory() -> *const c_char;
+ pub fn ImGui_SaveIniSettingsToMemoryEx(out_ini_size: *mut usize) -> *const c_char;
+ pub fn ImGui_DebugTextEncoding(text: *const c_char);
+ pub fn ImGui_DebugFlashStyleColor(idx: ImGuiCol);
+ pub fn ImGui_DebugStartItemPicker();
+ pub fn ImGui_DebugCheckVersionAndDataLayout(version_str: *const c_char, sz_io: usize, sz_style: usize, sz_vec2: usize, sz_vec4: usize, sz_drawvert: usize, sz_drawidx: usize) -> bool;
+ pub fn ImGui_DebugLog(fmt: *const c_char, ...);
+ pub fn ImGui_SetAllocatorFunctions(alloc_func: ImGuiMemAllocFunc, free_func: ImGuiMemFreeFunc);
+ pub fn ImGui_SetAllocatorFunctionsEx(alloc_func: ImGuiMemAllocFunc, free_func: ImGuiMemFreeFunc, user_data: *mut c_void);
+ pub fn ImGui_GetAllocatorFunctions(p_alloc_func: *mut ImGuiMemAllocFunc, p_free_func: *mut ImGuiMemFreeFunc, p_user_data: *mut *mut c_void);
+ pub fn ImGui_MemAlloc(size: usize) -> *mut c_void;
+ pub fn ImGui_MemFree(ptr: *mut c_void);
+ pub fn ImVec2_New() -> *mut ImVec2;
+ pub fn ImVec2_NewFloat(_x: f32, _y: f32) -> *mut ImVec2;
+ pub fn ImVec4_New() -> *mut ImVec4;
+ pub fn ImVec4_NewFloat(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4;
+ pub fn ImTextureRef_New() -> *mut ImTextureRef;
+ pub fn ImTextureRef_NewTextureID(tex_id: ImTextureID) -> *mut ImTextureRef;
+ pub fn ImTextureRef_GetTexID(self_: *const ImTextureRef) -> ImTextureID;
+ pub fn ImGuiTableSortSpecs_New() -> *mut ImGuiTableSortSpecs;
+ pub fn ImGuiTableColumnSortSpecs_New() -> *mut ImGuiTableColumnSortSpecs;
+ pub fn ImGuiStyle_New() -> *mut ImGuiStyle;
+ pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32);
+ pub fn ImGuiKeyData_New() -> *mut ImGuiKeyData;
+ pub fn ImGuiIO_New() -> *mut ImGuiIO;
+ pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool);
+ pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32);
+ pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32);
+ pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: c_int, down: bool);
+ pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wheel_x: f32, wheel_y: f32);
+ pub fn ImGuiIO_AddMouseSourceEvent(self_: *mut ImGuiIO, source: ImGuiMouseSource);
+ pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool);
+ pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: c_uint);
+ pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16);
+ pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str: *const c_char);
+ pub fn ImGuiIO_SetKeyEventNativeData(self_: *mut ImGuiIO, key: ImGuiKey, native_keycode: c_int, native_scancode: c_int);
+ pub fn ImGuiIO_SetKeyEventNativeDataEx(self_: *mut ImGuiIO, key: ImGuiKey, native_keycode: c_int, native_scancode: c_int, native_legacy_index: c_int);
+ pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool);
+ pub fn ImGuiIO_ClearEventsQueue(self_: *mut ImGuiIO);
+ pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO);
+ pub fn ImGuiIO_ClearInputMouse(self_: *mut ImGuiIO);
+ pub fn ImGuiInputTextCallbackData_New() -> *mut ImGuiInputTextCallbackData;
+ pub fn ImGuiInputTextCallbackData_DeleteChars(self_: *mut ImGuiInputTextCallbackData, pos: c_int, bytes_count: c_int);
+ pub fn ImGuiInputTextCallbackData_InsertChars(self_: *mut ImGuiInputTextCallbackData, pos: c_int, text: *const c_char);
+ pub fn ImGuiInputTextCallbackData_InsertCharsEx(self_: *mut ImGuiInputTextCallbackData, pos: c_int, text: *const c_char, text_end: *const c_char);
+ pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData);
+ pub fn ImGuiInputTextCallbackData_SetSelection(self_: *mut ImGuiInputTextCallbackData, s: c_int, e: c_int);
+ pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData);
+ pub fn ImGuiInputTextCallbackData_HasSelection(self_: *const ImGuiInputTextCallbackData) -> bool;
+ pub fn ImGuiSizeCallbackData_New() -> *mut ImGuiSizeCallbackData;
+ pub fn ImGuiPayload_New() -> *mut ImGuiPayload;
+ pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload);
+ pub fn ImGuiPayload_IsDataType(self_: *const ImGuiPayload, r#type: *const c_char) -> bool;
+ pub fn ImGuiPayload_IsPreview(self_: *const ImGuiPayload) -> bool;
+ pub fn ImGuiPayload_IsDelivery(self_: *const ImGuiPayload) -> bool;
+ pub fn ImGuiOnceUponAFrame_New() -> *mut ImGuiOnceUponAFrame;
+ pub fn ImGuiTextFilter_New() -> *mut ImGuiTextFilter;
+ pub fn ImGuiTextFilter_NewEx(default_filter: *const c_char) -> *mut ImGuiTextFilter;
+ pub fn ImGuiTextFilter_PassFilter(self_: *const ImGuiTextFilter, text: *const c_char) -> bool;
+ pub fn ImGuiTextFilter_PassFilterEx(self_: *const ImGuiTextFilter, text: *const c_char, text_end: *const c_char) -> bool;
+ pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter);
+ pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter);
+ pub fn ImGuiTextFilter_IsActive(self_: *const ImGuiTextFilter) -> bool;
+ pub fn ImGuiTextFilter_Draw(self_: *mut ImGuiTextFilter) -> bool;
+ pub fn ImGuiTextFilter_DrawEx(self_: *mut ImGuiTextFilter, label: *const c_char) -> bool;
+ pub fn ImGuiTextFilter_DrawWithHint(self_: *mut ImGuiTextFilter) -> bool;
+ pub fn ImGuiTextFilter_DrawWithHintEx(self_: *mut ImGuiTextFilter, label: *const c_char, hint: *const c_char) -> bool;
+ pub fn ImGuiTextBuffer_New() -> *mut ImGuiTextBuffer;
+ pub fn ImGuiTextBuffer_begin(self_: *const ImGuiTextBuffer) -> *const c_char;
+ pub fn ImGuiTextBuffer_end(self_: *const ImGuiTextBuffer) -> *const c_char;
+ pub fn ImGuiTextBuffer_size(self_: *const ImGuiTextBuffer) -> c_int;
+ pub fn ImGuiTextBuffer_empty(self_: *const ImGuiTextBuffer) -> bool;
+ pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer);
+ pub fn ImGuiTextBuffer_resize(self_: *mut ImGuiTextBuffer, size: c_int);
+ pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: c_int);
+ pub fn ImGuiTextBuffer_c_str(self_: *const ImGuiTextBuffer) -> *const c_char;
+ pub fn ImGuiTextBuffer_append(self_: *mut ImGuiTextBuffer, str: *const c_char);
+ pub fn ImGuiTextBuffer_appendEx(self_: *mut ImGuiTextBuffer, str: *const c_char, str_end: *const c_char);
+ pub fn ImGuiTextBuffer_appendf(self_: *mut ImGuiTextBuffer, fmt: *const c_char, ...);
+ pub fn ImGuiStoragePair_New(_key: ImGuiID, _val: c_int) -> *mut ImGuiStoragePair;
+ pub fn ImGuiStoragePair_NewFloat(_key: ImGuiID, _val: f32) -> *mut ImGuiStoragePair;
+ pub fn ImGuiStoragePair_NewPtr(_key: ImGuiID, _val: *mut c_void) -> *mut ImGuiStoragePair;
+ pub fn ImGuiStorage_New() -> *mut ImGuiStorage;
+ pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage);
+ pub fn ImGuiStorage_GetInt(self_: *const ImGuiStorage, key: ImGuiID) -> c_int;
+ pub fn ImGuiStorage_GetIntEx(self_: *const ImGuiStorage, key: ImGuiID, default_val: c_int) -> c_int;
+ pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: c_int);
+ pub fn ImGuiStorage_GetBool(self_: *const ImGuiStorage, key: ImGuiID) -> bool;
+ pub fn ImGuiStorage_GetBoolEx(self_: *const ImGuiStorage, key: ImGuiID, default_val: bool) -> bool;
+ pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool);
+ pub fn ImGuiStorage_GetFloat(self_: *const ImGuiStorage, key: ImGuiID) -> f32;
+ pub fn ImGuiStorage_GetFloatEx(self_: *const ImGuiStorage, key: ImGuiID, default_val: f32) -> f32;
+ pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32);
+ pub fn ImGuiStorage_GetVoidPtr(self_: *const ImGuiStorage, key: ImGuiID) -> *mut c_void;
+ pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut c_void);
+ pub fn ImGuiStorage_GetIntRef(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut c_int;
+ pub fn ImGuiStorage_GetIntRefEx(self_: *mut ImGuiStorage, key: ImGuiID, default_val: c_int) -> *mut c_int;
+ pub fn ImGuiStorage_GetBoolRef(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut bool;
+ pub fn ImGuiStorage_GetBoolRefEx(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> *mut bool;
+ pub fn ImGuiStorage_GetFloatRef(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut f32;
+ pub fn ImGuiStorage_GetFloatRefEx(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> *mut f32;
+ pub fn ImGuiStorage_GetVoidPtrRef(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut *mut c_void;
+ pub fn ImGuiStorage_GetVoidPtrRefEx(self_: *mut ImGuiStorage, key: ImGuiID, default_val: *mut c_void) -> *mut *mut c_void;
+ pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage);
+ pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: c_int);
+ pub fn ImGuiListClipper_New() -> *mut ImGuiListClipper;
+ pub fn ImGuiListClipper_Begin(self_: *mut ImGuiListClipper, items_count: c_int);
+ pub fn ImGuiListClipper_BeginEx(self_: *mut ImGuiListClipper, items_count: c_int, items_height: f32);
+ pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper);
+ pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool;
+ pub fn ImGuiListClipper_IncludeItemByIndex(self_: *mut ImGuiListClipper, item_index: c_int);
+ pub fn ImGuiListClipper_IncludeItemsByIndex(self_: *mut ImGuiListClipper, item_begin: c_int, item_end: c_int);
+ pub fn ImGuiListClipper_SeekCursorForItem(self_: *mut ImGuiListClipper, item_index: c_int);
+ pub fn ImColor_New() -> *mut ImColor;
+ pub fn ImColor_NewFloat(r: f32, g: f32, b: f32) -> *mut ImColor;
+ pub fn ImColor_NewFloatEx(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor;
+ pub fn ImColor_NewVec4(col: ImVec4) -> *mut ImColor;
+ pub fn ImColor_NewInt(r: c_int, g: c_int, b: c_int) -> *mut ImColor;
+ pub fn ImColor_NewIntEx(r: c_int, g: c_int, b: c_int, a: c_int) -> *mut ImColor;
+ pub fn ImColor_NewU32(rgba: ImU32) -> *mut ImColor;
+ pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32);
+ pub fn ImColor_SetHSVEx(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32);
+ pub fn ImColor_HSV(h: f32, s: f32, v: f32) -> ImColor;
+ pub fn ImColor_HSVEx(h: f32, s: f32, v: f32, a: f32) -> ImColor;
+ pub fn ImGuiMultiSelectIO_New() -> *mut ImGuiMultiSelectIO;
+ pub fn ImGuiSelectionRequest_New() -> *mut ImGuiSelectionRequest;
+ pub fn ImGuiSelectionBasicStorage_New() -> *mut ImGuiSelectionBasicStorage;
+ pub fn ImGuiSelectionBasicStorage_ApplyRequests(self_: *mut ImGuiSelectionBasicStorage, ms_io: *mut ImGuiMultiSelectIO);
+ pub fn ImGuiSelectionBasicStorage_Contains(self_: *const ImGuiSelectionBasicStorage, id: ImGuiID) -> bool;
+ pub fn ImGuiSelectionBasicStorage_Clear(self_: *mut ImGuiSelectionBasicStorage);
+ pub fn ImGuiSelectionBasicStorage_Swap(self_: *mut ImGuiSelectionBasicStorage, r: *mut ImGuiSelectionBasicStorage);
+ pub fn ImGuiSelectionBasicStorage_SetItemSelected(self_: *mut ImGuiSelectionBasicStorage, id: ImGuiID, selected: bool);
+ pub fn ImGuiSelectionBasicStorage_GetNextSelectedItem(self_: *mut ImGuiSelectionBasicStorage, opaque_it: *mut *mut c_void, out_id: *mut ImGuiID) -> bool;
+ pub fn ImGuiSelectionBasicStorage_GetStorageIdFromIndex(self_: *mut ImGuiSelectionBasicStorage, idx: c_int) -> ImGuiID;
+ pub fn ImGuiSelectionExternalStorage_New() -> *mut ImGuiSelectionExternalStorage;
+ pub fn ImGuiSelectionExternalStorage_ApplyRequests(self_: *mut ImGuiSelectionExternalStorage, ms_io: *mut ImGuiMultiSelectIO);
+ pub fn ImDrawCmd_New() -> *mut ImDrawCmd;
+ pub fn ImDrawCmd_GetTexID(self_: *const ImDrawCmd) -> ImTextureID;
+ pub fn ImDrawVert_New() -> *mut ImDrawVert;
+ pub fn ImDrawCmdHeader_New() -> *mut ImDrawCmdHeader;
+ pub fn ImDrawChannel_New() -> *mut ImDrawChannel;
+ pub fn ImDrawListSplitter_New() -> *mut ImDrawListSplitter;
+ pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter);
+ pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter);
+ pub fn ImDrawListSplitter_Split(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList, count: c_int);
+ pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList);
+ pub fn ImDrawListSplitter_SetCurrentChannel(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList, channel_idx: c_int);
+ pub fn ImDrawList_New(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList;
+ pub fn ImDrawList_PushClipRect(self_: *mut ImDrawList, clip_rect_min: ImVec2, clip_rect_max: ImVec2);
+ pub fn ImDrawList_PushClipRectEx(self_: *mut ImDrawList, clip_rect_min: ImVec2, clip_rect_max: ImVec2, intersect_with_current_clip_rect: bool);
+ pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList);
+ pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList);
+ pub fn ImDrawList_PushTexture(self_: *mut ImDrawList, tex_ref: ImTextureRef);
+ pub fn ImDrawList_PopTexture(self_: *mut ImDrawList);
+ pub fn ImDrawList_PushDrawFlag(self_: *mut ImDrawList, flags: ImDrawFlags, enabled: bool);
+ pub fn ImDrawList_PopDrawFlag(self_: *mut ImDrawList);
+ pub fn ImDrawList_GetClipRectMin(self_: *const ImDrawList) -> ImVec2;
+ pub fn ImDrawList_GetClipRectMax(self_: *const ImDrawList) -> ImVec2;
+ pub fn ImDrawList_AddLine(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddLineEx(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddLineH(self_: *mut ImDrawList, min_x: f32, max_x: f32, y: f32, col: ImU32);
+ pub fn ImDrawList_AddLineHEx(self_: *mut ImDrawList, min_x: f32, max_x: f32, y: f32, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddLineV(self_: *mut ImDrawList, x: f32, min_y: f32, max_y: f32, col: ImU32);
+ pub fn ImDrawList_AddLineVEx(self_: *mut ImDrawList, x: f32, min_y: f32, max_y: f32, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddRect(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddRectEx(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32, rounding: f32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddRectFilled(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddRectFilledEx(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32, rounding: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddRectFilledMultiColor(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col_upr_left: ImU32, col_upr_right: ImU32, col_bot_right: ImU32, col_bot_left: ImU32);
+ pub fn ImDrawList_AddQuad(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddQuadEx(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddQuadFilled(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddTriangle(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddTriangleEx(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddTriangleFilled(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddCircle(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32);
+ pub fn ImDrawList_AddCircleEx(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddCircleFilled(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32);
+ pub fn ImDrawList_AddCircleFilledEx(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32, num_segments: c_int);
+ pub fn ImDrawList_AddNgon(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32, num_segments: c_int);
+ pub fn ImDrawList_AddNgonEx(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddNgonFilled(self_: *mut ImDrawList, center: ImVec2, radius: f32, col: ImU32, num_segments: c_int);
+ pub fn ImDrawList_AddEllipse(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddEllipseEx(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, col: ImU32, rot: f32, num_segments: c_int, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddEllipseFilled(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddEllipseFilledEx(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, col: ImU32, rot: f32, num_segments: c_int);
+ pub fn ImDrawList_AddText(self_: *mut ImDrawList, pos: ImVec2, col: ImU32, text_begin: *const c_char);
+ pub fn ImDrawList_AddTextEx(self_: *mut ImDrawList, pos: ImVec2, col: ImU32, text_begin: *const c_char, text_end: *const c_char);
+ pub fn ImDrawList_AddTextFontPtr(self_: *mut ImDrawList, font: *mut ImFont, font_size: f32, pos: ImVec2, col: ImU32, text_begin: *const c_char);
+ pub fn ImDrawList_AddTextFontPtrEx(self_: *mut ImDrawList, font: *mut ImFont, font_size: f32, pos: ImVec2, col: ImU32, text_begin: *const c_char, text_end: *const c_char, wrap_width: f32, cpu_fine_clip_rect: *const ImVec4);
+ pub fn ImDrawList_AddBezierCubic(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, col: ImU32, thickness: f32);
+ pub fn ImDrawList_AddBezierCubicEx(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, col: ImU32, thickness: f32, num_segments: c_int, flags: ImDrawFlags);
+ pub fn ImDrawList_AddBezierQuadratic(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, col: ImU32, thickness: f32);
+ pub fn ImDrawList_AddBezierQuadraticEx(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, p3: ImVec2, col: ImU32, thickness: f32, num_segments: c_int, flags: ImDrawFlags);
+ pub fn ImDrawList_AddPolyline(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32, thickness: f32);
+ pub fn ImDrawList_AddPolylineEx(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddConvexPolyFilled(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32);
+ pub fn ImDrawList_AddConvexPolyFilledEx(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddConcavePolyFilled(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32);
+ pub fn ImDrawList_AddImage(self_: *mut ImDrawList, tex_ref: ImTextureRef, p_min: ImVec2, p_max: ImVec2);
+ pub fn ImDrawList_AddImageEx(self_: *mut ImDrawList, tex_ref: ImTextureRef, p_min: ImVec2, p_max: ImVec2, uv_min: ImVec2, uv_max: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddImageQuad(self_: *mut ImDrawList, tex_ref: ImTextureRef, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2);
+ pub fn ImDrawList_AddImageQuadEx(self_: *mut ImDrawList, tex_ref: ImTextureRef, p1: ImVec2, p2: ImVec2, p3: ImVec2, p4: ImVec2, uv1: ImVec2, uv2: ImVec2, uv3: ImVec2, uv4: ImVec2, col: ImU32);
+ pub fn ImDrawList_AddImageRounded(self_: *mut ImDrawList, tex_ref: ImTextureRef, p_min: ImVec2, p_max: ImVec2, uv_min: ImVec2, uv_max: ImVec2, col: ImU32, rounding: f32);
+ pub fn ImDrawList_AddImageRoundedEx(self_: *mut ImDrawList, tex_ref: ImTextureRef, p_min: ImVec2, p_max: ImVec2, uv_min: ImVec2, uv_max: ImVec2, col: ImU32, rounding: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_PathClear(self_: *mut ImDrawList);
+ pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2);
+ pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2);
+ pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32);
+ pub fn ImDrawList_PathFillConvexEx(self_: *mut ImDrawList, col: ImU32, flags: ImDrawFlags);
+ pub fn ImDrawList_PathFillConcave(self_: *mut ImDrawList, col: ImU32);
+ pub fn ImDrawList_PathStroke(self_: *mut ImDrawList, col: ImU32);
+ pub fn ImDrawList_PathStrokeEx(self_: *mut ImDrawList, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_PathArcTo(self_: *mut ImDrawList, center: ImVec2, radius: f32, a_min: f32, a_max: f32);
+ pub fn ImDrawList_PathArcToEx(self_: *mut ImDrawList, center: ImVec2, radius: f32, a_min: f32, a_max: f32, num_segments: c_int);
+ pub fn ImDrawList_PathArcToFast(self_: *mut ImDrawList, center: ImVec2, radius: f32, a_min_of_12: c_int, a_max_of_12: c_int);
+ pub fn ImDrawList_PathEllipticalArcTo(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, rot: f32, a_min: f32, a_max: f32);
+ pub fn ImDrawList_PathEllipticalArcToEx(self_: *mut ImDrawList, center: ImVec2, radius: ImVec2, rot: f32, a_min: f32, a_max: f32, num_segments: c_int);
+ pub fn ImDrawList_PathBezierCubicCurveTo(self_: *mut ImDrawList, p2: ImVec2, p3: ImVec2, p4: ImVec2);
+ pub fn ImDrawList_PathBezierCubicCurveToEx(self_: *mut ImDrawList, p2: ImVec2, p3: ImVec2, p4: ImVec2, num_segments: c_int);
+ pub fn ImDrawList_PathBezierQuadraticCurveTo(self_: *mut ImDrawList, p2: ImVec2, p3: ImVec2);
+ pub fn ImDrawList_PathBezierQuadraticCurveToEx(self_: *mut ImDrawList, p2: ImVec2, p3: ImVec2, num_segments: c_int);
+ pub fn ImDrawList_PathRect(self_: *mut ImDrawList, rect_min: ImVec2, rect_max: ImVec2);
+ pub fn ImDrawList_PathRectEx(self_: *mut ImDrawList, rect_min: ImVec2, rect_max: ImVec2, rounding: f32, flags: ImDrawFlags);
+ pub fn ImDrawList_AddCallback(self_: *mut ImDrawList, callback: ImDrawCallback);
+ pub fn ImDrawList_AddCallbackEx(self_: *mut ImDrawList, callback: ImDrawCallback, userdata: *mut c_void, userdata_size: usize);
+ pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList);
+ pub fn ImDrawList_CloneOutput(self_: *const ImDrawList) -> *mut ImDrawList;
+ pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: c_int);
+ pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList);
+ pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: c_int);
+ pub fn ImDrawList_PrimReserve(self_: *mut ImDrawList, idx_count: c_int, vtx_count: c_int);
+ pub fn ImDrawList_PrimUnreserve(self_: *mut ImDrawList, idx_count: c_int, vtx_count: c_int);
+ pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32);
+ pub fn ImDrawList_PrimRectUV(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, uv_a: ImVec2, uv_b: ImVec2, col: ImU32);
+ pub fn ImDrawList_PrimQuadUV(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, c: ImVec2, d: ImVec2, uv_a: ImVec2, uv_b: ImVec2, uv_c: ImVec2, uv_d: ImVec2, col: ImU32);
+ pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32);
+ pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx);
+ pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32);
+ pub fn ImDrawList__SetDrawListSharedData(self_: *mut ImDrawList, data: *mut ImDrawListSharedData);
+ pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList);
+ pub fn ImDrawList__SetPixelDensity(self_: *mut ImDrawList, pixel_density: f32);
+ pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList);
+ pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList);
+ pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList);
+ pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList);
+ pub fn ImDrawList__OnChangedTexture(self_: *mut ImDrawList);
+ pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList);
+ pub fn ImDrawList__SetTexture(self_: *mut ImDrawList, tex_ref: ImTextureRef);
+ pub fn ImDrawList__CalcCircleAutoSegmentCount(self_: *const ImDrawList, radius: f32) -> c_int;
+ pub fn ImDrawList__PathArcToFastEx(self_: *mut ImDrawList, center: ImVec2, radius: f32, a_min_sample: c_int, a_max_sample: c_int, a_step: c_int);
+ pub fn ImDrawList__PathArcToN(self_: *mut ImDrawList, center: ImVec2, radius: f32, a_min: f32, a_max: f32, num_segments: c_int);
+ pub fn ImDrawList__AddRectFilledBaked(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32, r: f32, tex_uvs: ImVec4, flags: ImDrawFlags);
+ pub fn ImDrawList__AddRectBaked(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32, r: f32, t: f32, tex_uvs: ImVec4, flags: ImDrawFlags);
+ pub fn ImDrawList__AddLine(self_: *mut ImDrawList, p1: ImVec2, p2: ImVec2, col: ImU32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList__AddRectTinyRounding(self_: *mut ImDrawList, p_min: ImVec2, p_max: ImVec2, col: ImU32, rounding: f32, thickness: f32, flags: ImDrawFlags);
+ pub fn ImDrawList__SelectLineTexture(self_: *mut ImDrawList, screen_thickness: f32, out_uv0: *mut ImVec2, out_uv1: *mut ImVec2, out_fringe: *mut f32, flags: ImDrawFlags);
+ pub fn ImDrawList__CalculateCenterBiasedOffset(self_: *mut ImDrawList, thickness: f32) -> f32;
+ pub fn ImDrawList__AddPolyline(self_: *mut ImDrawList, points: *const ImVec2, num_points: c_int, col: ImU32, thickness: f32, flags: ImDrawFlags, max_inner_offset: f32);
+ pub fn ImDrawData_New() -> *mut ImDrawData;
+ pub fn ImDrawData_Clear(self_: *mut ImDrawData);
+ pub fn ImDrawData_AddDrawList(self_: *mut ImDrawData, draw_list: *mut ImDrawList);
+ pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData);
+ pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2);
+ pub fn ImTextureRect_New() -> *mut ImTextureRect;
+ pub fn ImTextureData_New() -> *mut ImTextureData;
+ pub fn ImTextureData_Create(self_: *mut ImTextureData, format: ImTextureFormat, w: c_int, h: c_int);
+ pub fn ImTextureData_DestroyPixels(self_: *mut ImTextureData);
+ pub fn ImTextureData_GetPixels(self_: *mut ImTextureData) -> *mut c_void;
+ pub fn ImTextureData_GetPixelsAt(self_: *mut ImTextureData, x: c_int, y: c_int) -> *mut c_void;
+ pub fn ImTextureData_GetSizeInBytes(self_: *const ImTextureData) -> c_int;
+ pub fn ImTextureData_GetPitch(self_: *const ImTextureData) -> c_int;
+ pub fn ImTextureData_GetTexRef(self_: *mut ImTextureData) -> ImTextureRef;
+ pub fn ImTextureData_GetTexID(self_: *const ImTextureData) -> ImTextureID;
+ pub fn ImTextureData_SetTexID(self_: *mut ImTextureData, tex_id: ImTextureID);
+ pub fn ImTextureData_SetStatus(self_: *mut ImTextureData, status: ImTextureStatus);
+ pub fn ImFontConfig_New() -> *mut ImFontConfig;
+ pub fn ImFontGlyph_New() -> *mut ImFontGlyph;
+ pub fn ImFontGlyphRangesBuilder_New() -> *mut ImFontGlyphRangesBuilder;
+ pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder);
+ pub fn ImFontGlyphRangesBuilder_GetBit(self_: *const ImFontGlyphRangesBuilder, n: usize) -> bool;
+ pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize);
+ pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar);
+ pub fn ImFontGlyphRangesBuilder_AddText(self_: *mut ImFontGlyphRangesBuilder, text: *const c_char);
+ pub fn ImFontGlyphRangesBuilder_AddTextEx(self_: *mut ImFontGlyphRangesBuilder, text: *const c_char, text_end: *const c_char);
+ pub fn ImFontGlyphRangesBuilder_AddRanges(self_: *mut ImFontGlyphRangesBuilder, ranges: *const ImWchar);
+ pub fn ImFontGlyphRangesBuilder_BuildRanges(self_: *mut ImFontGlyphRangesBuilder, out_ranges: *mut ImVector<ImWchar>);
+ pub fn ImFontAtlasRect_New() -> *mut ImFontAtlasRect;
+ pub fn ImFontAtlas_New() -> *mut ImFontAtlas;
+ pub fn ImFontAtlas_AddFont(self_: *mut ImFontAtlas, font_cfg: *const ImFontConfig) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefault(self_: *mut ImFontAtlas) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefaultEx(self_: *mut ImFontAtlas, font_cfg: *const ImFontConfig) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefaultVector(self_: *mut ImFontAtlas) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefaultVectorEx(self_: *mut ImFontAtlas, font_cfg: *const ImFontConfig) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefaultBitmap(self_: *mut ImFontAtlas) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontDefaultBitmapEx(self_: *mut ImFontAtlas, font_cfg: *const ImFontConfig) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromFileTTF(self_: *mut ImFontAtlas, filename: *const c_char) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromFileTTFEx(self_: *mut ImFontAtlas, filename: *const c_char, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryTTF(self_: *mut ImFontAtlas, font_data: *mut c_void, font_data_size: c_int) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryTTFEx(self_: *mut ImFontAtlas, font_data: *mut c_void, font_data_size: c_int, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF(self_: *mut ImFontAtlas, compressed_font_data: *const c_void, compressed_font_data_size: c_int) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryCompressedTTFEx(self_: *mut ImFontAtlas, compressed_font_data: *const c_void, compressed_font_data_size: c_int, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(self_: *mut ImFontAtlas, compressed_font_data_base85: *const c_char) -> *mut ImFont;
+ pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTFEx(self_: *mut ImFontAtlas, compressed_font_data_base85: *const c_char, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar) -> *mut ImFont;
+ pub fn ImFontAtlas_RemoveFont(self_: *mut ImFontAtlas, font: *mut ImFont);
+ pub fn ImFontAtlas_CompactCache(self_: *mut ImFontAtlas);
+ pub fn ImFontAtlas_SetFontLoader(self_: *mut ImFontAtlas, font_loader: *const ImFontLoader);
+ pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas);
+ pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas);
+ pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas);
+ pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas);
+ pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar;
+ pub fn ImFontAtlas_AddCustomRect(self_: *mut ImFontAtlas, width: c_int, height: c_int) -> ImFontAtlasRectId;
+ pub fn ImFontAtlas_AddCustomRectEx(self_: *mut ImFontAtlas, width: c_int, height: c_int, out_r: *mut ImFontAtlasRect) -> ImFontAtlasRectId;
+ pub fn ImFontAtlas_RemoveCustomRect(self_: *mut ImFontAtlas, id: ImFontAtlasRectId);
+ pub fn ImFontAtlas_GetCustomRect(self_: *const ImFontAtlas, id: ImFontAtlasRectId, out_r: *mut ImFontAtlasRect) -> bool;
+ pub fn ImFontBaked_New() -> *mut ImFontBaked;
+ pub fn ImFontBaked_ClearOutputData(self_: *mut ImFontBaked);
+ pub fn ImFontBaked_FindGlyph(self_: *mut ImFontBaked, c: ImWchar) -> *mut ImFontGlyph;
+ pub fn ImFontBaked_FindGlyphNoFallback(self_: *mut ImFontBaked, c: ImWchar) -> *mut ImFontGlyph;
+ pub fn ImFontBaked_GetCharAdvance(self_: *mut ImFontBaked, c: ImWchar) -> f32;
+ pub fn ImFontBaked_IsGlyphLoaded(self_: *mut ImFontBaked, c: ImWchar) -> bool;
+ pub fn ImFont_New() -> *mut ImFont;
+ pub fn ImFont_IsGlyphInFont(self_: *mut ImFont, c: ImWchar) -> bool;
+ pub fn ImFont_IsLoaded(self_: *const ImFont) -> bool;
+ pub fn ImFont_GetDebugName(self_: *const ImFont) -> *const c_char;
+ pub fn ImFont_GetFontBaked(self_: *mut ImFont, font_size: f32) -> *mut ImFontBaked;
+ pub fn ImFont_GetFontBakedEx(self_: *mut ImFont, font_size: f32, density: f32) -> *mut ImFontBaked;
+ pub fn ImFont_CalcTextSizeA(self_: *mut ImFont, size: f32, max_width: f32, wrap_width: f32, text_begin: *const c_char) -> ImVec2;
+ pub fn ImFont_CalcTextSizeAEx(self_: *mut ImFont, size: f32, max_width: f32, wrap_width: f32, text_begin: *const c_char, text_end: *const c_char, out_remaining: *mut *const c_char) -> ImVec2;
+ pub fn ImFont_CalcWordWrapPosition(self_: *mut ImFont, size: f32, text: *const c_char, text_end: *const c_char, wrap_width: f32) -> *const c_char;
+ pub fn ImFont_RenderChar(self_: *mut ImFont, draw_list: *mut ImDrawList, size: f32, pos: ImVec2, col: ImU32, c: ImWchar);
+ pub fn ImFont_RenderCharEx(self_: *mut ImFont, draw_list: *mut ImDrawList, size: f32, pos: ImVec2, col: ImU32, c: ImWchar, cpu_fine_clip: *const ImVec4);
+ pub fn ImFont_RenderText(self_: *mut ImFont, draw_list: *mut ImDrawList, size: f32, pos: ImVec2, col: ImU32, clip_rect: ImVec4, text_begin: *const c_char, text_end: *const c_char);
+ pub fn ImFont_RenderTextEx(self_: *mut ImFont, draw_list: *mut ImDrawList, size: f32, pos: ImVec2, col: ImU32, clip_rect: ImVec4, text_begin: *const c_char, text_end: *const c_char, wrap_width: f32, flags: ImDrawTextFlags);
+ pub fn ImFont_ClearOutputData(self_: *mut ImFont);
+ pub fn ImFont_AddRemapCodepoint(self_: *mut ImFont, from_codepoint: ImWchar, to_codepoint: ImWchar);
+ pub fn ImFont_AddRemapCodepointToGlyphIndex(self_: *mut ImFont, from_codepoint: ImWchar, font_src_idx: c_int, glyph_idx: c_int);
+ pub fn ImFont_IsGlyphRangeUnused(self_: *mut ImFont, c_begin: c_uint, c_last: c_uint) -> bool;
+ pub fn ImGuiViewport_New() -> *mut ImGuiViewport;
+ pub fn ImGuiViewport_GetCenter(self_: *const ImGuiViewport) -> ImVec2;
+ pub fn ImGuiViewport_GetWorkCenter(self_: *const ImGuiViewport) -> ImVec2;
+ pub fn ImGuiPlatformIO_New() -> *mut ImGuiPlatformIO;
+ pub fn ImGuiPlatformIO_ClearPlatformHandlers(self_: *mut ImGuiPlatformIO);
+ pub fn ImGuiPlatformIO_ClearRendererHandlers(self_: *mut ImGuiPlatformIO);
+ pub fn ImGuiPlatformImeData_New() -> *mut ImGuiPlatformImeData;
+ pub fn ImVec2_Delete(self_: *mut ImVec2);
+ pub fn ImVec4_Delete(self_: *mut ImVec4);
+ pub fn ImTextureRef_Delete(self_: *mut ImTextureRef);
+ pub fn ImGuiTableSortSpecs_Delete(self_: *mut ImGuiTableSortSpecs);
+ pub fn ImGuiTableColumnSortSpecs_Delete(self_: *mut ImGuiTableColumnSortSpecs);
+ pub fn ImGuiStyle_Delete(self_: *mut ImGuiStyle);
+ pub fn ImGuiKeyData_Delete(self_: *mut ImGuiKeyData);
+ pub fn ImGuiIO_Delete(self_: *mut ImGuiIO);
+ pub fn ImGuiInputTextCallbackData_Delete(self_: *mut ImGuiInputTextCallbackData);
+ pub fn ImGuiSizeCallbackData_Delete(self_: *mut ImGuiSizeCallbackData);
+ pub fn ImGuiPayload_Delete(self_: *mut ImGuiPayload);
+ pub fn ImGuiOnceUponAFrame_Delete(self_: *mut ImGuiOnceUponAFrame);
+ pub fn ImGuiTextFilter_Delete(self_: *mut ImGuiTextFilter);
+ pub fn ImGuiTextBuffer_Delete(self_: *mut ImGuiTextBuffer);
+ pub fn ImGuiStoragePair_Delete(self_: *mut ImGuiStoragePair);
+ pub fn ImGuiStorage_Delete(self_: *mut ImGuiStorage);
+ pub fn ImGuiListClipper_Delete(self_: *mut ImGuiListClipper);
+ pub fn ImColor_Delete(self_: *mut ImColor);
+ pub fn ImGuiMultiSelectIO_Delete(self_: *mut ImGuiMultiSelectIO);
+ pub fn ImGuiSelectionRequest_Delete(self_: *mut ImGuiSelectionRequest);
+ pub fn ImGuiSelectionBasicStorage_Delete(self_: *mut ImGuiSelectionBasicStorage);
+ pub fn ImGuiSelectionExternalStorage_Delete(self_: *mut ImGuiSelectionExternalStorage);
+ pub fn ImDrawCmd_Delete(self_: *mut ImDrawCmd);
+ pub fn ImDrawVert_Delete(self_: *mut ImDrawVert);
+ pub fn ImDrawCmdHeader_Delete(self_: *mut ImDrawCmdHeader);
+ pub fn ImDrawChannel_Delete(self_: *mut ImDrawChannel);
+ pub fn ImDrawListSplitter_Delete(self_: *mut ImDrawListSplitter);
+ pub fn ImDrawList_Delete(self_: *mut ImDrawList);
+ pub fn ImDrawData_Delete(self_: *mut ImDrawData);
+ pub fn ImTextureRect_Delete(self_: *mut ImTextureRect);
+ pub fn ImTextureData_Delete(self_: *mut ImTextureData);
+ pub fn ImFontConfig_Delete(self_: *mut ImFontConfig);
+ pub fn ImFontGlyph_Delete(self_: *mut ImFontGlyph);
+ pub fn ImFontGlyphRangesBuilder_Delete(self_: *mut ImFontGlyphRangesBuilder);
+ pub fn ImFontAtlasRect_Delete(self_: *mut ImFontAtlasRect);
+ pub fn ImFontAtlas_Delete(self_: *mut ImFontAtlas);
+ pub fn ImFontBaked_Delete(self_: *mut ImFontBaked);
+ pub fn ImFont_Delete(self_: *mut ImFont);
+ pub fn ImGuiViewport_Delete(self_: *mut ImGuiViewport);
+ pub fn ImGuiPlatformIO_Delete(self_: *mut ImGuiPlatformIO);
+ pub fn ImGuiPlatformImeData_Delete(self_: *mut ImGuiPlatformImeData);
+ pub fn ImTextureRef_FromID(tex_id: ImTextureID) -> ImTextureRef;
+ pub fn cImGui_SizeOf(type_name: *const c_char) -> usize;
+}
+
+/// Structs whose Rust size differs from C++ (`sizeof`): empty when the layouts match.
+pub fn layout_mismatches() -> Vec<(&'static str, usize, usize)> {
+ let mut bad = Vec::new();
+ let c = unsafe { cImGui_SizeOf(c"ImVec2".as_ptr()) };
+ if c != core::mem::size_of::<ImVec2>() { bad.push(("ImVec2", core::mem::size_of::<ImVec2>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImVec4".as_ptr()) };
+ if c != core::mem::size_of::<ImVec4>() { bad.push(("ImVec4", core::mem::size_of::<ImVec4>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImTextureRef".as_ptr()) };
+ if c != core::mem::size_of::<ImTextureRef>() { bad.push(("ImTextureRef", core::mem::size_of::<ImTextureRef>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiTableSortSpecs".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiTableSortSpecs>() { bad.push(("ImGuiTableSortSpecs", core::mem::size_of::<ImGuiTableSortSpecs>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiTableColumnSortSpecs".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiTableColumnSortSpecs>() { bad.push(("ImGuiTableColumnSortSpecs", core::mem::size_of::<ImGuiTableColumnSortSpecs>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiStyle".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiStyle>() { bad.push(("ImGuiStyle", core::mem::size_of::<ImGuiStyle>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiKeyData".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiKeyData>() { bad.push(("ImGuiKeyData", core::mem::size_of::<ImGuiKeyData>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiIO".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiIO>() { bad.push(("ImGuiIO", core::mem::size_of::<ImGuiIO>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiInputTextCallbackData".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiInputTextCallbackData>() { bad.push(("ImGuiInputTextCallbackData", core::mem::size_of::<ImGuiInputTextCallbackData>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiSizeCallbackData".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiSizeCallbackData>() { bad.push(("ImGuiSizeCallbackData", core::mem::size_of::<ImGuiSizeCallbackData>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiPayload".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiPayload>() { bad.push(("ImGuiPayload", core::mem::size_of::<ImGuiPayload>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiOnceUponAFrame".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiOnceUponAFrame>() { bad.push(("ImGuiOnceUponAFrame", core::mem::size_of::<ImGuiOnceUponAFrame>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiTextFilter".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiTextFilter>() { bad.push(("ImGuiTextFilter", core::mem::size_of::<ImGuiTextFilter>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiTextBuffer".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiTextBuffer>() { bad.push(("ImGuiTextBuffer", core::mem::size_of::<ImGuiTextBuffer>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiStoragePair".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiStoragePair>() { bad.push(("ImGuiStoragePair", core::mem::size_of::<ImGuiStoragePair>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiStorage".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiStorage>() { bad.push(("ImGuiStorage", core::mem::size_of::<ImGuiStorage>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiListClipper".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiListClipper>() { bad.push(("ImGuiListClipper", core::mem::size_of::<ImGuiListClipper>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImColor".as_ptr()) };
+ if c != core::mem::size_of::<ImColor>() { bad.push(("ImColor", core::mem::size_of::<ImColor>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiMultiSelectIO".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiMultiSelectIO>() { bad.push(("ImGuiMultiSelectIO", core::mem::size_of::<ImGuiMultiSelectIO>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiSelectionRequest".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiSelectionRequest>() { bad.push(("ImGuiSelectionRequest", core::mem::size_of::<ImGuiSelectionRequest>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiSelectionBasicStorage".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiSelectionBasicStorage>() { bad.push(("ImGuiSelectionBasicStorage", core::mem::size_of::<ImGuiSelectionBasicStorage>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiSelectionExternalStorage".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiSelectionExternalStorage>() { bad.push(("ImGuiSelectionExternalStorage", core::mem::size_of::<ImGuiSelectionExternalStorage>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawCmd".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawCmd>() { bad.push(("ImDrawCmd", core::mem::size_of::<ImDrawCmd>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawVert".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawVert>() { bad.push(("ImDrawVert", core::mem::size_of::<ImDrawVert>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawCmdHeader".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawCmdHeader>() { bad.push(("ImDrawCmdHeader", core::mem::size_of::<ImDrawCmdHeader>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawChannel".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawChannel>() { bad.push(("ImDrawChannel", core::mem::size_of::<ImDrawChannel>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawListSplitter".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawListSplitter>() { bad.push(("ImDrawListSplitter", core::mem::size_of::<ImDrawListSplitter>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawList".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawList>() { bad.push(("ImDrawList", core::mem::size_of::<ImDrawList>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImDrawData".as_ptr()) };
+ if c != core::mem::size_of::<ImDrawData>() { bad.push(("ImDrawData", core::mem::size_of::<ImDrawData>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImTextureRect".as_ptr()) };
+ if c != core::mem::size_of::<ImTextureRect>() { bad.push(("ImTextureRect", core::mem::size_of::<ImTextureRect>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImTextureData".as_ptr()) };
+ if c != core::mem::size_of::<ImTextureData>() { bad.push(("ImTextureData", core::mem::size_of::<ImTextureData>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontConfig".as_ptr()) };
+ if c != core::mem::size_of::<ImFontConfig>() { bad.push(("ImFontConfig", core::mem::size_of::<ImFontConfig>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontGlyph".as_ptr()) };
+ if c != core::mem::size_of::<ImFontGlyph>() { bad.push(("ImFontGlyph", core::mem::size_of::<ImFontGlyph>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontGlyphRangesBuilder".as_ptr()) };
+ if c != core::mem::size_of::<ImFontGlyphRangesBuilder>() { bad.push(("ImFontGlyphRangesBuilder", core::mem::size_of::<ImFontGlyphRangesBuilder>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontAtlasRect".as_ptr()) };
+ if c != core::mem::size_of::<ImFontAtlasRect>() { bad.push(("ImFontAtlasRect", core::mem::size_of::<ImFontAtlasRect>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontAtlas".as_ptr()) };
+ if c != core::mem::size_of::<ImFontAtlas>() { bad.push(("ImFontAtlas", core::mem::size_of::<ImFontAtlas>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFontBaked".as_ptr()) };
+ if c != core::mem::size_of::<ImFontBaked>() { bad.push(("ImFontBaked", core::mem::size_of::<ImFontBaked>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImFont".as_ptr()) };
+ if c != core::mem::size_of::<ImFont>() { bad.push(("ImFont", core::mem::size_of::<ImFont>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiViewport".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiViewport>() { bad.push(("ImGuiViewport", core::mem::size_of::<ImGuiViewport>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiPlatformIO".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiPlatformIO>() { bad.push(("ImGuiPlatformIO", core::mem::size_of::<ImGuiPlatformIO>(), c)); }
+ let c = unsafe { cImGui_SizeOf(c"ImGuiPlatformImeData".as_ptr()) };
+ if c != core::mem::size_of::<ImGuiPlatformImeData>() { bad.push(("ImGuiPlatformImeData", core::mem::size_of::<ImGuiPlatformImeData>(), c)); }
+ bad
+}
diff --git a/bindings/rust/blenderui-imgui/tests/headless.rs b/bindings/rust/blenderui-imgui/tests/headless.rs
new file mode 100644
index 0000000..d8186e6
--- /dev/null
+++ b/bindings/rust/blenderui-imgui/tests/headless.rs
@@ -0,0 +1,194 @@
+//! Dear ImGui on BUI from Rust, headless: the generated FFI's struct layouts match C++,
+//! the safe layer drives widgets, simulated input changes values, owned objects work,
+//! a panic in the frame comes back to the caller.
+//!
+//! SPDX-License-Identifier: GPL-2.0-or-later
+
+use std::cell::RefCell;
+use std::rc::Rc;
+
+use blenderui_imgui as imgui;
+use imgui::ImVec2;
+
+#[test]
+fn layouts_match_cpp() {
+ let bad = imgui::sys::layout_mismatches();
+ assert!(bad.is_empty(), "Rust/C++ size mismatches: {bad:?}");
+}
+
+#[derive(Default)]
+struct State {
+ checked: bool,
+ slider: f32,
+ slider_w: f32,
+ text: String,
+ clicks: i32,
+ combo: i32,
+ color: [f32; 4],
+ frames: i32,
+ table_cells: i32,
+ clipped: i32,
+ rects: std::collections::HashMap<&'static str, (ImVec2, ImVec2)>,
+ panic_now: bool,
+}
+
+fn rect() -> (ImVec2, ImVec2) {
+ (imgui::get_item_rect_min(), imgui::get_item_rect_max())
+}
+
+// one test: Dear ImGui's context is global (tests run on several threads)
+#[test]
+fn headless_widgets_and_input() {
+ imgui::set_ui_scale(1.0);
+ let st = Rc::new(RefCell::new(State { slider: 0.25, color: [0.2, 0.4, 0.6, 1.0], ..Default::default() }));
+ let s2 = st.clone();
+ let mut clipper = imgui::ImGuiListClipper::new();
+ let frame = move || {
+ let mut s = s2.borrow_mut();
+ s.frames += 1;
+ if s.panic_now {
+ s.panic_now = false;
+ drop(s);
+ panic!("boom");
+ }
+ imgui::set_next_window_pos_ex([10.0, 10.0], imgui::ImGuiCond_Always, [0.0, 0.0]);
+ imgui::set_next_window_size_ex([560.0, 760.0], imgui::ImGuiCond_Always);
+ imgui::begin_ex("Rust", None, imgui::ImGuiWindowFlags_NoMove | imgui::ImGuiWindowFlags_NoSavedSettings);
+ imgui::text(&format!("Hello from Rust {}", 42));
+ imgui::text_colored([1.0, 0.5, 0.0, 1.0], "colored");
+ imgui::bullet_text("bullet");
+ imgui::checkbox("Check", &mut s.checked);
+ s.rects.insert("check", rect());
+ s.slider_w = imgui::calc_item_width();
+ let mut v = s.slider;
+ imgui::slider_float("Slider", &mut v, 0.0, 1.0);
+ s.slider = v;
+ s.rects.insert("slider", rect());
+ let mut t = std::mem::take(&mut s.text);
+ imgui::input_text("Text", &mut t);
+ s.text = t;
+ s.rects.insert("input", rect());
+ if imgui::button("Button") {
+ s.clicks += 1;
+ }
+ s.rects.insert("button", rect());
+ let mut c = s.combo;
+ imgui::combo("Combo", &mut c, &["one", "two", "three"]);
+ s.combo = c;
+ let mut col = s.color;
+ imgui::color_edit4("Color", &mut col);
+ s.color = col;
+ imgui::plot_lines("Plot", &[0.0, 0.5, 1.0, 0.5, 0.0]);
+ if imgui::tree_node("Tree") {
+ imgui::text("inside");
+ imgui::tree_pop();
+ }
+ if imgui::begin_table("table", 3) {
+ s.table_cells = 0;
+ for r in 0..3 {
+ imgui::table_next_row();
+ for col in 0..3 {
+ imgui::table_set_column_index(col);
+ imgui::text(&format!("{r},{col}"));
+ s.table_cells += 1;
+ }
+ }
+ imgui::end_table();
+ }
+ let dl = imgui::get_window_draw_list().expect("draw list");
+ let p = imgui::get_cursor_screen_pos();
+ dl.add_line(p, [p.x + 40.0, p.y + 10.0], imgui::im_col32(255, 255, 255, 255));
+ dl.add_rect_filled_ex(p, [p.x + 10.0, p.y + 10.0], imgui::im_col32(255, 0, 0, 255), 2.0, 0);
+ dl.add_polyline_ex(&[p, ImVec2 { x: p.x + 5.0, y: p.y + 9.0 }], 0xFF00FF00, 1.5, 0);
+ dl.add_text(p, 0xFFFFFFFF, "dl");
+ imgui::dummy([50.0, 12.0]);
+ imgui::begin_child("child");
+ clipper.begin(1000);
+ s.clipped = 0;
+ while clipper.step() {
+ for i in clipper.DisplayStart..clipper.DisplayEnd {
+ imgui::text(&format!("row {i}"));
+ s.clipped += 1;
+ }
+ }
+ clipper.end();
+ imgui::end_child();
+ imgui::end();
+ };
+ let mut app = imgui::App::headless([1280, 800], frame);
+ assert!(app.is_headless());
+ app.render(4);
+ assert!(st.borrow().frames > 0);
+ assert_eq!(st.borrow().table_cells, 9);
+ let clipped = st.borrow().clipped;
+ assert!(clipped > 0 && clipped < 1000, "clipped {clipped}");
+
+ let center = |st: &Rc<RefCell<State>>, n: &str| {
+ let (a, b) = st.borrow().rects[n];
+ ((a.x + b.x) / 2.0, (a.y + b.y) / 2.0)
+ };
+ // checkbox, button
+ let (x, y) = center(&st, "check");
+ app.click(x, y);
+ assert!(st.borrow().checked, "click toggles the checkbox");
+ let (x, y) = center(&st, "button");
+ app.click(x, y);
+ assert_eq!(st.borrow().clicks, 1, "click presses the button");
+ // slider
+ let (a, b) = st.borrow().rects["slider"];
+ let w = st.borrow().slider_w;
+ app.click(a.x + w * 0.9, (a.y + b.y) / 2.0);
+ assert!(st.borrow().slider > 0.8, "slider {}", st.borrow().slider);
+ // text
+ let (x, y) = center(&st, "input");
+ app.click(x, y);
+ app.type_text("Hi Rust");
+ assert_eq!(st.borrow().text, "Hi Rust");
+ app.key("BackSpace", 0);
+ assert_eq!(st.borrow().text, "Hi Rus");
+ app.type_text(&"z".repeat(100)); // grows the buffer (resize callback)
+ assert_eq!(st.borrow().text.len(), 106);
+ app.key("Return", 0);
+
+ // structs: IO / style / fonts
+ let io = imgui::get_io();
+ assert_eq!((io.DisplaySize.x, io.DisplaySize.y), (1280.0, 800.0));
+ let style = imgui::get_style();
+ assert!((style.Colors[imgui::ImGuiCol_WindowBg as usize].x - 0x30 as f32 / 255.0).abs() < 0.01, "Blender style");
+ let fonts = unsafe { &*io.Fonts };
+ assert!(fonts.Fonts.Size >= 1);
+
+ // helpers
+ let (mut h, mut s, mut v) = (0.0, 0.0, 0.0);
+ imgui::color_convert_rgb_to_hsv(1.0, 0.0, 0.0, &mut h, &mut s, &mut v);
+ assert!(h.abs() < 1e-4 && (s - 1.0).abs() < 1e-4 && (v - 1.0).abs() < 1e-4);
+ assert_eq!(imgui::color_convert_float4_to_u32([1.0, 0.0, 0.0, 1.0]), 0xFF0000FF);
+ assert_eq!(imgui::get_key_name(imgui::ImGuiKey_A), "A");
+ assert!(imgui::calc_text_size("Hello").x > 10.0);
+
+ // owned objects
+ let mut filter = imgui::ImGuiTextFilter::new_ex("two");
+ assert!(filter.pass_filter("one two"));
+ assert!(!filter.pass_filter("three"));
+ filter.clear();
+ let mut storage = imgui::ImGuiStorage::new();
+ storage.set_int(7, 42);
+ assert_eq!(storage.get_int(7), 42);
+ let mut tb = imgui::ImGuiTextBuffer::new();
+ tb.append("abc");
+ assert_eq!(tb.c_str(), "abc");
+
+ // pixels: Blender's region grey
+ let (px, w, h) = app.pixels().expect("pixels");
+ assert_eq!((w, h), (1280, 800));
+ assert!(px.iter().filter(|&&p| p & 0xFFFFFF == 0x303030).count() > 10000);
+
+ // a panic in the frame comes back from render()
+ st.borrow_mut().panic_now = true;
+ let r = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {
+ app.render(2);
+ }));
+ assert!(r.is_err(), "panic propagates");
+ app.render(2); // and the app keeps working
+ drop(app);
+}
diff --git a/bindings/rust/blenderui-sys/Cargo.toml b/bindings/rust/blenderui-sys/Cargo.toml
index 76c04c6..00c95ca 100644
--- a/bindings/rust/blenderui-sys/Cargo.toml
+++ b/bindings/rust/blenderui-sys/Cargo.toml
@@ -23,6 +23,9 @@ slug = []
default = ["slug"]
# Deprecated no-op: the portable engine is the default everywhere.
portable-text = []
+# Also build and link Dear ImGui on BUI and its C API (bindings/imgui: bui_cimgui,
+# bui_imgui; C++). Used by the blenderui-imgui crate.
+imgui = []
[build-dependencies]
cmake = "0.1"
diff --git a/bindings/rust/blenderui-sys/build.rs b/bindings/rust/blenderui-sys/build.rs
index d13a1af..844595f 100644
--- a/bindings/rust/blenderui-sys/build.rs
+++ b/bindings/rust/blenderui-sys/build.rs
@@ -21,6 +21,8 @@ fn main() {
let gdi = std::env::var("CARGO_FEATURE_GDI_TEXT").is_ok()
|| std::env::var("BUI_TEXT_GDI").map(|v| v == "1").unwrap_or(false);
println!("cargo:rerun-if-env-changed=BUI_TEXT_GDI");
+ // `imgui`: Dear ImGui on BUI + its C API (C++), built by the same CMake project
+ let imgui = std::env::var("CARGO_FEATURE_IMGUI").is_ok();
let dst = cmake::Config::new(&root)
.define("BUI_TEXT_GDI", if gdi { "ON" } else { "OFF" })
.define("BUI_SLUG", if std::env::var("CARGO_FEATURE_SLUG").is_ok() { "ON" } else { "OFF" })
@@ -29,12 +31,21 @@ fn main() {
.define("BUI_BUILD_PYTHON_BINDINGS", "OFF")
.define("BUI_BUILD_UI", "OFF")
.define("BUI_BUILD_QT_BACKEND", "OFF")
+ .define("BUI_BUILD_IMGUI", if imgui { "ON" } else { "OFF" })
// Always optimized; on MSVC also the release C runtime Rust links.
.profile("Release")
- .build_target("bui_kit")
+ .build_target(if imgui { "bui_cimgui" } else { "bui_kit" })
.build();
let build = dst.join("build");
+ if imgui {
+ for sub in ["", "Release"] {
+ println!("cargo:rustc-link-search=native={}", build.join("bindings/imgui").join(sub).display());
+ }
+ for lib in ["bui_cimgui", "bui_imgui"] {
+ println!("cargo:rustc-link-lib=static={lib}");
+ }
+ }
for lib in ["kit", "gpu", "core"] {
for sub in ["", "Release"] {
println!("cargo:rustc-link-search=native={}", build.join(lib).join(sub).display());
@@ -44,6 +55,10 @@ fn main() {
println!("cargo:rustc-link-lib=static={lib}");
}
let target = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
+ if imgui && std::env::var("CARGO_CFG_TARGET_ENV").as_deref() != Ok("msvc") {
+ // the C++ runtime of Dear ImGui (MSVC links its own)
+ println!("cargo:rustc-link-lib={}", if target == "macos" { "c++" } else { "stdc++" });
+ }
if target == "windows" {
for lib in ["user32", "gdi32"] {
println!("cargo:rustc-link-lib={lib}");
@@ -63,10 +78,13 @@ fn main() {
println!("cargo:rustc-link-lib=m");
println!("cargo:rustc-link-lib=pthread");
}
- for dir in ["kit", "gpu", "core", "CMakeLists.txt"] {
+ for dir in ["kit", "gpu", "core", "CMakeLists.txt", "bindings/imgui"] {
println!("cargo:rerun-if-changed={}", root.join(dir).display());
}
println!("cargo:rerun-if-env-changed=BUI_SOURCE_DIR");
println!("cargo:rerun-if-env-changed=BUI_TEXT_STB");
println!("cargo:include={}", root.join("kit/include").display());
+ if imgui {
+ println!("cargo:imgui_include={}", root.join("bindings/imgui/c").display());
+ }
}
diff --git a/bindings/rust/scripts/vendor_c.py b/bindings/rust/scripts/vendor_c.py
index e438ff6..4579f87 100644
--- a/bindings/rust/scripts/vendor_c.py
+++ b/bindings/rust/scripts/vendor_c.py
@@ -11,7 +11,8 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
DEST = ROOT / "bindings" / "rust" / "blenderui-sys" / "csrc"
-DIRS = ["core", "types", "gpu", "compat", "ui", "kit", "api"]
+# bindings/imgui: Dear ImGui on BUI + its C API (blenderui-sys's `imgui` feature)
+DIRS = ["core", "types", "gpu", "compat", "ui", "kit", "api", "bindings/imgui"]
FILES = ["CMakeLists.txt", "LICENSE", "bindings/python/bui/_version.py"]
SKIP = shutil.ignore_patterns("__pycache__", "*.pyc", "build*", "*.o", "*.obj")
diff --git a/docs/imgui.md b/docs/imgui.md
new file mode 100644
index 0000000..8c36f29
--- /dev/null
+++ b/docs/imgui.md
@@ -0,0 +1,300 @@
+# Dear ImGui on BUI: C++, C, Python and Rust
+
+The real [Dear ImGui](https://github.com/ocornut/imgui) (1.93.1 WIP, vendored in
+`bindings/imgui/extern/imgui`) runs on BUI: BUI's window hosts give it input, BUI's
+renderers (software raster, Direct3D 11, OpenGL 3.3) draw it, and it looks like Blender
+(Blender's theme colors and metrics, Blender's UI font). The backend itself is described in
+[bindings/imgui/README.md](../bindings/imgui/README.md).
+
+Every public Dear ImGui function and type can be used from four languages:
+
+| Language | What you use | Built by |
+|---|---|---|
+| C++ | `imgui.h` + `imgui_impl_bui.h` | CMake target `bui_imgui` |
+| C | `cimgui.h` + `cimgui_impl_bui.h` (`bindings/imgui/c`) | CMake target `bui_cimgui` |
+| Python | `import blenderui.imgui as imgui` (or `bui.imgui`) | CMake target `_buiimgui` (next to `buipy`) |
+| Rust | crate `blenderui-imgui` (`bindings/rust/blenderui-imgui`) | Cargo (blenderui-sys builds the C++ through CMake) |
+
+The C, Python and Rust bindings are **generated** from `imgui.h`; see
+[Regenerating](#regenerating).
+
+- [C++](#c)
+- [C](#c-1)
+- [Python](#python)
+- [Rust](#rust)
+- [Headless rendering and tests](#headless-rendering-and-tests)
+- [Coverage](#coverage)
+- [Regenerating](#regenerating)
+- [Limitations](#limitations)
+
+## C++
+
+```cpp
+#include "imgui.h"
+#include "imgui_impl_bui.h"
+
+static void frame(void*) { ImGui::ShowDemoWindow(); }
+
+int main() {
+ ImGui::CreateContext();
+ ImGui_ImplBUI_App* app = ImGui_ImplBUI_CreateApp("Dear ImGui on BUI", 1280, 800, frame, nullptr);
+ ImGui_ImplBUI_RunApp(app); // BUI's message loop until the window closes
+ ImGui_ImplBUI_DestroyApp(app);
+ ImGui::DestroyContext();
+}
+```
+
+Link `bui::imgui`. Example: `examples/imgui_demo.cpp` (`bui_imgui_demo`).
+
+## C
+
+The C API follows cimgui / dear_bindings conventions:
+
+- `ImGui::Button` is `ImGui_Button`; methods take the object first:
+ `ImDrawList_AddLine(draw_list, p1, p2, col)`.
+- C has no default arguments: `ImGui_Button(label)` takes the required ones,
+ `ImGui_ButtonEx(label, size)` all of them.
+- Overloads get a suffix from the parameter types that differ: `ImGui_PushID(str)`,
+ `ImGui_PushIDInt(int)`, `ImGui_PushIDPtr(ptr)`, `ImGui_MenuItemBoolPtr(...)`,
+ `ImGui_RadioButtonIntPtr(...)`, `ImGui_PushStyleVarVec2(...)`.
+- References become pointers (`ImGui_GetIO()` returns `ImGuiIO*`); `const ImVec2&` is a
+ plain `ImVec2`.
+- `ImGui_Text(fmt, ...)` and the other printf-style functions keep their `...`; the
+ `...V` variants take a `va_list`.
+- Every struct has its C++ layout (checked by `static_assert`s at build time):
+ `io->DisplaySize`, `style->Colors[ImGuiCol_Text]`, `ImVector_ImDrawCmd` (`Size`,
+ `Capacity`, `Data`).
+- Constructors and destructors: `ImGuiListClipper_New()`, `ImGuiTextFilter_NewEx("x")`,
+ `X_Delete(obj)`.
+
+```c
+#include "cimgui.h"
+#include "cimgui_impl_bui.h"
+
+static void frame(void* user)
+{
+ float* value = (float*)user;
+ ImGui_ShowDemoWindow();
+ ImGui_Begin("Hello");
+ ImGui_SliderFloat("Value", value, 0.0f, 1.0f);
+ ImGui_Text("%.2f", *value);
+ ImGui_End();
+}
+
+int main(void)
+{
+ float value = 0.5f;
+ ImGui_CreateContext();
+ cImGui_ImplBUI_App* app = cImGui_ImplBUI_CreateApp("Hello", 1280, 800, frame, &value, NULL);
+ cImGui_ImplBUI_RunApp(app);
+ cImGui_ImplBUI_DestroyApp(app);
+ ImGui_DestroyContext();
+}
+```
+
+Link `bui::cimgui` (CMake). `cimgui_impl_bui.h` is the backend for C: apps (window or
+headless), `cImGui_ImplBUI_Init(node, frame, user, config)` for a node in an existing BUI
+UI, `cImGui_ImplBUI_StyleBlender`, the UI scale, and headless input helpers. Example:
+`examples/imgui_demo_c.c` (`bui_imgui_demo_c`, `--screenshot out.png` for headless).
+
+## Python
+
+```python
+import blenderui.imgui as imgui
+
+state = {"value": 0.5, "text": "Edit me", "opened": True}
+
+def frame():
+ imgui.show_demo_window()
+ expanded, state["opened"] = imgui.begin("Hello", state["opened"])
+ changed, state["value"] = imgui.slider_float("Value", state["value"], 0.0, 1.0)
+ changed, state["text"] = imgui.input_text("Text", state["text"])
+ if imgui.button("Reset"):
+ state["value"] = 0.5
+ imgui.text("value %.2f" % state["value"])
+ imgui.end()
+
+imgui.run(frame, title="Hello", size=(1280, 800))
+```
+
+pyimgui-style:
+
+- functions in snake_case; an in/out pointer is an argument, and its new value comes back
+ after the result: `changed, v = imgui.slider_float(...)`,
+ `changed, (r, g, b) = imgui.color_edit3("Color", (r, g, b))`; `None` passes `NULL`
+ (`imgui.begin("Window")` has no close button). Pure outputs are returned:
+ `h, s, v = imgui.color_convert_rgb_to_hsv(1, 0, 0)`.
+- `ImVec2` / `ImVec4` arguments are tuples; results are `imgui.Vec2` / `imgui.Vec4` named
+ tuples (`pos.x`).
+- printf-style functions take one string: `imgui.text("%d items" % n)`.
+- lists replace (pointer, count) pairs: `imgui.combo("Combo", current, ["a", "b"])`,
+ `imgui.plot_lines("Plot", values)`, `draw_list.add_polyline(points, col)`.
+- `input_text*` take and return a `str` of any length (the buffer grows).
+- one name per overload set, trying each overload in turn: `imgui.push_id("x")`,
+ `imgui.push_id(3)`; each also keeps its own name (`push_id_int`, `push_style_var_vec2`).
+- enums: `imgui.WINDOW_NO_TITLE_BAR` and the C++ name `imgui.ImGuiWindowFlags_NoTitleBar`.
+- structs are objects whose fields have snake_case and C++ names:
+ `imgui.get_io().display_size`, `io.config_flags |= imgui.CONFIG_NAV_ENABLE_KEYBOARD`,
+ `io.ini_filename = None`, `imgui.get_style().colors[imgui.COL_TEXT] = (1, 1, 1, 1)`,
+ `io.fonts.fonts[0]`; arrays and `ImVector`s are indexable views.
+- methods: `imgui.get_window_draw_list().add_line(p1, p2, imgui.im_col32(255, 0, 0))`.
+- constructors: `imgui.ImGuiListClipper()`, `imgui.ImGuiTextFilter("x")`,
+ `imgui.ImGuiStorage()` (deleted with the Python object).
+- `imgui.run(frame, title=..., size=...)` opens a BUI window (creating the ImGui context
+ if none is current); an exception in `frame` closes the window and propagates.
+ `imgui.HeadlessApp` renders without a window ([below](#headless-rendering-and-tests)).
+- `help(imgui.begin)` shows the Python signature and the C++ function.
+
+The extension `_buiimgui` is built next to `buipy` (`cmake --build build --target
+_buiimgui`) and installed with the wheel.
+
+## Rust
+
+```toml
+[dependencies]
+blenderui-imgui = { path = "bindings/rust/blenderui-imgui" }
+```
+
+```rust
+use blenderui_imgui as imgui;
+
+fn main() {
+ let mut value = 0.5f32;
+ let mut text = String::from("Edit me");
+ imgui::run("Hello", [1280, 800], move || {
+ imgui::show_demo_window();
+ imgui::begin("Hello");
+ imgui::slider_float("Value", &mut value, 0.0, 1.0);
+ imgui::input_text("Text", &mut text);
+ if imgui::button("Reset") {
+ value = 0.5;
+ }
+ imgui::text(&format!("value {value:.2}"));
+ if let Some(dl) = imgui::get_window_draw_list() {
+ let p = imgui::get_cursor_screen_pos();
+ dl.add_circle_filled([p.x + 10.0, p.y + 10.0], 8.0, imgui::im_col32(71, 114, 179, 255));
+ }
+ imgui::end();
+ });
+}
+```
+
+`cargo run -p blenderui-imgui --example demo` (`-- --screenshot demo.png` headless).
+
+- `imgui::sys`: the raw FFI, generated from the same description as `cimgui.h` (no
+ bindgen or libclang): every struct with its layout (`ImVector<T>`, unions, bit fields as
+ storage words), every enum value as a constant, every C function. `sys` is re-exported
+ at the crate root, so `imgui::ImGuiWindowFlags_NoTitleBar` and `imgui::ImVec2` work.
+- the safe layer: `button(label)` / `button_ex(label, size)` like C; `&str` for strings,
+ `&mut T` for in/out values (`Option<&mut T>` where C++ accepts `NULL`), `&mut [f32; 3]`
+ for arrays, slices for (pointer, count) pairs, `&mut String` for `input_text*`,
+ `impl Into<ImVec2>` (`[x, y]`, `(x, y)`) for vectors; methods on the structs
+ (`draw_list.add_line(...)`, `clipper.step()`); constructors return
+ `Owned<T>` (dropped with `X_Delete`): `ImGuiTextFilter::new_ex("x")`.
+- references returned by imgui (`get_io()`, `get_style()`, draw lists) are `'static` in
+ the signatures but only valid while their context lives.
+- `imgui::run(title, size, frame)`, `imgui::App::new / headless / with_config`:
+ creates the ImGui context if none is current; a panic in `frame` closes the window and
+ resumes from `run()` / `render()`.
+
+The crate depends on `blenderui-sys` with its `imgui` feature, which builds Dear ImGui,
+the BUI backend and the C API with the project's CMake files (as for the C kit; a published
+crate carries them in `csrc/`, see `scripts/vendor_c.py`). Nothing else is downloaded.
+
+## Headless rendering and tests
+
+All three bindings can run Dear ImGui without a window: frames render into an offscreen
+BUI raster and input is fed the way the window hosts feed it.
+
+```python
+with imgui.HeadlessApp(frame, size=(800, 600)) as app:
+ app.render(3) # request and run 3 frames
+ app.click(100, 40) # mouse_move / mouse_down / mouse_up / scroll
+ app.type_text("hello") # key("Return"), key("a", imgui.BK_CTRL)
+ w, h, pixels = app.pixels() # BGRA bytes; app.save_png("shot.png")
+```
+
+C: `cImGui_ImplBUI_CreateHeadlessApp`, `cImGui_ImplBUI_Render`, `cImGui_ImplBUI_Click`,
+`cImGui_ImplBUI_TypeText`, `cImGui_ImplBUI_Pixels`. Rust: `App::headless(size, frame)`,
+`app.render(n)`, `app.click(x, y)`, `app.type_text(..)`, `app.pixels()`.
+
+Tests:
+
+| Test | Runs |
+|---|---|
+| `imgui_c_api` (ctest) | `bindings/imgui/tests/test_cimgui.c`: widgets, tables, list clipper, draw list, popups, IO/style structs, helpers, text filter/storage/text buffer, clicks, a slider, typing |
+| `buipy_imgui` (ctest) | `bindings/python/tests/test_imgui.py` (unittest): the same from Python, plus drags, the wheel, buffer growth, overload dispatch, struct fields and array views, the demo/metrics/style windows, errors |
+| `cargo test -p blenderui-imgui` | `tests/headless.rs`: Rust/C++ struct sizes, widgets and input, owned objects, a panic in the frame |
+| `imgui_backend` (ctest) | the backend itself, in C++ (phase 1) |
+
+## Coverage
+
+Counted from `bindings/imgui/gen/coverage.json` (written by the generator). Dear ImGui
+1.93.1 WIP has **399 functions in `namespace ImGui`** (overloads counted separately,
+obsolete ones excluded; 14 of them are `...V` functions taking a `va_list`) and **264
+methods and constructors** on its structs (223 methods, 41 constructors); the bindings
+add a default constructor to the 9 structs that declare none.
+
+| | `namespace ImGui` | Methods + constructors | Notes |
+|---|---|---|---|
+| C | 399 / 399 | 273 / 273 | 894 C functions with the `Ex` variants; all 41 structs with their layout, 5 opaque; 737 enum values |
+| Python | 366 / 399 (366 / 385 without `va_list`) | 264 / 273 | 1474 constants (both spellings); fields of all structs |
+| Rust FFI | 385 / 399 (all but `va_list`) | 272 / 273 | 879 of the 894 C functions |
+| Rust safe layer | 366 / 399 | 264 / 273 | the rest is in `sys` |
+
+Not in Python or the Rust safe layer (all are in C and Rust `sys`):
+
+- the 14 `...V` functions taking a `va_list` (use the `...` ones, or format first);
+- functions taking an untyped `void*` value: `PushID(const void*)`, `GetID(const void*)`,
+ `TreeNode/TreeNodeEx/TreePush(const void*, ...)`, the 8 `*Scalar` / `*ScalarN` widgets
+ (`DragScalar`, `SliderScalar`, `InputScalar`... use the typed `drag_float`, `input_int`
+ ...), `MemFree`, `ImGuiStorage::SetVoidPtr`, `ImGuiStoragePair(key, void*)`,
+ `ImFontAtlas::AddFontFromMemoryTTF` / `AddFontFromMemoryCompressedTTF` (use
+ `add_font_from_file_ttf`);
+- functions taking C callbacks: the getter overloads of `Combo`, `ListBox`, `PlotLines`,
+ `PlotHistogram` (the list overloads are bound), `SetAllocatorFunctions`,
+ `GetAllocatorFunctions`, `ImDrawList::AddCallback`, and `InputText`'s user callback
+ (its buffer callback is used internally to grow strings);
+- `ImFontGlyphRangesBuilder::AddRanges` / `BuildRanges`,
+ `ImGuiSelectionBasicStorage::GetNextSelectedItem` (pointer-to-pointer).
+
+## Regenerating
+
+```sh
+py -3 -I bindings/imgui/gen/gen.py
+```
+
+The generator is stdlib-only Python (`gen.py`, with `gen_python.py` and `gen_rust.py`). It
+parses `bindings/imgui/extern/imgui/imgui.h` (comments, preprocessor conditionals, the
+`IMGUI_API` declarations in `namespace ImGui`, enums and flags, typedefs, structs with
+their fields, methods and constructors, default arguments, overloads, `fmt, ...`,
+arrays, callbacks) into `bindings/imgui/gen/imgui_api.json`, then writes:
+
+| File | |
+|---|---|
+| `bindings/imgui/c/cimgui.h`, `cimgui.cpp` | the C API |
+| `bindings/python/src/buiimgui_gen.inc` | the Python functions, types, field tables and constants |
+| `bindings/rust/blenderui-imgui/src/sys.rs`, `safe.rs` | the Rust FFI and safe layer |
+| `bindings/imgui/gen/coverage.json` | what each language binds (and why not) |
+
+Hand-written: `cimgui_impl_bui.h/.cpp` (the backend's C API), the Python runtime
+(`buiimgui_rt.h`: argument parsing, conversions, struct wrappers, array views) and module
+(`buiimgui_module.cpp`: the App type, init), `bui/imgui.py` (`run`, `HeadlessApp`),
+the Rust `lib.rs` (helpers, `Owned`, the runner), examples and tests.
+
+After updating the vendored Dear ImGui, run the generator and rebuild: the C++ compiler
+checks the C struct layouts (`static_assert`s in `cimgui.cpp`) and
+`imgui::sys::layout_mismatches()` the Rust ones.
+
+## Limitations
+
+- Dear ImGui's single current context: create apps and call imgui from one thread.
+ Python and Rust references to imgui objects (draw lists, IO, fonts) are borrowed: do not
+ keep them past their context.
+- Python objects wrapping imgui structs do not keep the context alive; owned objects
+ (`imgui.ImGuiListClipper()`...) are deleted with the Python object.
+- In release builds `IM_ASSERT` is off and Dear ImGui recovers from most API misuse
+ (`io.ConfigErrorRecovery`); with assertions on, misuse aborts the process from every
+ language.
+- The backend's own gaps (IME placement, gamepads, multi-viewports) are listed in
+ [bindings/imgui/README.md](../bindings/imgui/README.md#known-gaps).
diff --git a/examples/imgui_demo_c.c b/examples/imgui_demo_c.c
new file mode 100644
index 0000000..1fe1658
--- /dev/null
+++ b/examples/imgui_demo_c.c
@@ -0,0 +1,89 @@
+/* Dear ImGui on BUI from C (bindings/imgui/c/cimgui.h, generated from imgui.h):
+ * ImGui_ShowDemoWindow() plus a small window of our own, in a native BUI window with
+ * Blender's look.
+ *
+ * bui_imgui_demo_c a window (Win32 / X11 / Cocoa)
+ * bui_imgui_demo_c --screenshot out.png headless: render a few frames to a PNG
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include "cimgui.h"
+#include "cimgui_impl_bui.h"
+
+#include <stdio.h>
+#include <string.h>
+
+typedef struct DemoState {
+ bool show_demo;
+ float value;
+ int counter;
+ float color[3];
+ char text[128];
+} DemoState;
+
+static void frame(void* user)
+{
+ DemoState* s = (DemoState*)user;
+ if (s->show_demo)
+ ImGui_ShowDemoWindowEx(&s->show_demo);
+
+ const float dpi = ImGui_GetStyle()->FontScaleDpi;
+ ImGui_SetNextWindowPosEx((ImVec2){ 20 * dpi, 20 * dpi }, ImGuiCond_FirstUseEver, (ImVec2){ 0, 0 });
+ ImGui_SetNextWindowSizeEx((ImVec2){ 340 * dpi, 300 * dpi }, ImGuiCond_FirstUseEver);
+ ImGui_Begin("BUI from C");
+ ImGui_Text("Dear ImGui %s on BUI, from C", ImGui_GetVersion());
+ ImGui_TextDisabled("UI scale %.2f", cImGui_ImplBUI_GetScale());
+ ImGui_SeparatorText("Widgets");
+ ImGui_Checkbox("Demo window", &s->show_demo);
+ ImGui_SliderFloat("Value", &s->value, 0.0f, 1.0f);
+ if (ImGui_Button("Count"))
+ s->counter++;
+ ImGui_SameLine();
+ ImGui_Text("%d", s->counter);
+ ImGui_InputText("Text", s->text, sizeof(s->text));
+ ImGui_ColorEdit3("Color", s->color);
+ ImGui_ProgressBarEx(s->value, (ImVec2){ -1.0f, 0.0f }, NULL);
+
+ /* the draw list API */
+ ImDrawList* dl = ImGui_GetWindowDrawList();
+ const ImVec2 p = ImGui_GetCursorScreenPos();
+ ImDrawList_AddRectFilled(dl, p, (ImVec2){ p.x + 60 * dpi, p.y + 20 * dpi }, IM_COL32(71, 114, 179, 255));
+ ImDrawList_AddCircle(dl, (ImVec2){ p.x + 90 * dpi, p.y + 10 * dpi }, 9 * dpi, IM_COL32_WHITE);
+ ImGui_Dummy((ImVec2){ 100 * dpi, 22 * dpi });
+ ImGui_End();
+}
+
+int main(int argc, char** argv)
+{
+ const char* shot = NULL;
+ for (int i = 1; i < argc; i++)
+ if (!strcmp(argv[i], "--screenshot") && i + 1 < argc)
+ shot = argv[++i];
+
+ ImGui_CreateContext();
+ ImGuiIO* io = ImGui_GetIO();
+ io->ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
+
+ DemoState state = { true, 0.5f, 0, { 0.278f, 0.447f, 0.702f }, "Edit me" };
+
+ cImGui_ImplBUI_App* app = NULL;
+ if (shot == NULL)
+ app = cImGui_ImplBUI_CreateApp("Dear ImGui on BUI (C)", 1280, 800, frame, &state, NULL);
+ if (app != NULL && !cImGui_ImplBUI_IsHeadless(app))
+ {
+ cImGui_ImplBUI_RunApp(app);
+ }
+ else
+ {
+ if (app)
+ cImGui_ImplBUI_DestroyApp(app);
+ io->IniFilename = NULL;
+ app = cImGui_ImplBUI_CreateHeadlessApp(1280, 800, frame, &state, NULL);
+ const int frames = cImGui_ImplBUI_Render(app, 8);
+ const char* path = shot ? shot : "imgui_demo_c.png";
+ printf("%s %s (%d frames)\n", cImGui_ImplBUI_SavePNG(app, path) ? "wrote" : "could not write", path, frames);
+ }
+ cImGui_ImplBUI_DestroyApp(app);
+ ImGui_DestroyContext();
+ return 0;
+}